mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
Merge topic 'hip-nvidia'
6546aa2a2aci: Add HIP job using CUDA on NVIDIA GPUs18158bf81cHIP: Add support for NVIDIA GPUs127b6fa06bHIP: Add CMAKE_HIP_PLATFORM variable to specify GPU platform90e23f40eeTests/HIP/WithDefs: Clean up test case9ebdf3281fTests/HIP/ArchitectureOff: Cover HIP_ARCHITECTURES initializationcfec29196eci: Add CUDA 11.8 to HIP 5.5 image26470eb987ci: Put HIP GPU platform in CMake_TEST_HIP Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8817
This commit is contained in:
@@ -3,10 +3,14 @@ CMAKE_HIP_ARCHITECTURES
|
||||
|
||||
.. versionadded:: 3.21
|
||||
|
||||
Default value for :prop_tgt:`HIP_ARCHITECTURES` property of targets.
|
||||
List of GPU architectures to for which to generate device code.
|
||||
Architecture names are interpreted based on :variable:`CMAKE_HIP_PLATFORM`.
|
||||
|
||||
This is initialized to the architectures reported by ``rocm_agent_enumerator``,
|
||||
if available, and otherwise to the default chosen by the compiler.
|
||||
This is initialized based on the value of :variable:`CMAKE_HIP_PLATFORM`:
|
||||
|
||||
``amd``
|
||||
Uses architectures reported by ``rocm_agent_enumerator``, if available,
|
||||
and otherwise to a default chosen by the compiler.
|
||||
|
||||
This variable is used to initialize the :prop_tgt:`HIP_ARCHITECTURES` property
|
||||
on all targets. See the target property for additional information.
|
||||
|
||||
22
Help/variable/CMAKE_HIP_PLATFORM.rst
Normal file
22
Help/variable/CMAKE_HIP_PLATFORM.rst
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user