瀏覽代碼

note FIXME

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

+ 3 - 0
src/core/workers.c

@@ -314,6 +314,9 @@ static inline int _starpu_can_use_nth_implementation(enum starpu_worker_archtype
 int starpu_worker_can_execute_task(unsigned workerid, struct starpu_task *task, unsigned nimpl)
 {
 	/* if the worker is blocked in a parallel ctx don't submit tasks on it */
+#ifdef STARPU_DEVEL
+#warning FIXME: this is very expensive, while can_execute is supposed to be not very costly so schedulers can call it a lot
+#endif
 	if(starpu_worker_is_blocked_in_parallel(workerid))
 		return 0;