minimal_async_ep: pipeline bounded high-priority copies - #4021
Draft
sanketpurandare wants to merge 4 commits into
Draft
minimal_async_ep: pipeline bounded high-priority copies#4021sanketpurandare wants to merge 4 commits into
sanketpurandare wants to merge 4 commits into
Conversation
## Summary Run dispatch preparation on a normal stream, then hand row copies to a high-priority stream. Bound overlapping copies with a persistent CTA grid so expert compute retains execution resources; keep the no-overlap single-buffer path unbounded because it lies on the critical path. Expose the grid as `--compile.ep_overlap.minimal_async_ep_num_copy_ctas`. The default is the measured 50-CTA GB300 setting, while `None` selects an unbounded overlap control for hardware-specific tuning. ## Why Moving copies to another stream does not reserve SM capacity for expert work. A bounded persistent launch provides an explicit resource limit while stream priority minimizes gaps between dispatch preparation and row copies. ## Test Plan - Verify CTA-grid propagation into all MinimalAsyncEP dispatchers. - Reject invalid configured grid sizes. - Exercise bounded copy correctness and prep/copy stream placement in the two-rank dispatcher test. [ghstack-poisoned]
This was referenced Jul 28, 2026
This was referenced Jul 28, 2026
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.
Stack from ghstack (oldest at bottom):
Summary
Run dispatch preparation on a normal stream, then hand row copies to a high-priority stream. Bound overlapping copies with a persistent CTA grid so expert compute retains execution resources; keep the no-overlap path unbounded because it lies on the critical path. The unbounded kernel preserves its two-dimensional row-tile grid.
Expose the grid as
--compile.ep_overlap.minimal_async_ep_num_copy_ctas. The default is the measured 50-CTA GB300 setting, whileNoneselects an unbounded overlap control for hardware-specific tuning.Why
Moving copies to another stream does not reserve SM capacity for expert work. A bounded persistent launch provides an explicit resource limit while stream priority minimizes gaps between dispatch preparation and row copies. Preserving the tiled unbounded launch avoids serializing its critical-path work.
Test Plan