From b62f3257f2c938a85860c85bd6fe113239bc9f94 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 13 May 2025 08:55:54 -0400 Subject: 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. --- Modules/CMakeDetermineCUDACompiler.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/CMakeDetermineCUDACompiler.cmake b/Modules/CMakeDetermineCUDACompiler.cmake index cad26da..882b851 100644 --- a/Modules/CMakeDetermineCUDACompiler.cmake +++ b/Modules/CMakeDetermineCUDACompiler.cmake @@ -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() -- cgit v0.12