Skip to content

Commit 1ed610f

Browse files
utilForeverCopilot
andcommitted
build: include CUDA CCCL headers when available
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7644842 commit 1ed610f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ if (USE_CUDA)
5555
find_package(CUDA)
5656
if (CUDA_FOUND) # Modify project options for CUDA build
5757
enable_language(CUDA)
58+
if (EXISTS "${CUDA_TOOLKIT_ROOT_DIR}/include/cccl")
59+
include_directories("${CUDA_TOOLKIT_ROOT_DIR}/include/cccl")
60+
endif()
5861
cuda_select_nvcc_arch_flags(CUDA_NVCC_FLAGS "7.5" "Turing")
5962
# We will use CUDA_TARGET_OPTIONS instead of CUDA_NVCC_FLAGS to be explicit.
6063
# start with architecture options

0 commit comments

Comments
 (0)