瀏覽代碼

src/core/perfmodel/perfmodel_bus.c: fix variable scope declaration

Nathalie Furmento 14 年之前
父節點
當前提交
0324b2ec4f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/core/perfmodel/perfmodel_bus.c

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

@@ -404,7 +404,7 @@ 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, ret;
+	int i;
 
 	_STARPU_DEBUG("Benchmarking the speed of the bus\n");
 
@@ -417,6 +417,7 @@ static void benchmark_all_gpu_devices(void)
 #ifdef __linux__
 	/* Save the current cpu binding */
 	cpu_set_t former_process_affinity;
+	int ret;
 	ret = sched_getaffinity(0, sizeof(former_process_affinity), &former_process_affinity);
 	if (ret)
 	{