Procházet zdrojové kódy

mlr: fixing the case when there are no models yet (e.g. when dmdas requests it)

Luka Stanisic před 8 roky
rodič
revize
e3ac1f811b
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/core/perfmodel/perfmodel_history.c

+ 2 - 0
src/core/perfmodel/perfmodel_history.c

@@ -1316,6 +1316,8 @@ double _starpu_multiple_regression_based_job_expected_perf(struct starpu_perfmod
 		// The model has not been executed on this combination
 		goto docal;
 	reg_model = &model->state->per_arch[comb][nimpl].regression;
+	if (reg_model->coeff == NULL)
+		goto docal;
 
 	double parameter_value;
 	double *parameters;