Skip to content

So/a8w8 bpreshuflle flydsl xcd remap - #3071

Merged
solinzby1 merged 10 commits into
mainfrom
so/a8w8_bpreshuflle_flydsl_xcd_remap
May 8, 2026
Merged

solinzby1 merged 10 commits into
mainfrom
so/a8w8_bpreshuflle_flydsl_xcd_remap

Conversation

@solinzby1

Copy link
Copy Markdown
Contributor

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

@solinzby1
solinzby1 requested review from a team and Copilot May 7, 2026 09:50
@github-actions

github-actions Bot commented May 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:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests
ci:atom ATOM benchmark (DeepSeek-R1 + GPT-OSS)
ci:vllm vLLM benchmark
ci:all All of the above

Add labels via the sidebar or gh pr edit 3071 --add-label <label>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_swizzle to 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_bias slot 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.

Comment thread aiter/aot/flydsl/gemm.py Resolved
@yzhou103

yzhou103 commented May 8, 2026

Copy link
Copy Markdown
Contributor

LGTM

@solinzby1
solinzby1 merged commit b81f835 into main May 8, 2026
30 checks passed
@solinzby1
solinzby1 deleted the so/a8w8_bpreshuflle_flydsl_xcd_remap branch May 8, 2026 08:45
valarLip added a commit that referenced this pull request May 10, 2026
solinzby1 added a commit that referenced this pull request May 14, 2026
* So/a8w8 bpreshuflle flydsl xcd remap (#3071)

* fix issue

---------

Co-authored-by: solin <[email protected]>
Co-authored-by: Felix Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants