Repository navigation
Raise MegaMoE barrier timeout to 300 seconds - #57
Merged
Merged
Conversation
Root cause: MegaMoE ranks can enter a cross-rank device barrier while peer ranks are still performing one-time host-side JIT. The 60-second timeout aborts an otherwise healthy collective when that launch skew exceeds one minute. Fix: Restore the shared grid and NVLink barrier timeout to 300 seconds so all barrier tags tolerate bounded compilation and launch skew. Validation: On GB300 with EP8 prefill and EP16 decode, allowing the barrier wait beyond 60 seconds let the delayed rank join after about 135 seconds. The AIPerf warmup then completed 164 requests with zero errors and no grid-sync, NVLink-barrier, or CUDA failures. git diff --check passes.
weireweire
marked this pull request as ready for review
July 9, 2026 08:01
Fridge003
approved these changes
Jul 9, 2026
Fridge003
pushed a commit
that referenced
this pull request
Jul 9, 2026
Co-authored-by: weireweire <[email protected]>
Helicoplacoidea
pushed a commit
to Helicoplacoidea/DeepGEMM
that referenced
this pull request
Aug 31, 2026
Co-authored-by: weireweire <[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
Root cause
MegaMoE ranks can enter a cross-rank device barrier while peer ranks are still synchronously compiling first-use kernels before launching the corresponding work. The 60-second watchdog can therefore abort a healthy collective before the delayed rank arrives. The subsequent grid-sync failures are cascading errors from the same missing rank.
This restores the 300-second timeout used before the timeout refactor while retaining the watchdog added to grid synchronization.
Impact
Healthy executions are unaffected because their barriers complete before the threshold. A genuine barrier deadlock will take longer to report.
Validation
git diff --check