Repository navigation
Conversation
A design note for gpu/dxil/module/split.rs: why cuts go at CFG edges and loops stay whole, how live values are transported and restored, the scratch layout, and what the fixed per-value payload slots guarantee and cost. No code change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Closing: a separate docs PR isn't worth a review slot. The short version lives in split.rs's module comment instead (corrected in #2097). AI use: Claude Code (Claude Opus 5.5). |
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.
A design note for the compute split (
gpu/dxil/module/split.rs, from #2080, #2107 and #2126), so whoever changes it next, and whoever reviews that change, doesn't have to rebuild the reasoning from the code. It covers three things:What is in it
docs/compute-split.md(new, 84 lines). No code change.Tested
split.rs,kernel.rs(dispatch_piece_limit),pso.rs(record_dispatch_chain) andreal/dispatch_chain.rsonmain06c9f55.Not tested
split.rs's module comment still says "Each crossing edge has its own compact state layout". That predates Recompiler: give each split handoff value one scratch slot and load it where it's used #2126's fixed per-value slots. It changes with the next code change tosplit.rsrather than in this docs-only PR.AI use
🤖 Generated with Claude Code