Sfoglia il codice sorgente

check one more case in can_block

Olivier Aumage 7 anni fa
parent
commit
8550cc4004
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/core/workers.c

+ 4 - 0
src/core/workers.c

@@ -1545,6 +1545,10 @@ unsigned _starpu_worker_can_block(unsigned memnode STARPU_ATTRIBUTE_UNUSED, stru
 #ifdef STARPU_NON_BLOCKING_DRIVERS
 	return 0;
 #else
+	/* do not block if a sched_ctx change operation is pending */
+	if (worker->state_changing_ctx_notice)
+		return 0;
+
 	unsigned can_block = 1;
 
 	struct starpu_driver driver;