We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e93d51 commit 8d69a25Copy full SHA for 8d69a25
CMakeLists.txt
@@ -37,7 +37,7 @@ if (ENABLE_OPENCL)
37
endif()
38
if (ENABLE_CUDA)
39
find_package(CUDAToolkit REQUIRED)
40
- if (CUDA_FOUND)
+ if (CUDAToolkit_FOUND)
41
list(APPEND SOURCES backends/cuda.c)
42
else()
43
message(FATAL_ERROR "ENABLE_CUDA is ON but unable to find CUDA runtime.")
backends/cuda.c
@@ -10,7 +10,7 @@ static const char *ERR_STR_BACKEND_FAILURE = "CUDA %s failure: %s.";
10
#define RUNTIME_COMPILATION nvrtc
11
#define RUNTIME cu
12
13
-#define backendDeviceProp_t cudaDeviceProp
+#define backendDeviceProp_t struct cudaDeviceProp
14
15
#define backendModuleLaunchKernel cuLaunchKernel
16
0 commit comments