Skip to content

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

Closed
Kalmarv wants to merge 1 commit into
xcl-dev:mainfrom
Kalmarv:split-design-note
Closed

Kalmarv wants to merge 1 commit into
xcl-dev:mainfrom
Kalmarv:split-design-note

Conversation

@Kalmarv

@Kalmarv Kalmarv commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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

AI use

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

🤖 Generated with 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 <noreply@anthropic.com>
@Kalmarv

Kalmarv commented Nov 25, 2026

Copy link
Copy Markdown
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).

@Kalmarv Kalmarv closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant