Skip to content

Commit 6b3b815

Browse files
authored
Use native nvcc flag when architectures aren't specified (#1091)
1 parent 42efe7b commit 6b3b815

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ include(rapids-find)
3737
rapids_cpm_init(OVERRIDE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/versions.json")
3838

3939
if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
40-
include(rapids-cuda)
41-
set(CMAKE_CUDA_ARCHITECTURES "NATIVE")
42-
message(STATUS "Auto-detecting GPU architectures since CMAKE_CUDA_ARCHITECTURES not defined")
43-
rapids_cuda_init_architectures(MATX)
40+
set(CMAKE_CUDA_ARCHITECTURES "native")
41+
message(STATUS "Using native GPU architecture since CMAKE_CUDA_ARCHITECTURES not defined")
4442
endif()
4543

4644
# This needs to go after rapids initialization otherwise we get a rapids_export_parse_version error

0 commit comments

Comments
 (0)