[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ROCm 6.4 gpu targets



Hi Tom,

On 2025-07-15 07:46, Rix, Tom wrote:
With a ROCm 6.4 compiler, new gpu targets will be possible.
What are folk's thoughts about adding at least gfx942,gfx1151,gfx1200,gfx1201?

Those would make sense. We don't need a new compiler to enable gfx942 in the Debian packages, so that is already in-progress.

The upstream libraries in ROCm 6.4 default to building for gfx1151, gfx1200, and gfx1201, so I expect that those would be relatively easy to enable in Debian once the compiler and runtime have been updated. I would prefer to add gfx11-generic and gfx12-generic than more specific gfx11 and gfx12 targets, but it may be that some upstream libraries will still fail to build with the generic targets.

Note that the gfx1200 and gfx1201 ISAs are identical in all but name. Debian has fallback logic patched into its HIP runtime, which it currently uses to support gfx101{0-3} and gfx103{0-6}. We can probably just extend those same patches to use fallback logic for gfx120{0,1} and skip building for gfx1201 until the generic targets can be used.

I am also wondering about how to do this without having to touch every package.

This was recently solved. Christian Kastner has uploaded the rocm-target-arch tool (provided by pkg-rocm-tools) to Debian Experimental. You can see how it is used in rocsparse [1]. The target architectures are defined in /usr/share/pkg-rocm-tools/data/build-targets/<target_release> [2].

Sincerely,
Cory Bloor

[1]: https://salsa.debian.org/rocm-team/rocsparse/-/blob/debian/6.4.1-1_exp3/debian/rules?ref_type=tags#L14
[2]: https://packages.debian.org/experimental/all/pkg-rocm-tools/filelist


Reply to: