mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
CUDA/Clang: Update nvcc default architectures with CUDA 13 deprecations
As outlined in the CUDA 12.9 release notes sm_5X, sm_6X, and sm_70 are being removed in CUDA 13: > Maxwell, Pascal, and Volta architectures are now feature-complete with > no further enhancements planned. While CUDA Toolkit 12.x series will > continue to support building applications for these architectures, > offline compilation and library support will be removed in the next > major CUDA Toolkit version release.
This commit is contained in:
committed by
Brad King
parent
23e8090aa4
commit
b62f3257f2
@@ -115,6 +115,9 @@ if(NOT CMAKE_CUDA_COMPILER_ID_RUN)
|
||||
# Clang does not automatically select an architecture supported by the SDK.
|
||||
# Prefer NVCC's default for each SDK version, and fall back to older archs.
|
||||
set(archs "")
|
||||
if(NOT CMAKE_CUDA_COMPILER_TOOLKIT_VERSION VERSION_LESS 13.0)
|
||||
list(APPEND archs 75)
|
||||
endif()
|
||||
if(NOT CMAKE_CUDA_COMPILER_TOOLKIT_VERSION VERSION_LESS 11.0)
|
||||
list(APPEND archs 52)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user