소스 검색

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;