summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-10 13:50:30 +0000
committerKitware Robot <kwrobot@kitware.com>2022-10-10 09:50:52 -0400
commiteb59397ef8fa21ae0a1e904eebbd139163521986 (patch)
treef45bd47514bacbd385729bb1d880c89e6b53ee1b /Modules
parentdb11f1f4bbffccbfb33871e4bbe4548987e67dac (diff)
parent7f4cbf65949bd9d5ac7311dd7f740209bb16765c (diff)
downloadcmake-eb59397ef8fa21ae0a1e904eebbd139163521986.tar.gz
Merge topic 'add_cuda_11.8_new_archs'
7f4cbf6594 CUDA: Add support for the two new architectures in 11.8 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7761
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CUDA/architectures.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CUDA/architectures.cmake b/Modules/CUDA/architectures.cmake
index 79c1252711..d64692046c 100644
--- a/Modules/CUDA/architectures.cmake
+++ b/Modules/CUDA/architectures.cmake
@@ -45,6 +45,12 @@ if(CMAKE_CUDA_COMPILER_TOOLKIT_VERSION VERSION_GREATER_EQUAL 11.4
list(APPEND CMAKE_CUDA_ARCHITECTURES_ALL 87)
endif()
+if(CMAKE_CUDA_COMPILER_TOOLKIT_VERSION VERSION_GREATER_EQUAL 11.8
+ AND (NOT CMAKE_CUDA_COMPILER_ID STREQUAL "Clang"))
+ list(APPEND CMAKE_CUDA_ARCHITECTURES_ALL 89 90)
+ list(APPEND CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR 90)
+endif()
+
# only generate jit code for the newest arch for all/all-major
list(POP_BACK CMAKE_CUDA_ARCHITECTURES_ALL _latest_arch)
list(TRANSFORM CMAKE_CUDA_ARCHITECTURES_ALL APPEND "-real")