Procházet zdrojové kódy

Prevent heteroprio from prefetching several times

Samuel Thibault před 5 roky
rodič
revize
c0aa0e457e
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/sched_policies/heteroprio.c

+ 2 - 1
src/sched_policies/heteroprio.c

@@ -625,7 +625,8 @@ done:		;
 		     task_to_prefetch  = starpu_task_prio_list_next(&worker->tasks_queue.list, task_to_prefetch))
 		{
 			/* prefetch from closest to end task */
-			starpu_prefetch_task_input_for(task_to_prefetch, workerid);
+			if (!task_to_prefetch->prefetch) /* FIXME: it seems we are prefetching several times?? *
+				starpu_prefetch_task_input_for(task_to_prefetch, workerid);
 			nb_added_tasks -= 1;
 		}
 	}