Repository navigation
[FlyDSL] Port qk_norm_rope_quant and compress_attn to gfx1250 (wave32) - #3804
Merged
valarLip merged 6 commits intoJun 19, 2026
Merged
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
jli-melchior
force-pushed
the
jli/gfx1250/qk_norm_rope_quant_gfx1250
branch
from
June 18, 2026 16:37
aa72bf9 to
604fa8f
Compare
Port CSA and HCA fused_compress_attn kernels from wave64 (CDNA) to wave32 (RDNA4/gfx1250). Key changes: BLOCK_THREADS=32, VEC=16 for D=512, generalized load/store paths for >dwordx4, shuffle width=32, FP8 linear layout (no preshuffle), and extract_strided_slice API fix. Adds gfx1250 dispatch routing in existing entry points and a dedicated test file. Co-Authored-By: Claude Opus 4 <[email protected]>
Wave32 variant of the fused RMSNorm + GPT-J RoPE + FP8 quant kernel for RDNA4/gfx1250. BLOCK_THREADS=32, VEC=16 for D=512, generalized load/store paths (2x dwordx4 split for VEC>8), FP8 packing via VEC/4 dwords, and butterfly shuffle width=32. BF16 mode verified on cmodel (H=16/64/128). Co-Authored-By: Claude Opus 4 <[email protected]>
Co-Authored-By: Claude Opus 4 <[email protected]>
Co-Authored-By: Claude Opus 4 <[email protected]>
Co-Authored-By: Claude Opus 4 <[email protected]>
jli-melchior
force-pushed
the
jli/gfx1250/qk_norm_rope_quant_gfx1250
branch
from
June 19, 2026 06:19
8eb5d1f to
befcf03
Compare
Add the fused SWA cache-write path (batch_id_per_token as int32 per upstream PR ROCm#3793) to the gfx1250 wave32 variant so the kernel can scatter post-norm/rope KV rows into swa_kv[slot, pos%cache, :] in the same launch, and fix the gfx1250 dispatch to forward the new params. Co-Authored-By: Claude <[email protected]>
jli-melchior
force-pushed
the
jli/gfx1250/qk_norm_rope_quant_gfx1250
branch
from
June 19, 2026 07:00
2c4c435 to
3c589b7
Compare
valarLip
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
compress_attn(standard + HCA variants) FlyDSL kernels to gfx1250 (wave32), adapting MFMA→WMMA, disabling preshuffle, and adjusting for RDNA4's 512 VGPRs/waveqk_norm_rope_quantkernel to gfx1250 (wave32) with similar wave32/WMMA adaptationsTest plan
op_tests/test_flydsl_compress_attn_gfx1250.pyon gfx1250 hardwareop_tests/test_flydsl_qk_norm_rope_quant.pyto verify qk_norm_rope_quant correctness on gfx1250