Cédric Augonnet лет назад: 14
Родитель
Сommit
96fa9df18b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/perfmodel/perfmodel_history.c

+ 1 - 1
src/core/perfmodel/perfmodel_history.c

@@ -650,7 +650,7 @@ double _starpu_history_based_job_expected_perf(struct starpu_perfmodel_t *model,
 
 	exp = entry?entry->mean:-1.0;
 
-	if (entry->nsample < STARPU_CALIBRATION_MINIMUM)
+	if (entry && entry->nsample < STARPU_CALIBRATION_MINIMUM)
 		/* TODO: report differently if we've scheduled really enough
 		 * of that task and the scheduler should perhaps put it aside */
 		/* Not calibrated enough */