Browse Source

Allow a job's footprint to be computed at the end of _starpu_update_perfmodel_history().

Cyril Roelandt 13 years ago
parent
commit
a2e47ca37c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/core/perfmodel/perfmodel_history.c

+ 3 - 0
src/core/perfmodel/perfmodel_history.c

@@ -998,6 +998,9 @@ void _starpu_update_perfmodel_history(starpu_job_t j, struct starpu_perfmodel_t
 		struct starpu_task *task = j->task;
 		FILE * debug_file = per_arch_model->debug_file;
 
+		if (!j->footprint_is_computed)
+			(void) _starpu_compute_buffers_footprint(j);
+			
 		STARPU_ASSERT(j->footprint_is_computed);
 
 		fprintf(debug_file, "0x%x\t%lu\t%f\t%f\t%f\t%d\t\t", j->footprint, (unsigned long) _starpu_job_get_data_size(j), measured, task->predicted, task->predicted_transfer, cpuid);