Explorar el Código

fix crash in eager with contexts on spuriously dereferencing chosen_task which is NULL

Samuel Thibault hace 6 años
padre
commit
15f0c3600f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/sched_policies/eager_central_priority_policy.c

+ 1 - 1
src/sched_policies/eager_central_priority_policy.c

@@ -191,7 +191,7 @@ static struct starpu_task *_starpu_priority_pop_task(unsigned sched_ctx_id)
 		struct starpu_worker_collection *workers = starpu_sched_ctx_get_worker_collection(sched_ctx_id);
 
 		struct starpu_sched_ctx_iterator it;
-		workers->init_iterator_for_parallel_tasks(workers, &it, chosen_task);
+		workers->init_iterator(workers, &it);
 		while(workers->has_next(workers, &it))
 		{
 			unsigned worker = workers->get_next(workers, &it);