summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_HIP_ARCHITECTURES.rst
blob: 3f179831efe38449ae4699263a3fa4f72116d9ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CMAKE_HIP_ARCHITECTURES
-----------------------

.. versionadded:: 3.21

List of GPU architectures to for which to generate device code.
Architecture names are interpreted based on :variable:`CMAKE_HIP_PLATFORM`.

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.