瀏覽代碼

drop duplicate test

Samuel Thibault 9 年之前
父節點
當前提交
3f9f7100d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/workers.c

+ 1 - 1
src/core/workers.c

@@ -381,7 +381,7 @@ int starpu_worker_can_execute_task_first_impl(unsigned workerid, struct starpu_t
 	{
 		for (i = 0; i < STARPU_MAXIMPLEMENTATIONS; i++)
 			if (_starpu_can_use_nth_implementation(arch, cl, i)
-			 && (!task->cl->can_execute || task->cl->can_execute(workerid, task, i)))
+			 && task->cl->can_execute(workerid, task, i))
 			{
 				if (nimpl)
 					*nimpl = i;