summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-18 17:24:48 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-18 17:28:14 (GMT)
commit6251edc5a42be2d1ae8494ed45cc28cb321ce509 (patch)
treef4778394415122b411f53494252a95fb228c5d13 /Modules
parent07b7d0ceaaa2fc86728184feccde34de00417386 (diff)
downloadCMake-6251edc5a42be2d1ae8494ed45cc28cb321ce509.zip
CMake-6251edc5a42be2d1ae8494ed45cc28cb321ce509.tar.gz
CMake-6251edc5a42be2d1ae8494ed45cc28cb321ce509.tar.bz2
CUDA/Clang: Record architectures supported by Clang 16
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Internal/CMakeCUDAArchitecturesAll.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/Internal/CMakeCUDAArchitecturesAll.cmake b/Modules/Internal/CMakeCUDAArchitecturesAll.cmake
index e0fdb67..c588dfb 100644
--- a/Modules/Internal/CMakeCUDAArchitecturesAll.cmake
+++ b/Modules/Internal/CMakeCUDAArchitecturesAll.cmake
@@ -55,13 +55,17 @@ function(cmake_cuda_architectures_all lang lang_var_)
endif()
if(${lang_var_}TOOLKIT_VERSION VERSION_GREATER_EQUAL 11.4)
- if(CMAKE_${lang}_COMPILER_ID STREQUAL "NVIDIA")
+ if(CMAKE_${lang}_COMPILER_ID STREQUAL "NVIDIA"
+ OR (CMAKE_${lang}_COMPILER_ID STREQUAL "Clang" AND CMAKE_${lang}_COMPILER_VERSION VERSION_GREATER_EQUAL 16.0)
+ )
list(APPEND CMAKE_CUDA_ARCHITECTURES_ALL 87)
endif()
endif()
if(${lang_var_}TOOLKIT_VERSION VERSION_GREATER_EQUAL 11.8)
- if(CMAKE_${lang}_COMPILER_ID STREQUAL "NVIDIA")
+ if(CMAKE_${lang}_COMPILER_ID STREQUAL "NVIDIA"
+ OR (CMAKE_${lang}_COMPILER_ID STREQUAL "Clang" AND CMAKE_${lang}_COMPILER_VERSION VERSION_GREATER_EQUAL 16.0)
+ )
list(APPEND CMAKE_CUDA_ARCHITECTURES_ALL 89 90)
list(APPEND CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR 90)
endif()