Repository navigation
[Triton/Gluon] Add TDM store to bf16 BMM and tune DSR1 shapes - #6240
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
The TDM eligibility gate omits alignment requirements, and several tuned tiles exceed the safe LDS-addressing range.
4 open findings
What changed in this PR
Adds a gfx1250 TDM-store epilogue for Gluon BF16 batched GEMM and tunes two DeepSeek-R1 B=128 shapes.
Changes:
- Enables TDM output stores with an environment-variable fallback.
- Adds gfx1250 Gluon tuning buckets for two B=128 workloads.
- Preserves direct stores for split-K and unsupported layouts.
| File | Description |
|---|---|
aiter/ops/triton/gemm/batched/batched_gemm_bf16.py |
Dispatches eligible outputs through TDM stores. |
aiter/ops/triton/_gluon_kernels/gfx1250/gemm/batched/batched_gemm_bf16.py |
Implements the LDS-staged TDM epilogue. |
.../BATCHED_GEMM-A16W16-B=128-N=512-K=128.json |
Adds M-bucket tuning for the N=512 shape. |
.../BATCHED_GEMM-A16W16-B=128-N=128-K=512.json |
Adds M-bucket tuning for the K=512 shape. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Resolve batched_gemm_bf16 conflict with main's fp8 epilogue rounding (fp32 -> bf16 -> fp8) and apply the same rounding in the TDM-store path.
9ea207f to
16e5bda
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The TDM eligibility check omits required alignment constraints, and newly introduced paths lack targeted coverage.
8 open findings
Compute padding conversion before dividing by element size TDM alignment gate allows invalid base and stride alignment TDM tile exceeds gfx1250's 64 KiB LDS address range TDM tile exceeds gfx1250's 64 KiB LDS address range Cover the 8-bit TDM path with an FP8 output test · New Test B=128 cases for the tuned 128x128x512 configuration · New Test B=128 cases for the tuned 128x512x128 configuration · New Missing TDM_STORE from kernel representation keys
🧠 Review effort: Balanced
…-bit outputs, add TDM_STORE to kernel repr
There was a problem hiding this comment.
🔵 Needs a closer look
The new FP8 TDM path and both B=128 tuning tables lack CI coverage.
0 open findings
8 resolved since last review
Compute padding conversion before dividing by element size TDM alignment gate allows invalid base and stride alignment TDM tile exceeds gfx1250's 64 KiB LDS address range TDM tile exceeds gfx1250's 64 KiB LDS address range Test B=128 cases for the tuned 128x512x128 configuration Test B=128 cases for the tuned 128x128x512 configuration Cover the 8-bit TDM path with an FP8 output test Missing TDM_STORE from kernel representation keys
🧠 Review effort: Balanced
Keep the B=128 MLA-absorb configs already landed on main by ROCm#6240 and ROCm#6293. The batch-agnostic N=512/K=128 and N=128/K=512 fallbacks from this branch stay. Co-authored-by: Cursor <[email protected]>



No description provided.