瀏覽代碼

src/core/workers.c: fix function _starpu_worker_exists_and_can_execute() to return the return value of the function task->cl->can_execute() when available

Nathalie Furmento 11 年之前
父節點
當前提交
a9a8f41802
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/core/workers.c

+ 2 - 2
src/core/workers.c

@@ -146,8 +146,8 @@ static uint32_t _starpu_worker_exists_and_can_execute(struct starpu_task *task,
 			if (!test_implementation)
 				break;
 
-			if (task->cl->can_execute && task->cl->can_execute(i, task, impl))
-				return 1;
+			if (task->cl->can_execute)
+				return task->cl->can_execute(i, task, impl);
 
 			if(test_implementation)
 				return 1;