Repository navigation
[Triton/Gluon] [GFX12] Add optimized gluon backend for mhc_fused_post_pre - #6442
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
There was a problem hiding this comment.
🟡 Changes recommended
Automatic dispatch rejects supported inputs, and the updated test path fails for its permitted FP16 mode.
3 open findings
What changed in this PR
Adds automatic gfx1250 Gluon dispatch for optimized shuffled-residual mHC post/pre processing.
Changes:
- Adds backend selection and residual-layout handling.
- Tunes split-K and RMSNorm launch parameters.
- Extends HIP/Gluon correctness and performance comparisons.
| File | Description |
|---|---|
aiter/ops/mhc.py |
Adds automatic Gluon dispatch and layout selection. |
aiter/ops/triton/fusions/mhc.py |
Adjusts split-K and RMSNorm launch sizing. |
aiter/ops/triton/utils/mhc_config_utils.py |
Documents new tuning parameters. |
aiter/ops/triton/configs/gfx1250/gluon/mhc/mhc_post_pre/DEFAULT.json |
Adds small-M tuning buckets. |
op_tests/test_mhc.py |
Compares forced HIP and Gluon paths. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@aiter-bot review |
[ROCm/aiter] PR #6442 — [Triton/Gluon] [GFX12] Add optimized gluon backend for mhc_fused_post_preRoutes aiter.mhc_fused_post_pre to the gfx1250 Gluon two-launch kernels — 64-wide residual shuffle blocks and retuned split-K / fused-RMSNorm launch parameters — automatically whenever the residual is shuffled and the hidden size is 4096 or 7168, where the HIP kernels ran before. Review (advisory): 📝 [verified] The perf tables carry no reproduction info — no GPU model, ROCm/driver version, or the op_tests/test_mhc.py command line behind the 1.20x-1.44x totals — M=1 (a default -m value) and 512<m<1024 sit inside the dispatch range unmeasured, and the body's "does not break e2e" claim is backed only by op-test err values, not an e2e run. Reviewer should ask for the benchmark environment, the command line, and an e2e/ATOM validation reference for the new 64-wide default. 📝 [verified] aiter/ops/mhc.py:1058-1106 returns the unfused HIP path (m>=1024 without force_fused) or the gfx950 large-M path before the Gluon branch at 1108, so backend="gluon" is silently ignored there and a benchmark forcing it on those shapes measures HIP kernels. Reviewer should ask whether backend should raise when the requested backend cannot run, or the docstring should state the force applies only below the fuse/unfuse boundary. |
|
Where that review came from — I ran the bot on your PR to show what it does. It is not an automatic hook; nothing reviews your PR unless somebody asks. Any reviewer on the aiter allowlist can ask for one, on any PR including their own. The trigger is a comment containing the words below — shown quoted here, because quoted lines deliberately do not trigger it:
Feedback on the review itself is welcome; it is how the rules get better. |


Gluon backend will be used if all following conditions are met:
DeepSeek-V4-Pro (hidden 7168)
err values seen (hip, gluon): ['0']
DeepSeek-V4-Flash (hidden 4096)
err values seen (hip, gluon): ['0', '4.768e-07']