Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 1d94385

Browse files
committed
Update more CUDA compiler ID checks.
1 parent 9d4a366 commit 1d94385

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmake/CubBuildCompilerTargets.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function(cub_build_compiler_targets)
8383
endif()
8484
endif()
8585

86-
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
86+
if ("NVHPC" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
8787
list(APPEND cxx_compile_options -Mnodaz)
8888
# TODO: Managed memory is currently not supported on windows with WSL
8989
list(APPEND cxx_compile_options -gpu=nomanaged)

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
1+
if ("NVHPC" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
22
# NVBugs 200770766
33
set(CUB_SEPARATE_CATCH2 ON)
44
else()
@@ -152,7 +152,7 @@ function(cub_add_test target_name_var test_name test_src cub_target)
152152
PROPERTY POSITION_INDEPENDENT_CODE ON
153153
)
154154

155-
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
155+
if ("NVHPC" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
156156
target_link_options(${config_c2h_target} PRIVATE "-cuda")
157157
target_compile_options(${config_c2h_target} PRIVATE "-fPIC")
158158
endif()
@@ -195,7 +195,7 @@ function(cub_add_test target_name_var test_name test_src cub_target)
195195
target_include_directories(${config_c2run_target} PRIVATE
196196
"${CUB_SOURCE_DIR}/test"
197197
)
198-
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
198+
if ("NVHPC" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
199199
target_link_options(${config_c2run_target} PRIVATE "-cuda")
200200
endif()
201201

0 commit comments

Comments
 (0)