mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2017] [CLOSED] prompt attention (gfx11 / gfx12 WMMA): issue a chunk's reads before its compute #3808
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#3808
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/2017
Author: @libratechw
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:pr/prompt-attn-reads📝 Commits (1)
45ce4b5prompt attention (gfx11 / gfx12 WMMA): issue a chunk's reads before its compute📊 Changes
1 file changed (+56 additions, -29 deletions)
View changed files
📝
src/kernels/cuda/qsa_prompt_attn.cu(+56 -29)📄 Description
Title
Issue: none
Summary
prompt_attn_wmma_kernelinterleaved a chunk's global reads with its compute: the V slice was staged first, then each 16-celltile loaded its K scale and fragments between the q.k WMMAs, so a wave waited on each read in turn. The chunk's reads now go
out together (
fetch), then the same compute runs on them (chunk). The values and the order of the arithmetic are unchanged.What changed
src/kernels/cuda/qsa_prompt_attn.cuonly: the HIP WMMA kernel, which runs only withSTRATA_HIP_WMMA=1(not in any defaulttable), so the default path is untouched.
Ryzen AI Max+ 395 (gfx1151, ROCm 7.14.1), on
296b59d2,hip_prompt_attn_wmma, three interleaved runs against 296b59d2'skernel, median ms per chunk:
STRATA_PA_FAST=1STRATA_PA_FAST=0The output hash (
NEWHASH) is the same as 296b59d2's in every run, for both values ofSTRATA_PA_FAST. (WithSTRATA_PA_FAST=1the tool prints FAIL against its FP64 threshold on296b59d2as well, with the same errors.)Builds and tests on this branch:
296b59d2(ple_parity,expert_parity,pool_test).strata_kernels,strata_prefillandstrata_mmqcompile for gfx1012, gfx1030, gfx1100, gfx1103, gfx1150, gfx1151, gfx1200 and gfx1201.ple_parityfails as on296b59d2.Not run: the kernel on other gfx11 / gfx12 cards, and end to end.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.