소스 검색

accept machines without cuda devices

Samuel Thibault 12 년 전
부모
커밋
d5cffa5e98
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/drivers/cuda/driver_cuda.c

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

@@ -52,7 +52,7 @@ _starpu_cuda_discover_devices (struct _starpu_machine_config *config)
 
 	cures = cudaGetDeviceCount (&cnt);
 	if (STARPU_UNLIKELY(cures != cudaSuccess))
-		STARPU_CUDA_REPORT_ERROR(cures);
+		cnt = 0;
 	config->topology.nhwcudagpus = cnt;
 }