Browse Source

fix declaration of array

Corentin Salingue 8 years ago
parent
commit
df36b837d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/drivers/cuda/driver_cuda.h

+ 1 - 1
src/drivers/cuda/driver_cuda.h

@@ -32,7 +32,7 @@ extern struct _starpu_driver_ops _starpu_driver_cuda_ops;
 
 
 void _starpu_cuda_init(void);
 void _starpu_cuda_init(void);
 unsigned _starpu_get_cuda_device_count(void);
 unsigned _starpu_get_cuda_device_count(void);
-extern int _starpu_cuda_bus_ids[STARPU_MAXCUDADEVS+1][STARPU_MAXCUDADEVS+1];
+extern int _starpu_cuda_bus_ids[STARPU_MAXCUDADEVS+STARPU_MAXNUMANODES][STARPU_MAXCUDADEVS+STARPU_MAXNUMANODES];
 
 
 #if defined(STARPU_USE_CUDA) || defined(STARPU_SIMGRID)
 #if defined(STARPU_USE_CUDA) || defined(STARPU_SIMGRID)
 void _starpu_cuda_discover_devices (struct _starpu_machine_config *);
 void _starpu_cuda_discover_devices (struct _starpu_machine_config *);