Repository navigation
Conversation
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.
When fused backward token-gradient restore waits for shared dX, promoting dX alone leaves its prerequisite shared dW1 in the FIFO tail. The same problem applies to shared dA and its prerequisite dW2. A ready shared producer can therefore remain behind routed weight-gradient work, delaying restoration.
Trace event dependencies recursively within the already eligible shared candidate set, including paired events, and promote the required Cube producers into the existing ready window. This completes the direct-producer handling from PR #9. Shared priority endpoints, output-event gating, task descriptors, event credits, native ABI, numerical operations, and transport completion rules remain unchanged. No new option is introduced.
Validation:
63a9af3ofmegamoe-ascend950-integration.abcaf90d-0bf8-495e-9a79-819140cea147.8701a75(before PR perf(megamoe): prioritize shared dX before routed weight gradients #9), normal backward decreased 13.517 → 12.916 ms (4.45%); full forward+backward decreased 21.284 → 20.702 ms (2.73%). Normal forward was 7.681 → 7.724 ms (+0.56%). Each group has 400 samples; take the maximum of 64 ranks per iteration, then P50.8701a75, not an A/B measurement against PR perf(megamoe): prioritize shared dX before routed weight gradients #9 or63a9af3. No new device numerical-equivalence qualification is claimed for this PR.