This repository was archived by the owner on Mar 21, 2024. It is now read-only.
File tree 2 files changed +4
-4
lines changed
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)
83
83
endif ()
84
84
endif ()
85
85
86
- if ("NVCXX " STREQUAL "${CMAKE_CUDA_COMPILER_ID} " )
86
+ if ("NVHPC " STREQUAL "${CMAKE_CUDA_COMPILER_ID} " )
87
87
list (APPEND cxx_compile_options -Mnodaz)
88
88
# TODO: Managed memory is currently not supported on windows with WSL
89
89
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} " )
2
2
# NVBugs 200770766
3
3
set (CUB_SEPARATE_CATCH2 ON )
4
4
else ()
@@ -152,7 +152,7 @@ function(cub_add_test target_name_var test_name test_src cub_target)
152
152
PROPERTY POSITION_INDEPENDENT_CODE ON
153
153
)
154
154
155
- if ("NVCXX " STREQUAL "${CMAKE_CUDA_COMPILER_ID} " )
155
+ if ("NVHPC " STREQUAL "${CMAKE_CUDA_COMPILER_ID} " )
156
156
target_link_options (${config_c2h_target} PRIVATE "-cuda" )
157
157
target_compile_options (${config_c2h_target} PRIVATE "-fPIC" )
158
158
endif ()
@@ -195,7 +195,7 @@ function(cub_add_test target_name_var test_name test_src cub_target)
195
195
target_include_directories (${config_c2run_target} PRIVATE
196
196
"${CUB_SOURCE_DIR} /test"
197
197
)
198
- if ("NVCXX " STREQUAL "${CMAKE_CUDA_COMPILER_ID} " )
198
+ if ("NVHPC " STREQUAL "${CMAKE_CUDA_COMPILER_ID} " )
199
199
target_link_options (${config_c2run_target} PRIVATE "-cuda" )
200
200
endif ()
201
201
You can’t perform that action at this time.
0 commit comments