Browse Source

fix warning

Samuel Thibault 10 years ago
parent
commit
0d69b82acc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/topology.c

+ 1 - 1
src/core/topology.c

@@ -1332,7 +1332,7 @@ _starpu_init_workers_binding (struct _starpu_machine_config *config, int no_mp_c
 		struct _starpu_worker *workerarg = &config->workers[worker];
 		unsigned devid = workerarg->devid;
 
-#ifndef STARPU_SIMGRID
+#if (defined(STARPU_USE_CUDA) || defined(STARPU_USE_OPENCL) || defined(STARPU_USE_MIC)) && !defined(STARPU_SIMGRID)
 		/* Perhaps the worker has some "favourite" bindings  */
 		int *preferred_binding = NULL;
 		int npreferred = 0;