Explorar el Código

Fix work stealing (dumb typo...)

Samuel Thibault hace 8 años
padre
commit
e2254ea692
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;