summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCUDACompiler.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-07 13:48:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-07 13:48:25 (GMT)
commitdae13c214fc034f7fe5125d95f8ddb69284d4c23 (patch)
tree7b293eac6cf7a30bd5278ed2c97974ee9c881930 /Modules/CMakeDetermineCUDACompiler.cmake
parent12124a1b412845e76e1c4ec1c3c09f15f7edb4a4 (diff)
parent234aa7e0aaede7cbec193bc90813a75cbf24430d (diff)
downloadCMake-dae13c214fc034f7fe5125d95f8ddb69284d4c23.zip
CMake-dae13c214fc034f7fe5125d95f8ddb69284d4c23.tar.gz
CMake-dae13c214fc034f7fe5125d95f8ddb69284d4c23.tar.bz2
Merge topic 'cuda_support_sm90a'
234aa7e0aa CUDA: Support upcoming sm90a architecture Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7649
Diffstat (limited to 'Modules/CMakeDetermineCUDACompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCUDACompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCUDACompiler.cmake b/Modules/CMakeDetermineCUDACompiler.cmake
index 7e57f3b..f43b17b 100644
--- a/Modules/CMakeDetermineCUDACompiler.cmake
+++ b/Modules/CMakeDetermineCUDACompiler.cmake
@@ -275,7 +275,7 @@ if(NOT CMAKE_CUDA_COMPILER_ID_RUN)
if(DEFINED CMAKE_CUDA_ARCHITECTURES)
if(CMAKE_CUDA_ARCHITECTURES STREQUAL "")
message(FATAL_ERROR "CMAKE_CUDA_ARCHITECTURES must be non-empty if set.")
- elseif(CMAKE_CUDA_ARCHITECTURES AND NOT CMAKE_CUDA_ARCHITECTURES MATCHES "^([0-9]+(-real|-virtual)?(;[0-9]+(-real|-virtual)?|;)*|all|all-major|native)$")
+ elseif(CMAKE_CUDA_ARCHITECTURES AND NOT CMAKE_CUDA_ARCHITECTURES MATCHES "^([0-9]+a?(-real|-virtual)?(;[0-9]+a?(-real|-virtual)?|;)*|all|all-major|native)$")
message(FATAL_ERROR
"CMAKE_CUDA_ARCHITECTURES:\n"
" ${CMAKE_CUDA_ARCHITECTURES}\n"