Browse Source

Fix unused variable when using neither CUDA nor OpenCL.

Cyril Roelandt 13 years ago
parent
commit
ea74b72efe
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/perfmodel/perfmodel_bus.c

+ 2 - 0
src/core/perfmodel/perfmodel_bus.c

@@ -520,7 +520,9 @@ static void measure_bandwidth_between_host_and_dev(int dev, double *dev_timing_h
 
 static void benchmark_all_gpu_devices(void)
 {
+#if defined(STARPU_USE_CUDA) || defined(STARPU_USE_OPENCL)
 	int i;
+#endif
 #ifdef HAVE_CUDA_MEMCPY_PEER
 	int j;
 #endif