summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCUDACompiler.cmake
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2022-08-29 20:04:15 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2022-09-06 15:09:46 (GMT)
commit234aa7e0aaede7cbec193bc90813a75cbf24430d (patch)
treeec31db923ec0651c9b959bb44c6b089b95a80934 /Modules/CMakeDetermineCUDACompiler.cmake
parent8f3ba34ea2dae318c328f0fef04add0a2b17b74b (diff)
downloadCMake-234aa7e0aaede7cbec193bc90813a75cbf24430d.zip
CMake-234aa7e0aaede7cbec193bc90813a75cbf24430d.tar.gz
CMake-234aa7e0aaede7cbec193bc90813a75cbf24430d.tar.bz2
CUDA: Support upcoming sm90a architecture
The architecture values are being extended to have at time a trailing `a`. This updates the CMake regex to support this syntax.
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 0ac06ac..f5669d6 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"