ソースを参照

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

Luka Stanisic 8 年 前
コミット
e3ac1f811b
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  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;