summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-28 18:48:55 (GMT)
committerBrad King <brad.king@kitware.com>2022-03-01 02:30:23 (GMT)
commite450d555524195e95ea140838a2b7f06caad6b1b (patch)
treec12248e0ba741d171b2b285333894c85dd3b1868 /Help/prop_tgt
parentfe64c49e72ec025965bc9fe1a733859c025f68b1 (diff)
downloadCMake-e450d555524195e95ea140838a2b7f06caad6b1b.zip
CMake-e450d555524195e95ea140838a2b7f06caad6b1b.tar.gz
CMake-e450d555524195e95ea140838a2b7f06caad6b1b.tar.bz2
Help: Update CUDA_ARCHITECTURES docs for generic all/all-major support
Since commit 8f64df0a7c (CUDA: Generic all and all-major support, 2021-12-19, v3.23.0-rc1~23^2), these special values do not require any specific compiler or version. While at it, re-organize CUDA_ARCHITECTURES special value documentation. Move the `versionadded` markup inside each special value so we can add more in future versions.
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/CUDA_ARCHITECTURES.rst18
1 files changed, 10 insertions, 8 deletions
diff --git a/Help/prop_tgt/CUDA_ARCHITECTURES.rst b/Help/prop_tgt/CUDA_ARCHITECTURES.rst
index 41e5ae4..191f78f 100644
--- a/Help/prop_tgt/CUDA_ARCHITECTURES.rst
+++ b/Help/prop_tgt/CUDA_ARCHITECTURES.rst
@@ -20,17 +20,19 @@ 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 one of the following special values:
- The ``CUDA_ARCHITECTURES`` may be set to the following special keywords:
+``all``
+ .. versionadded:: 3.23
- ``all``
- Requires NVIDIA 11.5+. Will compile for all supported major and minor real
- architectures, and the highest major virtual architecture.
+ 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.
+``all-major``
+ .. versionadded:: 3.23
+
+ Compile for all supported major real architectures, and the highest
+ major virtual architecture.
Examples
^^^^^^^^