瀏覽代碼

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.
Robert Maynard 5 月之前
父節點
當前提交
b62f3257f2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Modules/CMakeDetermineCUDACompiler.cmake

+ 3 - 0
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()