Repository navigation
So/a8w8 bpreshuflle flydsl xcd remap - #3071
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
There was a problem hiding this comment.
Pull request overview
This PR extends the FlyDSL A8W8 “bpreshuffle” GEMM path with an XCD workgroup-id swizzle/remap option and threads the new xcd_swizzle parameter through tuning, config parsing, runtime dispatch, and AOT compilation. It also updates the FlyDSL preshuffle kernel ABI to include an arg_bias tensor slot (used for fused epilogues), with runtime call sites providing a placeholder tensor when bias fusion is disabled.
Changes:
- Add
xcd_swizzleto FlyDSL preshuffle kernel instances/names and propagate it through tuning + runtime selection/dispatch. - Implement XCD-based
(bx, by)remapping in the FlyDSL preshuffle pipeline and add small-shape candidate filtering. - Update FlyDSL preshuffle GEMM kernel interface to include an
arg_biasslot and adjust runtime wrapper; update AOT name parsing for the extended kernel-name schema.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| csrc/ck_gemm_a8w8_bpreshuffle/gemm_a8w8_bpreshuffle_tune.py | Passes xcd_swizzle into FlyDSL preshuffle GEMM and prunes small-shape XCD candidates. |
| aiter/ops/gemm_op_a8w8.py | Extends FlyDSL kernel-name parsing to extract xcd_swizzle and passes it to the runtime wrapper. |
| aiter/ops/flydsl/kernels/preshuffle_gemm.py | Adds xcd_swizzle, introduces an arg_bias slot, and integrates XCD remap + epilogue-related logic. |
| aiter/ops/flydsl/kernels/mfma_preshuffle_pipeline.py | Adds xcd_remap_bx_by helper implementing the XCD workgroup remap. |
| aiter/ops/flydsl/gemm_tune/flydsl_gemm_a8w8_bpreshuffle_common.py | Adds xcd_swizzle to kernelInstance naming and expands the tuning sweep with XCD variants. |
| aiter/ops/flydsl/gemm_kernels.py | Updates wrapper signature to accept xcd_swizzle and passes a dummy bias tensor for the new ABI. |
| aiter/configs/model_configs/dsv3_a8w8_bpreshuffle_tuned_gemm.csv | Updates tuned entries to include the extended FlyDSL kernel-name encoding (incl. xcd_swizzle). |
| aiter/aot/flydsl/gemm.py | Updates AOT kernel-name parsing and forwards xcd_swizzle into preshuffle compilation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
LGTM |
* So/a8w8 bpreshuflle flydsl xcd remap (#3071) * fix issue --------- Co-authored-by: solin <[email protected]> Co-authored-by: Felix Li <[email protected]>
Motivation
Technical Details
Test Plan
Test Result
Submission Checklist