Browse Source

Perhaps there is no model

Cédric Augonnet 14 years ago
parent
commit
96fa9df18b
1 changed files with 1 additions and 1 deletions
  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 */