Procházet zdrojové kódy

Not only pick up a task that we can execute, but also set the proper implementation that can be executed

Samuel Thibault před 8 roky
rodič
revize
7da5814dc8
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      src/sched_policies/prio_deque.c

+ 3 - 0
src/sched_policies/prio_deque.c

@@ -31,7 +31,10 @@ static inline int pred_can_execute(struct starpu_task * t, void * pworkerid)
 	int i;
 	for(i = 0; i < STARPU_MAXIMPLEMENTATIONS; i++)
 		if(starpu_worker_can_execute_task(*(int*)pworkerid, t,i))
+		{
+			starpu_task_set_implementation(t, i);
 			return 1;
+		}
 	return 0;
 }