Ver código fonte

Fix work stealing (dumb typo...)

Samuel Thibault 8 anos atrás
pai
commit
e2254ea692
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/sched_policies/work_stealing_policy.c

+ 1 - 1
src/sched_policies/work_stealing_policy.c

@@ -724,7 +724,7 @@ static int lws_select_victim(struct _starpu_work_stealing_data *ws, unsigned sch
 	{
 		int neighbor = ws->per_worker[workerid].proxlist[i];
 		int ntasks = ws->per_worker[neighbor].queue_array->ntasks;
-		if (ntasks && ws->per_worker[workerid].busy)
+		if (ntasks && ws->per_worker[neighbor].busy)
 			return neighbor;
 	}
 	return -1;