Browse Source

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

Luka Stanisic 8 years ago
parent
commit
e3ac1f811b
1 changed files with 2 additions and 0 deletions
  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;