CMAKE_HIP_ARCHITECTURES
Added in version 3.21.
List of GPU architectures to for which to generate device code. Architecture names are interpreted based on CMAKE_HIP_PLATFORM.
This is initialized based on the value of CMAKE_HIP_PLATFORM:
-
amd -
Uses architectures reported by
rocm_agent_enumerator, if available, and otherwise to a default chosen by the compiler. -
spirv -
Defaults to
OFF. The HIP package (e.g., chipStar) handles targeting via its own configuration.
This variable is used to initialize the HIP_ARCHITECTURES property on all targets. See the target property for additional information.
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/variable/CMAKE_HIP_ARCHITECTURES.html