Explorar o código

Fix initial value for number of cuda devices

Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
6734d1fd95
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/drivers/cuda/driver_cuda.c

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

@@ -48,7 +48,7 @@
 #endif
 
 /* the number of CUDA devices */
-static unsigned ncudagpus;
+static int ncudagpus = -1;
 
 static size_t global_mem[STARPU_MAXCUDADEVS];
 int _starpu_cuda_bus_ids[STARPU_MAXCUDADEVS+1][STARPU_MAXCUDADEVS+1];