Explorar o código

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

Cyril Roelandt %!s(int64=13) %!d(string=hai) anos
pai
achega
a2e47ca37c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);