Skip to content

Commit 8d69a25

Browse files
committed
Fix a few build errors when building with the CUDA backend
1 parent 5e93d51 commit 8d69a25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (ENABLE_OPENCL)
3737
endif()
3838
if (ENABLE_CUDA)
3939
find_package(CUDAToolkit REQUIRED)
40-
if (CUDA_FOUND)
40+
if (CUDAToolkit_FOUND)
4141
list(APPEND SOURCES backends/cuda.c)
4242
else()
4343
message(FATAL_ERROR "ENABLE_CUDA is ON but unable to find CUDA runtime.")

backends/cuda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static const char *ERR_STR_BACKEND_FAILURE = "CUDA %s failure: %s.";
1010
#define RUNTIME_COMPILATION nvrtc
1111
#define RUNTIME cu
1212

13-
#define backendDeviceProp_t cudaDeviceProp
13+
#define backendDeviceProp_t struct cudaDeviceProp
1414

1515
#define backendModuleLaunchKernel cuLaunchKernel
1616

0 commit comments

Comments
 (0)