Repository navigation
Fix FlyDSL split-k barrier synchronization issue - #2877
Merged
Merged
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
Contributor
There was a problem hiding this comment.
Pull request overview
Updates FlyDSL’s split-k HGEMM synchronization to use a per-dispatch 64-bit token protocol (based on dispatch_id) to remain correct under graph replay while reducing host-side state and polling overhead.
Changes:
- Replace rotating split-k “signal state” + int32 counters with an int64 per-dispatch token (
dispatch_id + 1, reserving0as invalid) and release/acquire publish+poll. - Remove host-managed split-k state rotation and shrink the global semaphore to a single int64 counter array.
- Reduce barrier polling overhead by having only
tid==0poll the semaphore and then synchronizing the block withgpu.barrier().
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| aiter/ops/flydsl/kernels/splitk_hgemm.py | Switch split-k semaphore publish/poll to int64 dispatch tokens; remove stale-counter cleanup and signal_state plumbing. |
| aiter/ops/flydsl/kernels/small_m_hgemm.py | Mirror the int64 dispatch-token protocol for small-M split-k; remove stale-counter cleanup and signal_state. |
| aiter/ops/flydsl/gemm_kernels.py | Allocate a per-stream int64 semaphore (length 128) and remove host-side rotating split-k state management. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replace the rotating split-k signal state with a 64-bit dispatch token barrier so split-k launches stay graph-safe and avoid stale-counter races. Narrow the polling and small_m publish waits to vmcnt-only to recover the lost performance while keeping the new protocol stable. Made-with: Cursor
XiaobingSuper
force-pushed
the
xiaobing/hgemm_split_fix
branch
from
April 25, 2026 13:05
bf1da7b to
9bfdc55
Compare
coderfeli
reviewed
Apr 30, 2026
coderfeli
reviewed
Apr 30, 2026
coderfeli
reviewed
Apr 30, 2026
coderfeli
reviewed
Apr 30, 2026
valarLip
reviewed
Apr 30, 2026
zhiding512
previously approved these changes
Apr 30, 2026
XiaobingSuper
force-pushed
the
xiaobing/hgemm_split_fix
branch
from
April 30, 2026 14:42
3b1f5b1 to
d0c4ecf
Compare
coderfeli
approved these changes
May 6, 2026
valarLip
approved these changes
May 6, 2026
Liang-jianhao97
pushed a commit
that referenced
this pull request
May 7, 2026
* fix FlyDSL split-k barrier synchronization Replace the rotating split-k signal state with a 64-bit dispatch token barrier so split-k launches stay graph-safe and avoid stale-counter races. Narrow the polling and small_m publish waits to vmcnt-only to recover the lost performance while keeping the new protocol stable. Made-with: Cursor * zero output before gemm * Revert "revert gptoss tuned config (#2904)" This reverts commit 033d8b9. * remove reduant store * Revert "Revert "revert gptoss tuned config (#2904)"" This reverts commit 640896d. * refine hgemm * normalize tuned gemm csv line endings Restore LF endings for the six tuned BF16 GEMM CSVs so GitHub shows only the real row changes instead of full-file diffs. Made-with: Cursor * code format * disable flydsl gemm * limit splitk <=8 * update gemm test * memory order before send singnal * fix aot issue --------- Co-authored-by: zhuyuhua-v <[email protected]> Co-authored-by: Felix Li <[email protected]>
gyohuangxin
added a commit
that referenced
this pull request
May 27, 2026
Fix PR #2877 has been merged, so the DeepSeek-V3.2 entries can be re-enabled: - DeepSeek-V3.2 Accuracy: run on both PR and nightly schedule. - DeepSeek-V3.2 Basic Performance: run on nightly schedule only (kept off PRs since the standalone perf job is too long for PR validation, matching the DeepSeek-R1-MXFP4 Performance policy). Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Xin Huang <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix FlyDSL split-k HGEMM barrier synchronization issue.
This PR refines the split-k synchronization logic to avoid stale barrier/semaphore state issues, limits split-k usage to reliable cases, and disables unstable FlyDSL GEMM paths where needed.
Changes
<= 8.