diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-10-07 16:34:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-07 19:58:53 (GMT) |
commit | 7f4cbf65949bd9d5ac7311dd7f740209bb16765c (patch) | |
tree | ccf27a6cc8d393bc987339e154b1534b42ead572 /Modules | |
parent | b18a86051e55d7cbdd7cb92325f13bfa8f92726f (diff) | |
download | CMake-7f4cbf65949bd9d5ac7311dd7f740209bb16765c.zip CMake-7f4cbf65949bd9d5ac7311dd7f740209bb16765c.tar.gz CMake-7f4cbf65949bd9d5ac7311dd7f740209bb16765c.tar.bz2 |
CUDA: Add support for the two new architectures in 11.8
CUDA 11.8 introduces ada ( 89 ), and hopper ( 90 ).
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CUDA/architectures.cmake | 6 |
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") |