Samuel Thibault %!s(int64=5) %!d(string=hai) anos
pai
achega
75e1012825
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/sched_policies/component_best_implementation.c

+ 2 - 1
src/sched_policies/component_best_implementation.c

@@ -34,7 +34,8 @@ static int find_best_impl(unsigned sched_ctx_id, struct starpu_task * task, int
 	if (!task->cl->model)
 	{
 		/* No perfmodel, first available will be fine */
-		starpu_worker_can_execute_task_first_impl(workerid, task, &impl);
+		int can_execute = starpu_worker_can_execute_task_first_impl(workerid, task, &impl);
+		STARPU_ASSERT(can_execute);
 		best_impl = impl;
 		len = 0.0;
 	}