Skip to content

Commit 6dda328

Browse files
robertmaynardguocuimi
authored andcommitted
Support both CUDA 12 and 13 cccl header locations (NVIDIA#2543)
1 parent 6096875 commit 6dda328

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,14 @@ target_include_directories(
704704
CUTLASS
705705
SYSTEM INTERFACE
706706
$<BUILD_INTERFACE:${CUDA_TOOLKIT_ROOT_DIR}/include>
707-
$<BUILD_INTERFACE:${CUDA_TOOLKIT_ROOT_DIR}/include/cccl>
708707
)
708+
if(CUDA_VERSION VERSION_GREATER_EQUAL 13.0)
709+
target_include_directories(
710+
CUTLASS
711+
SYSTEM INTERFACE
712+
$<BUILD_INTERFACE:${CUDA_TOOLKIT_ROOT_DIR}/include/cccl>
713+
)
714+
endif()
709715

710716
install(
711717
DIRECTORY

0 commit comments

Comments
 (0)