Samuel Thibault 10 rokov pred
rodič
commit
728197718e
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      src/core/workers.c

+ 4 - 1
src/core/workers.c

@@ -620,7 +620,10 @@ static void _starpu_launch_drivers(struct _starpu_machine_config *pconfig)
 	unsigned nworkers = pconfig->topology.nworkers;
 
 	/* Launch workers asynchronously */
-	unsigned worker, i;
+	unsigned worker;
+#if defined(STARPU_USE_CUDA) || defined(STARPU_SIMGRID) || defined(STARPU_USE_MIC)
+	unsigned i;
+#endif
 
 #if defined(STARPU_PERF_DEBUG) && !defined(STARPU_SIMGRID)
 	/* Get itimer of the main thread, to set it for the worker threads */