Docs: how the compute split cuts programs and carries values across cuts #2335

Closed
github-bot wants to merge 1 commit from gh-pr/2335/head into gh-pr/2335/base
Owner

@⁠Kalmarv on GitHub · 2026-11-25 15:00 UTC · original
Kalmarv:split-design-note → main · +84 −0 · 1 files · 1 commits · closed without merging

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:

  • why the cuts are at CFG edges and loops stay whole;
  • how live values cross a cut and where they are restored;
  • what the fixed per-value payload slots guarantee, and what they cost in scratch size.

What is in it

  • docs/compute-split.md (new, 84 lines). No code change.

Tested

  • Docs only: no build or test run. Every statement was checked against split.rs, kernel.rs (dispatch_piece_limit), pso.rs (record_dispatch_chain) and real/dispatch_chain.rs on main 06c9f55.

Not tested

  • Nothing runs. split.rs's module comment still says "Each crossing edge has its own compact state layout". That predates #2126's fixed per-value slots. It changes with the next code change to split.rs rather than in this docs-only PR.

AI use

  • Claude Code (Claude Opus 5.5) wrote the note from the code; I checked it against the source.

🤖 Generated with Claude Code

**@⁠Kalmarv** on GitHub · 2026-11-25 15:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/2335) `Kalmarv:split-design-note` → `main` · +84 −0 · 1 files · 1 commits · closed without merging 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: - why the cuts are at CFG edges and loops stay whole; - how live values cross a cut and where they are restored; - what the fixed per-value payload slots guarantee, and what they cost in scratch size. **What is in it** - `docs/compute-split.md` (new, 84 lines). No code change. **Tested** - Docs only: no build or test run. Every statement was checked against `split.rs`, `kernel.rs` (`dispatch_piece_limit`), `pso.rs` (`record_dispatch_chain`) and `real/dispatch_chain.rs` on `main` `06c9f55`. **Not tested** - Nothing runs. `split.rs`'s module comment still says "Each crossing edge has its own compact state layout". That predates #2126's fixed per-value slots. It changes with the next code change to `split.rs` rather than in this docs-only PR. **AI use** - Claude Code (Claude Opus 5.5) wrote the note from the code; I checked it against the source. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:27:56 +00:00
github-bot closed this pull request 2026-11-26 05:27:56 +00:00
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-25 15:01 UTC · original

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).

**@⁠Kalmarv** on GitHub · 2026-11-25 15:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/2335#issuecomment-7166188745) 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).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.