Browse Source

CUDA/Clang: Update architectures supported by CUDA 12

In commit 4d90f65b24 (CUDA: Update set of architectures supported by
CUDA 12, 2022-12-19, v3.26.0-rc1~120^2) we incorrectly guarded dropping
removed architectures by compiler id, but it is actually the CUDA 12
toolkit itself that removed support.
Brad King 1 year ago
parent
commit
07b7d0ceaa
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Modules/Internal/CMakeCUDAArchitecturesAll.cmake

+ 2 - 4
Modules/Internal/CMakeCUDAArchitecturesAll.cmake

@@ -68,10 +68,8 @@ function(cmake_cuda_architectures_all lang lang_var_)
   endif()
 
   if(${lang_var_}TOOLKIT_VERSION VERSION_GREATER_EQUAL 12.0)
-    if(CMAKE_${lang}_COMPILER_ID STREQUAL "NVIDIA")
-      list(REMOVE_ITEM CMAKE_CUDA_ARCHITECTURES_ALL 35 37)
-      list(REMOVE_ITEM CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR 35)
-    endif()
+    list(REMOVE_ITEM CMAKE_CUDA_ARCHITECTURES_ALL 35 37)
+    list(REMOVE_ITEM CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR 35)
   endif()
 
   # only generate jit code for the newest arch for all/all-major