CMAKE_HIP_PLATFORM — CMake 4.1.4 Documentation

# CMAKE_HIP_PLATFORM

Added in version 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`.

`CMAKE_HIP_ARCHITECTURES` entries are interpreted with as architectures of the GPU platform.

`CMAKE_HIP_COMPILER` must target the same GPU platform.