From 7f4cbf65949bd9d5ac7311dd7f740209bb16765c Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 7 Oct 2022 12:34:06 -0400 Subject: CUDA: Add support for the two new architectures in 11.8 CUDA 11.8 introduces ada ( 89 ), and hopper ( 90 ). --- Modules/CUDA/architectures.cmake | 6 ++++++ 1 file changed, 6 insertions(+) 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") -- cgit v1.2.1