mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #256] [CLOSED] HIP: support RDNA4 gfx1200 (RX 9060 XT) #2531
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2531
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/256
Author: @Efeisot
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:hip-gfx1200📝 Commits (1)
a1128ecHIP: support RDNA4 gfx1200 (RX 9060 XT)📊 Changes
7 files changed (+197 additions, -16 deletions)
View changed files
📝
cmake/hip_backend.cmake(+15 -5)➕
docs/AMD_HIP_GFX1200.md(+55 -0)📝
setup.py(+8 -6)📝
src/core/device.cu(+15 -4)📝
src/core/device_main.cpp(+1 -1)➕
tools/hip/gfx1200-hipblaslt-100202.txt(+69 -0)➕
tools/hip/gfx1200-run.sh(+34 -0)📄 Description
Continues the gfx1200 part of #176 on current main (0.1.29,
d6708a4), following the review there and in #192. One commit (a1128econ branchhip-gfx1200), +197/−16, seven files:cmake/hip_backend.cmakekeeps aSTRATA_HIP_ARCHSlist (gfx1100; gfx1200), builds for exactly one arch from it, and exports it asSTRATA_HIP_ARCH.src/core/device.cucompares the running card'sgcnArchNameagainst that macro (still requiring wave32) and fails at startup with a rebuild hint when they differ — so a gfx1100 build carried to a gfx1200 card no longer runs until aninvalid device function. Demonstrated on the card: a gfx1100-compiledstrata-deviceprintsHIP backend was compiled for gfx1100 but device AMD Radeon RX 9060 XT reports gfx1200; rebuild with -DCMAKE_HIP_ARCHITECTURES=gfx1200 (each build runs on the arch it was compiled for)while the gfx1200 binary plans normally.
AMD_ARCHS = ("gfx1100", "gfx1200"),AMD_NAMESgains the RX 9060 XT, and the two "not supported" messages list both cards. Setup already passes the detected arch asCMAKE_HIP_ARCHITECTURES, so no other change is needed there.tools/hip/gfx1200-hipblaslt-100202.txt: 67 rows (bf16 + f16) calibrated on the card withtools/hip/tune_hipblaslt, headerSTRATA_HIPBLASLT_TUNING_V1 gfx1200 100202. The engine refuses a table made for another arch or hipBLASLt version and falls back to plain hipBLAS, as before; setup finds it by its{arch}-hipblaslt-*.txtname.docs/AMD_HIP_GFX1200.md: deltas, hand build, tests, measured numbers.tools/hip/gfx1200-run.sh(per the #176 review — no root script), used for the measurements below.Left out as requested: no
PR_BODY.md, noinclude/math_constants.h(0.1.29 doesn't need it), no unroll pragma, nothing touchingprefill.cpp.Testing
ROCm 7.2 in /opt/rocm (hipBLASLt 100202), RX 9060 XT 16 GiB (gfx1200, wave32) + Ryzen 9 7950X + 64 GiB RAM, pinned llama.cpp
3cf03257fas the ggml source.ple_parityandplatform_memory_test(as in docs/AMD_HIP.md): 32/32 on 0.1.29, includinghip_prefill_hipblaslt_gemmagainst the new table.--spec 4 --spec-min-p 0.5, the launcher's flags): prefill 540 tok/s on a 2,374-token prompt, 748–753 tok/s on a 65K prompt (--kv int8 --kv-resident 65536 --prefill 16384), 725 tok/s on a 130K prompt — clean start to finish. Decode scales with MTP draft acceptance: 27.1 tok/s at 0.69 acceptance on this prompt, 31.0 at 1.00 on the code prompt from #176. For reference, llama.cpp HIP measured 20 decode / 450 prefill on this card.One note: in #176 I flagged that raising
attn_batch(32→64) overflowed 0.1.27's borrowed prefill buffers at any chunk size. On 0.1.29 it fits again (and measures within a few percent of 32 on this card), so that headroom issue looks resolved upstream — nothing in this PR touches it.🤖 Generated with Codebuff
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.