Samuel Thibault 8 lat temu
rodzic
commit
4d5c8fca14
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/core/workers.c

+ 2 - 0
src/core/workers.c

@@ -628,7 +628,9 @@ static void _starpu_launch_drivers(struct _starpu_machine_config *pconfig)
 #endif
 	STARPU_AYU_INIT();
 
+#if defined(STARPU_USE_CUDA) || defined(STARPU_SIMGRID)
 	unsigned th_per_stream = starpu_get_env_number_default("STARPU_ONE_THREAD_PER_STREAM", 0);
+#endif
 
 	for (worker = 0; worker < nworkers; worker++)
 	{