Skip to content

[ASM] [Bugfix] Fix gfx942 BF16 MLA KV addressing beyond 4 GiB - #6223

Merged
fangche123 merged 4 commits into
mainfrom
fix/gfx942-mla-kv-address
Oct 10, 2026
Merged

fangche123 merged 4 commits into
mainfrom
fix/gfx942-mla-kv-address

Conversation

@alexioslyrakis-amd

@alexioslyrakis-amd alexioslyrakis-amd commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #5826.

Fix KV reads at and beyond 4 GiB in three gfx942 BF16 MLA decode code objects, preserving ABI and register/LDS allocations. Extend test_mla_ltx.py with gfx942 boundary and split-KV cases for stage-1/persistent decode with 16/128 heads, preserving existing gfx950 coverage.

MI300X validation: all 16 regression cases pass; the original code objects fail 12. Run python op_tests/test_mla_ltx.py on gfx942.

Replace the three decode code objects affected by #5826 with full-width KV addressing and add boundary regressions for persistent and stage-1 dispatch with 16 and 128 heads.

The replacement assembly passes the existing simulator regressions with unchanged ABI and resource allocation. Hardware execution and latency validation remain pending.

Signed-off-by: Alexios Lyrakis <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
multigpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 6223 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

@alexioslyrakis-amd
alexioslyrakis-amd marked this pull request as ready for review October 8, 2026 09:34
@alexioslyrakis-amd
alexioslyrakis-amd requested a review from a team October 8, 2026 09:34
@github-actions github-actions Bot added the ASM label Oct 8, 2026
Comment thread op_tests/test_mla_gfx942_kv_address.py Resolved
valarLip
valarLip previously approved these changes Oct 9, 2026
@fangche123

Copy link
Copy Markdown
Contributor

For this PR, could you please extend op_tests/test_mla_ltx.py to cover gfx942 as well? We originally added this test for gfx950 only. Please add gfx942 to SUPPORTED_GFX and include the relevant test cases in the same file, while keeping the existing gfx950 coverage intact. Thanks!

@alexioslyrakis-amd

Copy link
Copy Markdown
Contributor Author

@fangche123 gfx942 coverage is now in test_mla_ltx.py, with the existing gfx950 coverage preserved. Verified on MI300X: all 16 cases pass with the fixes, and the original binaries reproduce 12 failures. Could you please review the update and approve if everything looks good?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue]: bf16 MLA decode on gfx942 reads the wrong KV past 4 GiB from ptr_KV

4 participants