Browse Source

fix size of array when measuring

Corentin Salingue 8 years ago
parent
commit
dd1f6ce78a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/perfmodel/perfmodel_bus.c

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

@@ -110,7 +110,7 @@ static uint64_t opencl_size[STARPU_MAXCUDADEVS];
 #ifdef STARPU_USE_OPENCL
 /* preference order of cores (logical indexes) */
 static int opencl_affinity_matrix[STARPU_MAXOPENCLDEVS][STARPU_MAXNUMANODES];
-static struct dev_timing opencldev_timing_per_numa[STARPU_MAXOPENCLDEVS*STARPU_MAXNODES];
+static struct dev_timing opencldev_timing_per_numa[STARPU_MAXOPENCLDEVS*STARPU_MAXNUMANODES];
 #endif
 
 #ifdef STARPU_USE_MIC
@@ -940,7 +940,7 @@ static void write_bus_affinity_file_content(void)
 #ifdef STARPU_USE_OPENCL
 	{
 		/* Use an other array to sort bandwidth */
-		struct dev_timing opencldev_timing_per_numa_sorted[STARPU_MAXOPENCLDEVS*STARPU_MAXNODES];
+		struct dev_timing opencldev_timing_per_numa_sorted[STARPU_MAXOPENCLDEVS*STARPU_MAXNUMANODES];
 		memcpy(opencldev_timing_per_numa_sorted, opencldev_timing_per_numa, STARPU_MAXOPENCLDEVS*STARPU_MAXNUMANODES*sizeof(struct dev_timing));
 
 		for (gpu = 0; gpu < nopencl; gpu++)