#1082813 kokkos: enable AMD GPU support

#1082813#5
Date:
2024-09-26 18:39:58 UTC
From:
To:
Dear Maintainer,

The kokkos project has an AMD ROCm backend for hardware acceleration on
AMD GPUs. It would be good to enable this functionality. The AMD backend
depends on the following packages:

hipcc
librocthrust-dev

The kokkos library uses an unusual set of options to choose the AMD GPU
targets. Please see this table from the Spack package [1] that translates
from the LLVM target name to the kokkos architecture suffix:

    amdgpu_arch_map = {
        "gfx900": "vega900",
        "gfx906": "vega906",
        "gfx908": "vega908",
        "gfx90a": "vega90A",
        "gfx940": "amd_gfx940",
        "gfx942": "amd_gfx942",
        "gfx1030": "navi1030",
        "gfx1100": "navi1100",
    }

The names are somewhat misleading because gfx908 and gfx90a are not
vega. The gfx908 and gfx90a architectures were arcturus and aldebaran,
respectively. The option name doesn't affect anything, but perhaps that
clarification will help avoid confusion in the future.

I would suggest enabling all of the architectures listed above, except
perhaps gfx940, as that architecture was only used for early MI300
engineering samples. All retail MI300 hardware is gfx942.

The kokkos architecture names would be used with the Kokkos_ARCH_
prefix, so I believe this would result in the following flags:

#1082813#10
Date:
2026-03-09 22:32:51 UTC
From:
To:
Hi Cordell,

thanks for opening this bug! I asked Alex if I can take care of this and he
gave me the green lights.

So enabling all of this will enable AMD GPU support?

That would be nice, since I don't have any AMD GPU available. I'm on NVIDIA..

Thanks again!

Regards,