Przeglądaj źródła

Fix warning with simgrid

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

+ 2 - 0
src/core/topology.c

@@ -1726,7 +1726,9 @@ _starpu_init_workers_binding (struct _starpu_machine_config *config, int no_mp_c
 	unsigned cuda_init[STARPU_MAXCUDADEVS] = { };
 	unsigned cuda_memory_nodes[STARPU_MAXCUDADEVS];
 	unsigned cuda_bindid[STARPU_MAXCUDADEVS];
+#  ifndef STARPU_SIMGRID
 	unsigned th_per_stream = starpu_get_env_number_default("STARPU_CUDA_THREAD_PER_WORKER", 0);
+#  endif
 #endif
 #if defined(STARPU_USE_OPENCL) || defined(STARPU_SIMGRID)
 	unsigned opencl_init[STARPU_MAXOPENCLDEVS] = { };