Skip to content

Commit

Permalink
Update comment around why we disable CMAKE_CUDA_ARCHITECTURES in init
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Dec 19, 2022
1 parent 9bd76e5 commit 9df2f10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rapids-cmake/cuda/init_architectures.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ function(rapids_cuda_init_architectures project_name)
set(cuda_arch_mode "RAPIDS")
endif()

# This needs to be run before enabling the CUDA language since RAPIDS supports the magic string of
# "ALL"
# This needs to be run before enabling the CUDA language since RAPIDS supports magic
# values like `RAPIDS`, `ALL`, and `NATIVE` which if propagated cause CMake to fail to determine
# the CUDA compiler
if(cuda_arch_mode STREQUAL "RAPIDS")
set(CMAKE_CUDA_ARCHITECTURES OFF PARENT_SCOPE)
set(load_file "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/detail/invoke_set_all_architectures.cmake")
Expand Down

0 comments on commit 9df2f10

Please sign in to comment.