cmake/Help/variable/CMAKE_HIP_ARCHITECTURES.rst

17 lines
572 B
ReStructuredText
Raw Normal View History

2021-09-14 00:13:48 +02:00
CMAKE_HIP_ARCHITECTURES
-----------------------
.. versionadded:: 3.21
2023-12-07 09:12:54 +01:00
List of GPU architectures to for which to generate device code.
Architecture names are interpreted based on :variable:`CMAKE_HIP_PLATFORM`.
2021-09-14 00:13:48 +02:00
2023-12-07 09:12:54 +01:00
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.
2021-09-14 00:13:48 +02:00
This variable is used to initialize the :prop_tgt:`HIP_ARCHITECTURES` property
on all targets. See the target property for additional information.