Browse Source

Fix warning

Samuel Thibault 5 years ago
parent
commit
75e1012825
1 changed files with 2 additions and 1 deletions
  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;
 	}