This repository was archived by the owner on Mar 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change 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 )
44else ()
@@ -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
You can’t perform that action at this time.
0 commit comments