summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2021-08-17 16:28:23 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2021-11-01 18:57:58 (GMT)
commit14d8a2768d8b8c2ba0f341b4bd59a875aaf6c2f4 (patch)
tree2074643d278024f89622b959a7795ee57438c222 /Help/prop_tgt
parente1acb03cd9b53fe81dd9e1696ac293ae5ba468cc (diff)
downloadCMake-14d8a2768d8b8c2ba0f341b4bd59a875aaf6c2f4.zip
CMake-14d8a2768d8b8c2ba0f341b4bd59a875aaf6c2f4.tar.gz
CMake-14d8a2768d8b8c2ba0f341b4bd59a875aaf6c2f4.tar.bz2
CUDA: Support nvcc 11.5 new -arch=all|all-major flags
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/CUDA_ARCHITECTURES.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Help/prop_tgt/CUDA_ARCHITECTURES.rst b/Help/prop_tgt/CUDA_ARCHITECTURES.rst
index a3191e8..41e5ae4 100644
--- a/Help/prop_tgt/CUDA_ARCHITECTURES.rst
+++ b/Help/prop_tgt/CUDA_ARCHITECTURES.rst
@@ -20,6 +20,18 @@ variable if it is set when a target is created.
The ``CUDA_ARCHITECTURES`` target property must be set to a non-empty value on targets
that compile CUDA sources, or it is an error. See policy :policy:`CMP0104`.
+.. versionadded:: 3.23
+
+ The ``CUDA_ARCHITECTURES`` may be set to the following special keywords:
+
+ ``all``
+ Requires NVIDIA 11.5+. Will compile for all supported major and minor real
+ architectures, and the highest major virtual architecture.
+
+ ``all-major``
+ Requires NVIDIA 11.5+. Will compile for all supported major real
+ architectures, and the highest major virtual architecture.
+
Examples
^^^^^^^^