Browse Source

fix build with CUDA

Samuel Thibault 15 years ago
parent
commit
479ba3a0c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/perfmodel/perfmodel_bus.c

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

@@ -316,6 +316,7 @@ static void write_bus_affinity_file_content(void)
 #ifdef USE_CUDA
 	struct machine_config_s *config = _starpu_get_machine_config();
 	unsigned ncores = _starpu_topology_get_nhwcore(config);
+	unsigned core;
 
 	fprintf(f, "# GPU\t");
 	for (core = 0; core < ncores; core++)
@@ -327,7 +328,6 @@ static void write_bus_affinity_file_content(void)
 	{
 		fprintf(f, "%d\t", gpu);
 
-		unsigned core;
 		for (core = 0; core < ncores; core++)
 		{
 			fprintf(f, "%d\t", cudadev_timing_per_cpu[gpu+1][core].cpu_id);