summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-10 13:50:30 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-10-10 13:50:52 (GMT)
commiteb59397ef8fa21ae0a1e904eebbd139163521986 (patch)
treef45bd47514bacbd385729bb1d880c89e6b53ee1b
parentdb11f1f4bbffccbfb33871e4bbe4548987e67dac (diff)
parent7f4cbf65949bd9d5ac7311dd7f740209bb16765c (diff)
downloadCMake-eb59397ef8fa21ae0a1e904eebbd139163521986.zip
CMake-eb59397ef8fa21ae0a1e904eebbd139163521986.tar.gz
CMake-eb59397ef8fa21ae0a1e904eebbd139163521986.tar.bz2
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
-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 79c1252..d646920 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")