mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-07-31 11:04:40 +08:00
Add `spirv` as a known value for `CMAKE_HIP_PLATFORM`. Default `CMAKE_HIP_ARCHITECTURES` to `OFF` for `spirv`. Fixes: #27410
28 lines
535 B
ReStructuredText
28 lines
535 B
ReStructuredText
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
|
|
|
|
``nvidia``
|
|
NVIDIA GPUs
|
|
|
|
``spirv``
|
|
.. versionadded:: 4.3
|
|
|
|
SPIR-V target (e.g., chipStar)
|
|
|
|
If not specified, a default is computed via ``hipconfig --platform``.
|
|
|
|
: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.
|