summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_HIP_PLATFORM.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-09-18 18:11:41 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-21 19:34:37 (GMT)
commit127b6fa06bf53ad9f31d041a7d11434ca2856c8e (patch)
tree26f2bdb717a1592b9a31fb6bc1cdff37f42a1373 /Help/variable/CMAKE_HIP_PLATFORM.rst
parent90e23f40ee27c0990b30b3640731e89539cb3990 (diff)
downloadCMake-127b6fa06bf53ad9f31d041a7d11434ca2856c8e.zip
CMake-127b6fa06bf53ad9f31d041a7d11434ca2856c8e.tar.gz
CMake-127b6fa06bf53ad9f31d041a7d11434ca2856c8e.tar.bz2
HIP: Add CMAKE_HIP_PLATFORM variable to specify GPU platform
For now, require the value to be `amd`, since that is the only platform we currently support.
Diffstat (limited to 'Help/variable/CMAKE_HIP_PLATFORM.rst')
-rw-r--r--Help/variable/CMAKE_HIP_PLATFORM.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_HIP_PLATFORM.rst b/Help/variable/CMAKE_HIP_PLATFORM.rst
new file mode 100644
index 0000000..1715066
--- /dev/null
+++ b/Help/variable/CMAKE_HIP_PLATFORM.rst
@@ -0,0 +1,19 @@
+CMAKE_HIP_PLATFORM
+------------------
+
+.. versionadded:: 3.28
+
+GPU platform for which HIP language sources are to be compiled.
+
+The value must be one of:
+
+``amd``
+ AMD GPUs
+
+If not specified, the default is ``amd``.
+
+:variable:`CMAKE_HIP_ARCHITECTURES` entries are interpreted with
+as architectures of the GPU platform.
+
+:variable:`CMAKE_HIP_COMPILER <CMAKE_<LANG>_COMPILER>` must target
+the same GPU platform.