summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-09-18 19:46:39 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-21 19:34:37 (GMT)
commit18158bf81ccb5269afcfa53cd671cf7f56dc70b5 (patch)
treec7877ec383af7831f4feb431ceb7dbe7d048d368 /Help
parent127b6fa06bf53ad9f31d041a7d11434ca2856c8e (diff)
downloadCMake-18158bf81ccb5269afcfa53cd671cf7f56dc70b5.zip
CMake-18158bf81ccb5269afcfa53cd671cf7f56dc70b5.tar.gz
CMake-18158bf81ccb5269afcfa53cd671cf7f56dc70b5.tar.bz2
HIP: Add support for NVIDIA GPUs
Add support for using the CUDA Toolkit's NVCC to compile HIP code. Fixes: #25143
Diffstat (limited to 'Help')
-rw-r--r--Help/release/dev/hip-nvidia.rst5
-rw-r--r--Help/variable/CMAKE_HIP_PLATFORM.rst5
2 files changed, 8 insertions, 2 deletions
diff --git a/Help/release/dev/hip-nvidia.rst b/Help/release/dev/hip-nvidia.rst
index f4617e7..1d9814e 100644
--- a/Help/release/dev/hip-nvidia.rst
+++ b/Help/release/dev/hip-nvidia.rst
@@ -1,6 +1,9 @@
hip-nvidia
----------
+* ``HIP`` language code may now be compiled for NVIDIA GPUs
+ using the NVIDIA CUDA Compiler (NVCC).
+
* The :variable:`CMAKE_HIP_PLATFORM` variable was added to specify
the GPU platform for which HIP language sources are to be compiled
- (``amd``).
+ (``amd`` or ``nvidia``).
diff --git a/Help/variable/CMAKE_HIP_PLATFORM.rst b/Help/variable/CMAKE_HIP_PLATFORM.rst
index 1715066..5e3a2b7 100644
--- a/Help/variable/CMAKE_HIP_PLATFORM.rst
+++ b/Help/variable/CMAKE_HIP_PLATFORM.rst
@@ -10,7 +10,10 @@ The value must be one of:
``amd``
AMD GPUs
-If not specified, the default is ``amd``.
+``nvidia``
+ NVIDIA GPUs
+
+If not specified, a default is computed via ``hipconfig --platform``.
:variable:`CMAKE_HIP_ARCHITECTURES` entries are interpreted with
as architectures of the GPU platform.