浏览代码

Fix initial value for number of cuda devices

Samuel Thibault 8 年之前
父节点
当前提交
6734d1fd95
共有 1 个文件被更改,包括 1 次插入1 次删除
  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];