Docs: measured compile-time effects of memory windows and DXC version #346

Open
github-bot wants to merge 1 commit from github-bot/gh-346 into main AGit
Owner

@⁠heretic1321 on GitHub · 2026-11-24 00:06 UTC · original
heretic1321:docs/compile-time-notes → main · +122 −0 · 1 files · 1 commits · open

Adds docs/compile-time-notes.md, a short developer note that collects the compile-time measurements already published in issue #156 (including its 23 s XMemMapPhysicalPagesScatter call that tripped the title's watchdog), #187 (closed) and #214, so they need not be derived again. Docs only: no Rust and no runtime change.

What is in it

  • Driver time grows faster than DXIL size (imnicho, Kalmarv and nFaktorial in #156), but size alone does not predict it: at equal size the four-window switch form is much slower (Kalmarv, #187).
  • The DXC version changes DXIL size by 2.0–3.7× on E2 (Kalmarv, #214), but only for some program shapes (#156), so a byte threshold such as BIG_DRIVER_COMPILE / XCL_BIG_PSO_KB only holds for one DXC version.
  • The switch form's DXC cost compared with one window: 12.5–15.5× with DXC 1.8 / 1.9 at 700 blocks, but 1.6× with SDK DXC 1.7, where the driver pays instead. The #187 heap form stays within 1.0–1.3× of one window (#187 c3fb89e, yous0serious and Kalmarv in #214, MiguelMachado-dev in #187).
  • Two of three driver runs per E2 cell are cache hits, so only the slowest one is a cold compile (yous0serious, #214).
  • What is not known, and how to reproduce: the E2 bench (#187, closed), XCL_TRACE_PSO_TIME and XCL_BIG_PSO_KB (#214). None of these is on main yet, and the page says so.

Tested

  • Docs only — author did not build or run locally (Linux host). Read docs/wave64-on-wave32.md for the house style. Checked against upstream/main (6bac4b4): BIG_DRIVER_COMPILE is still unchanged in crates/xcl/src/hle/d3d12x/real.rs, #187 is closed, and #214 remains open.
  • Verified with python3 scripts/pr_check.py --local on head 19ea007.
  • Full-suite GPU test run on head 19ea007 by @⁠upipibi (https://github.com/ivall/xcl/pull/346#issuecomment-7128639735):
    • Hardware / env: NVIDIA GeForce RTX 3070 (driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0 MSVC, debug
    • cargo build --workspace then cargo test --workspace --no-fail-fast -- --test-threads=4: 719 passed, 0 failed, 41 ignored (17 test binaries, e2e title included)
    • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)
  • Every number on the page was copied from the published sources and checked against them:
    • #214: comments by Kalmarv (RTX 5070 Ti E2 table, DXC 1.7 / 1.9) and yous0serious (RTX 4090 E2 table, DXC 1.8 / 1.9), and the #214 diff for XCL_BIG_PSO_KB / XCL_TRACE_PSO_TIME.
    • #187 (closed): commit c3fb89e (the switch-inlining premise and RTX 3090 E2 numbers), comments by Kalmarv (dense driver bench) and MiguelMachado-dev (E2 at 250 blocks), and e2_window_compile_time.
    • Issue #156: DaftPunkk1's report (the 23 s watchdog case), and comments by imnicho, Kalmarv, nFaktorial, mariuslozo-boop and MaurycyBartczak.

Not tested

  • AMD / wave64; no retail title run (docs-only change).
  • Nothing on the page was measured for this PR. Each number comes from one contributor's machine (NVIDIA only: RTX 3070 / 3090 / 4090 / 5070 Ti / 5080 on different drivers). Nothing here covers AMD.
  • The page draws conclusions from those numbers that nobody measured directly: a cold driver compile on a title thread could trip the watchdog (the 23 s case was a memory-mapping call, not a compile), and with DXC 1.7 the switch form's cost moves from DXC to the driver (one run, one machine).
  • The XCL_BIG_PSO_KB=128 suggested for DXC 1.9 in #214 is not measured, and the page says so.

AI use

  • Antigravity CLI with Claude Opus 5.5: read the threads and wrote the original page and description (human-reviewed before submission).
  • T3 Code / Antigravity, Orchestrator (Neon) / gemini-pro-orchestrator-neon: rebased onto upstream/main (6bac4b4), updated #187 status references to closed, and ran scripts/pr_check.py --local.
  • T3 Code / Antigravity, Gemini 4 Neon (gemini-4-neon): added @⁠upipibi's attributed full-suite run to Tested in the description.
**@⁠heretic1321** on GitHub · 2026-11-24 00:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/346) `heretic1321:docs/compile-time-notes` → `main` · +122 −0 · 1 files · 1 commits · open Adds `docs/compile-time-notes.md`, a short developer note that collects the compile-time measurements already published in issue #156 (including its 23 s `XMemMapPhysicalPagesScatter` call that tripped the title's watchdog), #187 (closed) and #214, so they need not be derived again. Docs only: no Rust and no runtime change. **What is in it** - Driver time grows faster than DXIL size (imnicho, Kalmarv and nFaktorial in #156), but size alone does not predict it: at equal size the four-window `switch` form is much slower (Kalmarv, #187). - The DXC version changes DXIL size by 2.0–3.7× on E2 (Kalmarv, #214), but only for some program shapes (#156), so a byte threshold such as `BIG_DRIVER_COMPILE` / `XCL_BIG_PSO_KB` only holds for one DXC version. - The switch form's DXC cost compared with one window: 12.5–15.5× with DXC 1.8 / 1.9 at 700 blocks, but 1.6× with SDK DXC 1.7, where the driver pays instead. The #187 heap form stays within 1.0–1.3× of one window (#187 `c3fb89e`, yous0serious and Kalmarv in #214, MiguelMachado-dev in #187). - Two of three driver runs per E2 cell are cache hits, so only the slowest one is a cold compile (yous0serious, #214). - What is not known, and how to reproduce: the E2 bench (#187, closed), `XCL_TRACE_PSO_TIME` and `XCL_BIG_PSO_KB` (#214). None of these is on `main` yet, and the page says so. **Tested** - Docs only — author did not build or run locally (Linux host). Read `docs/wave64-on-wave32.md` for the house style. Checked against `upstream/main` (`6bac4b4`): `BIG_DRIVER_COMPILE` is still unchanged in `crates/xcl/src/hle/d3d12x/real.rs`, #187 is closed, and #214 remains open. - Verified with `python3 scripts/pr_check.py --local` on head `19ea007`. - Full-suite GPU test run on head `19ea007` by @⁠upipibi (https://github.com/ivall/xcl/pull/346#issuecomment-7128639735): - Hardware / env: NVIDIA GeForce RTX 3070 (driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0 MSVC, debug - `cargo build --workspace` then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **719 passed, 0 failed, 41 ignored** (17 test binaries, e2e title included) - `SKIPPED`: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64) - Every number on the page was copied from the published sources and checked against them: - #214: comments by Kalmarv (RTX 5070 Ti E2 table, DXC 1.7 / 1.9) and yous0serious (RTX 4090 E2 table, DXC 1.8 / 1.9), and the #214 diff for `XCL_BIG_PSO_KB` / `XCL_TRACE_PSO_TIME`. - #187 (closed): commit `c3fb89e` (the switch-inlining premise and RTX 3090 E2 numbers), comments by Kalmarv (dense driver bench) and MiguelMachado-dev (E2 at 250 blocks), and `e2_window_compile_time`. - Issue #156: DaftPunkk1's report (the 23 s watchdog case), and comments by imnicho, Kalmarv, nFaktorial, mariuslozo-boop and MaurycyBartczak. **Not tested** - AMD / wave64; no retail title run (docs-only change). - Nothing on the page was measured for this PR. Each number comes from one contributor's machine (NVIDIA only: RTX 3070 / 3090 / 4090 / 5070 Ti / 5080 on different drivers). Nothing here covers AMD. - The page draws conclusions from those numbers that nobody measured directly: a cold driver compile on a title thread could trip the watchdog (the 23 s case was a memory-mapping call, not a compile), and with DXC 1.7 the switch form's cost moves from DXC to the driver (one run, one machine). - The `XCL_BIG_PSO_KB=128` suggested for DXC 1.9 in #214 is not measured, and the page says so. **AI use** - Antigravity CLI with Claude Opus 5.5: read the threads and wrote the original page and description (human-reviewed before submission). - T3 Code / Antigravity, Orchestrator (Neon) / gemini-pro-orchestrator-neon: rebased onto `upstream/main` (`6bac4b4`), updated `#187` status references to closed, and ran `scripts/pr_check.py --local`. - T3 Code / Antigravity, Gemini 4 Neon (`gemini-4-neon`): added @⁠upipibi's attributed full-suite run to **Tested** in the description.
Collects the shader compile-time numbers published in issue #156 and
PRs #187 and #214 into one note, so they need not be derived again:
driver time grows faster than DXIL size, the DXC version changes DXIL
size (so a byte threshold is version-relative), the four-window switch
form costs 12.5-15.5x DXC against one window with DXC 1.8/1.9 while the
heap form (#187) stays near one window, and only the cold driver run of
a cell is a real compile. Every number is attributed to its author and
thread; nothing was measured for this note.

Assisted-by: Antigravity CLI (Claude Opus 5.5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:20:46 +00:00
Author
Owner

@⁠upipibi on GitHub · 2026-11-24 10:20 UTC · original

Full-suite run on this PR's head 19ea007, for the counts CONTRIBUTING.md item 2 asks for (the description says nothing was built or run, since it's docs only):

Tested

  • NVIDIA GeForce RTX 3070 (driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0 MSVC, debug
  • cargo build --workspace then cargo test --workspace --no-fail-fast -- --test-threads=4: 719 passed, 0 failed, 41 ignored (17 test binaries, the e2e title included)
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)

Not tested: AMD / wave64; no retail title (this PR changes only docs/compile-time-notes.md).

AI-assisted (Claude Code).

**@⁠upipibi** on GitHub · 2026-11-24 10:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/346#issuecomment-7128639735) Full-suite run on this PR's head `19ea007`, for the counts CONTRIBUTING.md item 2 asks for (the description says nothing was built or run, since it's docs only): **Tested** - NVIDIA GeForce RTX 3070 (driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0 MSVC, debug - `cargo build --workspace` then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **719 passed, 0 failed, 41 ignored** (17 test binaries, the e2e title included) - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64) **Not tested:** AMD / wave64; no retail title (this PR changes only `docs/compile-time-notes.md`). AI-assisted (Claude Code).
Author
Owner

@⁠heretic1321 on GitHub · 2026-11-24 10:21 UTC · original

Thanks @⁠upipibi for running the full Windows GPU suite on 19ea007! I've added your attributed results to Tested in the PR description.

**@⁠heretic1321** on GitHub · 2026-11-24 10:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/346#issuecomment-7128667238) Thanks @⁠upipibi for running the full Windows GPU suite on `19ea007`! I've added your attributed results to **Tested** in the PR description.
Author
Owner

@⁠S1m0ne1997 on GitHub · 2026-11-25 13:58 UTC · original

Test report for 19ea0078abea3bd95356156601a8cdd2b51cd2c3 (this PR's head), for #1607.

Tested

  • NVIDIA GeForce RTX 4090 24 GB (driver 621.40), AMD Ryzen 9 9950X3D, 47 GB RAM, Windows 11 Home 10.0.26300, rustc 1.100.0 (0ef1bc386 2026-11-09) x86_64-pc-windows-msvc, debug.
  • cargo build --workspace, then cargo test --workspace -- --test-threads=4 at the head: 719 passed, 0 failed, 41 ignored.
  • SKIPPED: gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware (no wave64).

Not tested

  • No smoke pair: the PR changes only docs/compile-time-notes.md, no runtime code. I did not check the measurements the document reports.

AI use: Claude Code with Claude Opus 5.5 ran the build and the suite and wrote this report at my request.

**@⁠S1m0ne1997** on GitHub · 2026-11-25 13:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/346#issuecomment-7164556783) Test report for `19ea0078abea3bd95356156601a8cdd2b51cd2c3` (this PR's head), for #1607. **Tested** - NVIDIA GeForce RTX 4090 24 GB (driver 621.40), AMD Ryzen 9 9950X3D, 47 GB RAM, Windows 11 Home 10.0.26300, `rustc 1.100.0 (0ef1bc386 2026-11-09)` `x86_64-pc-windows-msvc`, debug. - `cargo build --workspace`, then `cargo test --workspace -- --test-threads=4` at the head: **719 passed, 0 failed, 41 ignored**. - SKIPPED: `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware` (no wave64). **Not tested** - No smoke pair: the PR changes only `docs/compile-time-notes.md`, no runtime code. I did not check the measurements the document reports. *AI use: Claude Code with Claude Opus 5.5 ran the build and the suite and wrote this report at my request.*
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 14:29 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 14:29 UTC · [original](https://github.com/xcl-dev/xcl/pull/346#issuecomment-7165349965) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/346/head:github-bot/gh-346'
git switch 'github-bot/gh-346'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-346'
git switch 'github-bot/gh-346'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-346'
git switch 'github-bot/gh-346'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-346'
git switch 'main'
git merge --squash 'github-bot/gh-346'
git switch 'main'
git merge --ff-only 'github-bot/gh-346'
git switch 'main'
git merge 'github-bot/gh-346'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.