mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #113] [MERGED] HIP: wave32 WMMA prompt attention (wmma2) by default on Strix Halo (gfx1151), +4% prompt speed #347
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#347
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/mw00/project-maya/pull/113
Author: @boxwrench
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @mw00
Base:
main← Head:hip/gfx1151-wmma2-default📝 Commits (1)
94e3bc8HIP: wave32 WMMA prompt attention (wmma2) by default on Strix Halo (gfx1151)📊 Changes
4 files changed (+12 additions, -10 deletions)
View changed files
📝
docs/SETTINGS.md(+1 -1)📝
include/strata/kernels/glm_batch.hpp(+1 -1)📝
src/core/glm_prefill.cu(+2 -2)📝
src/kernels/cuda/glm_batch.cu(+8 -6)📄 Description
The gfx11 path of
mla_attn_wmma2(from #38) already builds and runs on gfx1151, but Strix Halo stayed onf16q. This makeswmma2the default on gfx1151 only; the other gfx11 parts keepf16q, since I haven't measured them.STRATA_GLM_PREFILL_ATTN=f16qgives the old path back.No new code is compiled: the kernel and its gfx11 branch are unchanged, so a Windows HIP SDK build is affected only by which path runs, not by whether it compiles. The change is the arch tag in
mla_wmma2_arch()/mla_wmma2_default(), plus the comment and README row.Measured on gfx1151 (Radeon 8060S, 128 GB, TheRock ROCm 10.2, Maya-S, 256K context)
hip_glm_prefill_attention, rel L2 vs F32 (FP16 / INT8 latents)Prompt speed end to end, the same binary with
STRATA_GLM_PREFILL_ATTNswitched, a fresh server per run, 2 runs each:Decode is flat (prompt-only path).
glm_layer_parity --selftestandglm_model_test --selftestpass. Greedy answers differ fromf16qafter a few hundred characters: both paths are deterministic, and wmma2 is the one nearer F32, as on gfx12.Measured on a branch with #98 and #96 underneath; this PR is on current main and touches neither. I haven't built it with the Windows HIP SDK.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.