Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
ec606d00b1
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;