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