Procházet zdrojové kódy

Fix computing footprint of codelets with its own footprint function

Samuel Thibault před 10 roky
rodič
revize
754cbe694b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/profiling/bound.c

+ 1 - 1
src/profiling/bound.c

@@ -262,7 +262,7 @@ void _starpu_bound_record(struct _starpu_job *j)
 	{
 		struct bound_task_pool *tp;
 
-		_starpu_compute_buffers_footprint(NULL, STARPU_CPU_WORKER, 0, j);
+		_starpu_compute_buffers_footprint(j->task->cl?j->task->cl->model:NULL, STARPU_CPU_WORKER, 0, j);
 
 		if (last && last->cl == j->task->cl && last->footprint == j->footprint)
 			tp = last;