Explorar o código

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

Luka Stanisic %!s(int64=8) %!d(string=hai) anos
pai
achega
e3ac1f811b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;