瀏覽代碼

Merge topic 'cuda-13.0-prep' into release-3.31

b62f3257f2 CUDA/Clang: Update nvcc default architectures with CUDA 13 deprecations

Acked-by: Kitware Robot <[email protected]>
Merge-request: !10671
Brad King 5 月之前
父節點
當前提交
e466e7d702
共有 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()