Shaders: --precompile --pipelines also builds a split program's whole form #2551

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

@⁠DTsordas on GitHub · 2026-11-25 22:43 UTC · original
DTsordas:precompile-chain-whole → main · +27 −17 · 2 files · 1 commits · open

xcl shaders --precompile --pipelines now also builds a split compute program's whole form under the dispatch-chain root signature (.chain.pso), next to its pieces. Part of #1833, follows #2338.

A split program keeps its whole form for what its pieces cannot run (an ExecuteIndirect, a dispatch without scratch). The runtime builds it in Chain::whole with chained = true, on the title's thread, the first time it is needed. #2338 prebuilds only the pieces, so every whole form was still compiled cold there.

On a retail title (RX 9060 XT, XCL_DIRECT_DXIL=1, all compute pipelines precompiled except the whole forms), the title's submit thread built 3–6 of them at its world start, 0.8–1.15 MB of DXIL each, 41–55 s each, and presented nothing meanwhile. With the whole forms precompiled, those binds loaded the blob in 3–4 ms and no compute pipeline was built cold after the world start. #2404 avoids the whole form for an ExecuteIndirect on the GPU side; this covers the whole form wherever the runtime still builds it, and works with or without #2404.

What is in it

  • crates/xcl/src/shaders.rs: after the pieces, make_with_cache_path builds c.dxil with chained = true (the cap and the cached-blob reuse apply as for a piece). The unit test now expects the whole form's .chain.pso too, checks that the runtime's chain root signature accepts it, and reuses all three blobs on the second pass.
  • crates/xcl/tests/gpu_compute_e2e.rs: offline_split_compute_pipeline_is_reused_by_a_second_process counts the whole form's blob with the pieces' (5 pieces + 1 whole form).

Tested

  • AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 5 5600X, 64 GB, Windows 11 build 26300, Rust 1.100.0, debug for the suite, release for the runs.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 at 3567b2e: 1421 passed, 2 failed, 46 ignored. The two failures, gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 722) and _3 (seed 1599), fail the same way on main e1d84b7 on this card; they are not touched here.
  • SKIPPED on this adapter: no D3D12 debug layer / d3d12SDKLayers.dll (3), f16_programs_on_the_gpu and f32_programs_on_the_gpu per-lane forms (6), no heap windows (1).
  • Retail title, before and after: cold compute builds on the title's thread after the world start went from 3–6 per run (41–55 s each; 3 runs) to 0 (5 runs of 6 minutes; 10–19 graphics pipelines are still built cold there). These runs were made on an earlier tree with the same change (main 06c9f55 + an equivalent commit, plus local diagnostics and a local switch that leaves compute programs of 1.2 MB of DXIL or more unbuilt), not on this branch.

Regression run

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: AMD Radeon RX 9060 XT
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1343 (PresentX 1343)
presents per 2 s (last 3): 33 59 44
device removals: 0
crashes: 0
peak commit: 18667 MB
xcl-smoke v1
commit: 3567b2efdc94617de71e50be77e107991a6bd41c
gpu: AMD Radeon RX 9060 XT
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1438 (PresentX 1439)
presents per 2 s (last 3): 52 40 15
device removals: 0
crashes: 0
peak commit: 19252 MB

The 60 s smoke run ends before the world start, so it does not reach the whole forms; the numbers above the blocks come from the longer runs.

Not tested

  • NVIDIA and Intel; wave32-only GPUs.
  • Together with #2404.
  • The precompile's extra time: the whole forms add one driver build per split program (the pass over the whole retail pack took about 2 h at 6 threads with them).

AI use

  • Claude Code with Claude Opus 5.5: found the cause in the runs' logs, wrote the change and the test updates, ran the suite and the smoke runs, and wrote this description.

🤖 Generated with Claude Code

**@⁠DTsordas** on GitHub · 2026-11-25 22:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551) `DTsordas:precompile-chain-whole` → `main` · +27 −17 · 2 files · 1 commits · open `xcl shaders --precompile --pipelines` now also builds a split compute program's **whole form** under the dispatch-chain root signature (`.chain.pso`), next to its pieces. Part of #1833, follows #2338. A split program keeps its whole form for what its pieces cannot run (an `ExecuteIndirect`, a dispatch without scratch). The runtime builds it in `Chain::whole` with `chained = true`, on the title's thread, the first time it is needed. #2338 prebuilds only the pieces, so every whole form was still compiled cold there. On a retail title (RX 9060 XT, `XCL_DIRECT_DXIL=1`, all compute pipelines precompiled except the whole forms), the title's submit thread built 3–6 of them at its world start, 0.8–1.15 MB of DXIL each, 41–55 s each, and presented nothing meanwhile. With the whole forms precompiled, those binds loaded the blob in 3–4 ms and no compute pipeline was built cold after the world start. #2404 avoids the whole form for an `ExecuteIndirect` on the GPU side; this covers the whole form wherever the runtime still builds it, and works with or without #2404. **What is in it** - `crates/xcl/src/shaders.rs`: after the pieces, `make_with_cache_path` builds `c.dxil` with `chained = true` (the cap and the cached-blob reuse apply as for a piece). The unit test now expects the whole form's `.chain.pso` too, checks that the runtime's chain root signature accepts it, and reuses all three blobs on the second pass. - `crates/xcl/tests/gpu_compute_e2e.rs`: `offline_split_compute_pipeline_is_reused_by_a_second_process` counts the whole form's blob with the pieces' (5 pieces + 1 whole form). **Tested** - AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 5 5600X, 64 GB, Windows 11 build 26300, Rust 1.100.0, debug for the suite, release for the runs. - `cargo test --workspace --no-fail-fast -- --test-threads=4` at `3567b2e`: 1421 passed, 2 failed, 46 ignored. The two failures, `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 722) and `_3` (seed 1599), fail the same way on `main` `e1d84b7` on this card; they are not touched here. - SKIPPED on this adapter: no D3D12 debug layer / `d3d12SDKLayers.dll` (3), `f16_programs_on_the_gpu` and `f32_programs_on_the_gpu` per-lane forms (6), no heap windows (1). - Retail title, before and after: cold compute builds on the title's thread after the world start went from 3–6 per run (41–55 s each; 3 runs) to 0 (5 runs of 6 minutes; 10–19 graphics pipelines are still built cold there). These runs were made on an earlier tree with the same change (`main` `06c9f55` + an equivalent commit, plus local diagnostics and a local switch that leaves compute programs of 1.2 MB of DXIL or more unbuilt), not on this branch. **Regression run** ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: AMD Radeon RX 9060 XT title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1343 (PresentX 1343) presents per 2 s (last 3): 33 59 44 device removals: 0 crashes: 0 peak commit: 18667 MB ``` ``` xcl-smoke v1 commit: 3567b2efdc94617de71e50be77e107991a6bd41c gpu: AMD Radeon RX 9060 XT title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1438 (PresentX 1439) presents per 2 s (last 3): 52 40 15 device removals: 0 crashes: 0 peak commit: 19252 MB ``` The 60 s smoke run ends before the world start, so it does not reach the whole forms; the numbers above the blocks come from the longer runs. **Not tested** - NVIDIA and Intel; wave32-only GPUs. - Together with #2404. - The precompile's extra time: the whole forms add one driver build per split program (the pass over the whole retail pack took about 2 h at 6 threads with them). **AI use** - Claude Code with Claude Opus 5.5: found the cause in the runs' logs, wrote the change and the test updates, ran the suite and the smoke runs, and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A split compute program keeps its whole form for what its pieces cannot run
(an ExecuteIndirect, a dispatch without scratch). The runtime builds that form
under the dispatch-chain root signature (Chain::whole, chained, .chain.pso) on
the title's thread the first time it is needed. #2338 prebuilds only the pieces,
so every whole form was still compiled cold in the title.

On a retail title (RX 9060 XT, XCL_DIRECT_DXIL=1), after a full compute
precompile without the whole forms, the title's submit thread built 3-6 of them
(0.8-1.15 MB of DXIL) at its world start, 41-55 s each, presenting nothing
meanwhile; with them prebuilt, those binds loaded the blob in 3-4 ms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:33:35 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-25 22:54 UTC · original · edited 2026-11-25 23:03 UTC

Full-suite run, since this PR has no test report yet. Tested exact head 3567b2e (on its base e1d84b7).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1411 passed, 0 failed, 44 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, dispatch_chain_native_wave64_builds_whole, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • No new #[test] functions in the diff.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1422 passed, 0 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main e1d84b7 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-25 22:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7176916865) · edited 2026-11-25 23:03 UTC Full-suite run, since this PR has no test report yet. Tested exact head `3567b2e` (on its base `e1d84b7`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **1411 passed, 0 failed, 44 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `dispatch_chain_native_wave64_builds_whole`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - No new `#[test]` functions in the diff. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **1422 passed, 0 failed, 46 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `e1d84b7` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://git.gtahub.st/github/xcl-dev--xcl/issues/1651)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 23:06 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.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-25 23:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7177163098) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 26 ignored. Thanks! — Devin
Author
Owner

@⁠thehollowedone on GitHub · 2026-11-26 00:57 UTC · original

Independent Windows integration check of 3567b2e merged locally, without a commit, onto current main b49be18 (#2371). The merge had no conflicts.

Tested: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug, XCL_HEAP_WINDOWS=1.

  • cargo test -p xcl --test gpu_compute_e2e -- --nocapture --test-threads=1: 7 passed, 0 failed, 0 ignored, no skips. Both offline_split_compute_pipeline_is_reused_by_a_second_process and the newly merged split_compute_prefers_the_offline_whole_pipeline passed.
  • cargo build --workspace: passed.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1,435 passed, 0 failed, 47 ignored; 24 GPU skip notices.

The merged #2371 path tries an offline whole PSO with the ordinary compute root signature; this PR also prepares the chain-root whole form used by Chain::whole. The combined synthetic tests pass on this adapter. Not tested: a clean PR-head retail smoke pair on the new base, cold driver-cache time, AMD hardware, or title world entry. This local uncommitted merge is integration evidence, not a replacement for the PR's required rebased-head regression blocks.

AI use: Codex (GPT-6.2 Sol) reviewed the combined paths, ran these tests on this machine, and drafted this report. AI-assisted.

**@⁠thehollowedone** on GitHub · 2026-11-26 00:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7179289064) Independent Windows integration check of [`3567b2e`](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2551/commits/3567b2efdc94617de71e50be77e107991a6bd41c) merged locally, without a commit, onto current [`main b49be18`](https://github.com/xcl-dev/xcl/commit/b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7) (#2371). The merge had no conflicts. **Tested:** Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug, `XCL_HEAP_WINDOWS=1`. - `cargo test -p xcl --test gpu_compute_e2e -- --nocapture --test-threads=1`: 7 passed, 0 failed, 0 ignored, no skips. Both `offline_split_compute_pipeline_is_reused_by_a_second_process` and the newly merged `split_compute_prefers_the_offline_whole_pipeline` passed. - `cargo build --workspace`: passed. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1,435 passed, 0 failed, 47 ignored; 24 GPU skip notices. The merged #2371 path tries an offline whole PSO with the ordinary compute root signature; this PR also prepares the chain-root whole form used by `Chain::whole`. The combined synthetic tests pass on this adapter. **Not tested:** a clean PR-head retail smoke pair on the new base, cold driver-cache time, AMD hardware, or title world entry. This local uncommitted merge is integration evidence, not a replacement for the PR's required rebased-head regression blocks. **AI use:** Codex (GPT-6.2 Sol) reviewed the combined paths, ran these tests on this machine, and drafted this report. AI-assisted.
Author
Owner

@⁠afpruivo on GitHub · 2026-11-26 02:20 UTC · original

NVIDIA world data for this PR: RTX 3090 (driver 621.40), retail 1.0.2.1. With this PR's precompile the cold compute builds on title threads at the world start went from 30 to 0, and the title presented in the world until the next wall (#2403). One run per state; the runtime is the same main binary throughout, only the cache differs.

Setup

  • RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release.
  • Runtime: main 08db802 (+ #2590, which is not called at run time), XCL_DIRECT_DXIL=1 XCL_DRED=1 XCL_NETWORK=0 XCL_ACTIVITY=1, 480 s, A pressed every 4 s from 20 s, no driver profile for the exe.
  • Precompiler: xcl shaders … --precompile --only cs --pipelines --used-only with XCL_DIRECT_DXIL=1, first from main, then from this PR (3567b2e merged onto 08db802, no conflicts). This PR's pass added 117 whole-form blobs (.chain.pso) next to the pieces, 2,666 pipelines, 0 refused.

Result

precompile cold compute builds after the world start what the title did
main 30 (0.8–1.2 MB DXIL, 11–17 s each, huge, ungated here, about 387 s in the driver) 20 presents, then none for the rest of the run
this PR 0 (146 compute pipelines from blobs) presented for about 28 s in the world (186 presents), then the device was removed at 102.5 s (0x887a0005, DRED page fault at VA 0x0 with no allocations): the #2403 shader-heap limit, with no build in flight
  • After a second pass of this PR's precompile (3,285 pipelines, 0 refused), another run again had 0 cold compute builds after the world start, before the same removal 3 s into the world.
  • With the #2403 driver profile (1 GiB shader heap, #2590) on top, two runs were not removed in 480 s. They did meet compute programs that no earlier run had reached, so not in the --used-only list (29 and 17 cold builds). Precompiling again after each run covers them. I did not check whether those were whole forms.

So on NVIDIA, as in your RX 9060 XT runs, the whole forms were what the title waited on at the world start once the pieces were cached.

Not tested: more than one run per state; --precompile without --used-only; other cards; the heap-windows path.

AI use: Claude Code (Claude Opus 5.5) ran the precompiles and the runs on my PC, read the logs and drafted this.

**@⁠afpruivo** on GitHub · 2026-11-26 02:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7180713564) **NVIDIA world data for this PR: RTX 3090 (driver 621.40), retail 1.0.2.1. With this PR's precompile the cold compute builds on title threads at the world start went from 30 to 0, and the title presented in the world until the next wall (#2403).** One run per state; the runtime is the same `main` binary throughout, only the cache differs. **Setup** - RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. - Runtime: `main` `08db802` (+ #2590, which is not called at run time), `XCL_DIRECT_DXIL=1 XCL_DRED=1 XCL_NETWORK=0 XCL_ACTIVITY=1`, 480 s, A pressed every 4 s from 20 s, no driver profile for the exe. - Precompiler: `xcl shaders … --precompile --only cs --pipelines --used-only` with `XCL_DIRECT_DXIL=1`, first from `main`, then from this PR (`3567b2e` merged onto `08db802`, no conflicts). This PR's pass added 117 whole-form blobs (`.chain.pso`) next to the pieces, 2,666 pipelines, 0 refused. **Result** | precompile | cold compute builds after the world start | what the title did | |---|---:|---| | `main` | 30 (0.8–1.2 MB DXIL, 11–17 s each, `huge, ungated here`, about 387 s in the driver) | 20 presents, then none for the rest of the run | | this PR | **0** (146 compute pipelines from blobs) | presented for about 28 s in the world (186 presents), then the device was removed at 102.5 s (`0x887a0005`, DRED page fault at VA 0x0 with no allocations): the #2403 shader-heap limit, with no build in flight | - After a second pass of this PR's precompile (3,285 pipelines, 0 refused), another run again had 0 cold compute builds after the world start, before the same removal 3 s into the world. - With the #2403 driver profile (1 GiB shader heap, #2590) on top, two runs were not removed in 480 s. They did meet compute programs that no earlier run had reached, so not in the `--used-only` list (29 and 17 cold builds). Precompiling again after each run covers them. I did not check whether those were whole forms. So on NVIDIA, as in your RX 9060 XT runs, the whole forms were what the title waited on at the world start once the pieces were cached. **Not tested:** more than one run per state; `--precompile` without `--used-only`; other cards; the heap-windows path. AI use: Claude Code (Claude Opus 5.5) ran the precompiles and the runs on my PC, read the logs and drafted this.
Author
Owner

@⁠bielfreedom on GitHub · 2026-11-26 03:10 UTC · original

AMD Windows cost of this PR's offline pass: on an RX 9070 XT, the six whole forms in a 26-program set take 17–34 s each in AMD's driver. That doubles the --precompile --pipelines driver time for the set (about 110 s → 230–247 s) and raises peak memory from 1.47 to 2.17 GB. All whole forms built; none was refused. If they would otherwise be built on the title's thread at world start, as in the description, that is time moved out of the title. It is the right trade, but on AMD the offline pass gets noticeably longer.

Setup

  • GPU: RX 9070 XT 16 GB (RDNA4, native wave64), AMD driver 32.0.32029.2010.
  • CPU and memory: Ryzen 7 7700 (16 threads), 32 GB RAM, Windows 11, release.
  • Builds, each with a local timing patch that writes every CreateComputePipelineState time and result to a file:
    • main b49be18;
    • this PR at 3567b2e merged onto it.
  • Offline: xcl shaders <retail shaders.rpf> --precompile --only cs --pipelines, limited to 26 large compute programs, with:
    • XCL_DIRECT_DXIL=1, switch windows, XCL_PSO_DISK_CACHE=0;
    • one driver thread;
    • a fresh translation cache and a fresh exe name for every run (the AMD driver keys its own cache on the exe name, so every build is cold).
  • Two interleaved rounds (main, PR, then PR, main).
build pipelines made / refused driver time r1 / r2 peak memory
main 76 / 0 109.6 / 110.5 s 1.47 GB
this PR 82 / 0 247.3 / 230.1 s 2.17 GB

The six extra pipelines are the whole forms of the six split programs in the set, built with chained = true:

program whole-form DXIL driver ms r1 / r2
84eee477d68b6fdf 958,940 B 18,541 / 17,586
ed2f8fa2e996c6a6 873,976 B 17,938 / 17,725
b3618a0fd76af79c 851,060 B 34,011 / 30,187
c6f8ee0f53ed5709 795,920 B 29,036 / 28,577
d8435f454a510270 742,348 B 25,538 / 24,839
b5cc5a57995e563b 122,884 B 1,493 / 1,299

The other 76 pipelines (56 pieces and 20 unsplit programs) took 120.7 / 110.0 s with this PR against 109.6 / 110.5 s on main. The first round's extra 10 s looks like load on the machine. Times on this machine run about 30 % higher today than in my earlier reports because it is busier; the two builds ran interleaved.

Not tested: a title run and the reuse of these blobs at run time (I ran with the disk cache off).

AI use: Claude Code (Claude Opus 5.5) built the binaries, ran the measurements and wrote this report; I posted it.

**@⁠bielfreedom** on GitHub · 2026-11-26 03:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7181462264) **AMD Windows cost of this PR's offline pass: on an RX 9070 XT, the six whole forms in a 26-program set take 17–34 s each in AMD's driver. That doubles the `--precompile --pipelines` driver time for the set (about 110 s → 230–247 s) and raises peak memory from 1.47 to 2.17 GB. All whole forms built; none was refused.** If they would otherwise be built on the title's thread at world start, as in the description, that is time moved out of the title. It is the right trade, but on AMD the offline pass gets noticeably longer. **Setup** - GPU: RX 9070 XT 16 GB (RDNA4, native wave64), AMD driver 32.0.32029.2010. - CPU and memory: Ryzen 7 7700 (16 threads), 32 GB RAM, Windows 11, release. - Builds, each with a local timing patch that writes every `CreateComputePipelineState` time and result to a file: - `main` `b49be18`; - this PR at `3567b2e` merged onto it. - Offline: `xcl shaders <retail shaders.rpf> --precompile --only cs --pipelines`, limited to 26 large compute programs, with: - `XCL_DIRECT_DXIL=1`, switch windows, `XCL_PSO_DISK_CACHE=0`; - one driver thread; - a fresh translation cache and a fresh exe name for every run (the AMD driver keys its own cache on the exe name, so every build is cold). - Two interleaved rounds (`main`, PR, then PR, `main`). | build | pipelines made / refused | driver time r1 / r2 | peak memory | |---|---:|---:|---:| | `main` | 76 / 0 | 109.6 / 110.5 s | 1.47 GB | | this PR | 82 / 0 | 247.3 / 230.1 s | 2.17 GB | The six extra pipelines are the whole forms of the six split programs in the set, built with `chained = true`: | program | whole-form DXIL | driver ms r1 / r2 | |---|---:|---:| | `84eee477d68b6fdf` | 958,940 B | 18,541 / 17,586 | | `ed2f8fa2e996c6a6` | 873,976 B | 17,938 / 17,725 | | `b3618a0fd76af79c` | 851,060 B | 34,011 / 30,187 | | `c6f8ee0f53ed5709` | 795,920 B | 29,036 / 28,577 | | `d8435f454a510270` | 742,348 B | 25,538 / 24,839 | | `b5cc5a57995e563b` | 122,884 B | 1,493 / 1,299 | The other 76 pipelines (56 pieces and 20 unsplit programs) took 120.7 / 110.0 s with this PR against 109.6 / 110.5 s on `main`. The first round's extra 10 s looks like load on the machine. Times on this machine run about 30 % higher today than in my earlier reports because it is busier; the two builds ran interleaved. **Not tested:** a title run and the reuse of these blobs at run time (I ran with the disk cache off). **AI use:** Claude Code (Claude Opus 5.5) built the binaries, ran the measurements and wrote this report; I posted it.
Author
Owner

@⁠SlopTart on GitHub · 2026-11-26 05:13 UTC · original

Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
No new test functions in this PR (precompile plumbing); the suite above is the confirmation on this lane.

Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-26 05:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7183292523) **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. No new test functions in this PR (precompile plumbing); the suite above is the confirmation on this lane. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Author
Owner

@⁠afpruivo on GitHub · 2026-11-26 11:13 UTC · original

On nvidia-dev af2cecc4 (RTX 3090), this PR merges cleanly. Without it, the title stops about 1 s after the world start, blocked in Chain::whole. With it, the title keeps submitting work to 316 s, and 201 of 231 large compute builds load a precompiled driver blob. 30 whole forms are still built cold, and the device is removed at 341 s. Details and dumps: #2741.

AI use: Claude Code (Claude Opus 5.5) ran the runs and drafted this; checked by me before posting.

**@⁠afpruivo** on GitHub · 2026-11-26 11:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7190436622) On `nvidia-dev` `af2cecc4` (RTX 3090), this PR merges cleanly. Without it, the title stops about 1 s after the world start, blocked in `Chain::whole`. With it, the title keeps submitting work to 316 s, and 201 of 231 large compute builds load a precompiled driver blob. 30 whole forms are still built cold, and the device is removed at 341 s. Details and dumps: https://git.gtahub.st/github/xcl-dev--xcl/issues/2741. AI use: Claude Code (Claude Opus 5.5) ran the runs and drafted this; checked by me before posting.
Author
Owner

@⁠tiagonleal on GitHub · 2026-11-26 14:04 UTC · original

Test report for #2551 on RTX 5070 Ti (Windows 11): no cold compute builds of whole forms after the world start in two runs, but both runs were cut by my RAM guard and one still stopped presenting for 32 s

This adds a 5070 Ti (NVIDIA profile, 1024 MB shader heap) next to the RTX 3090 report above. Two runs after the PR, three before.

Tested

  • PR head 3567b2efdc94617de71e50be77e107991a6bd41c (still the head when I checked), merged locally and cleanly (6843ee87) onto my base 333eb126 = nvidia-dev af2cecc4 + #2590 + #684. "Before" is 333eb126 without the PR. Neither is the PR's own base (main e1d84b7). Release builds.
  • Windows 11 Pro 10.0.26300, RTX 5070 Ti 16 GB (driver 32.0.16.1742, read from the machine today; the run logs do not record it), Ryzen 7 9800X3D, 32 GB RAM.
  • A retail title (smoke id 9cc6a39e), Series X profile, 300 s requested, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_GFX_PSO_WAIT_MS=200 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PREPARE=0, A pressed at 15-100 s. Before each run: xcl shaders <pack> --precompile --only cs --pipelines --used-only. Memory guard on (free RAM < 1 GB, commit > 70 GB).
run tree compute "driver blob absent" after 44 s driver time last present longest gap without presents after 60 s end
nvr-x6 before 17 (12 compute + 5 NGG compute), 0.29-1.13 MB DXIL 295 s (1 unfinished) 64.0 s 234 s, to the end 300 s
nvr-x7 before 11, 0.74-1.13 MB 216 s (1 unfinished) 62.0 s 236 s, to the end 300 s
nvr-x8 before 14, 0.66-1.13 MB 216 s (1 unfinished) 64.0 s 234 s, to the end 300 s
nvr-x9 +#2551 0 0 100 s 32 s (64.0-96.0 s) guard, log ends 101.8 s
nvr-x10 +#2551 0 0 74.0 s 4 s (74.0-78.0 s) guard, log ends 79.0 s
  • Gaps are read from the 2 s activity lines. Driver time is the sum of the finished builds. The three "before" runs share at most one program with each other, so each run reached new ones.
  • Precompile with the PR: first pass 13 min 9 s, second 7 min 33 s. They wrote 131 and 564 new .chain.pso blobs; 118 and 42 of those have 700 KB or more of DXIL in their file name, which I take as whole forms (inferred, not counted by the tool). Their own output was overwritten by later precompiles, so I have no "pipelines made" count for them.
  • nvr-x9 (after pass one): 0 compute builds absent, 2 graphics ones (0-1 ms). Presents stop at 64 s and return at 98 s (1 and 2 per 2 s). I did not find why. The log shows video memory 15.4 GB in use against a budget of about 15.0 GB from 66 s on.
  • nvr-x10 (after pass two): presents per 2 s from 60 to 74 s were 11, 9, 16, 32, 51, 54, 33, 20, then 0 and 0 until the guard cut the run.
  • No device removal, no crash in any of the five runs.

Not tested

  • Anything past ~100 s after the PR: both runs ended by my guard. I cannot say the world loads.
  • Whether the second precompile removed the 64 s stall. x9 stalled with no compute build to blame, and x10 stopped at 74 s for a reason I did not look into. It was needed anyway: --used-only only knows programs that earlier runs reached, and x9 reached new ones.
  • One machine, two runs after, three before. The base carries two other PRs. No cargo test run, no AMD, no run on the PR's own base.

AI use

  • Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Sonnet 5.5) ran the builds and runs and wrote this; I checked it.
**@⁠tiagonleal** on GitHub · 2026-11-26 14:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7194230827) Test report for #2551 on RTX 5070 Ti (Windows 11): no cold compute builds of whole forms after the world start in two runs, but both runs were cut by my RAM guard and one still stopped presenting for 32 s This adds a 5070 Ti (NVIDIA profile, 1024 MB shader heap) next to the RTX 3090 report above. Two runs after the PR, three before. **Tested** - PR head `3567b2efdc94617de71e50be77e107991a6bd41c` (still the head when I checked), merged locally and cleanly (`6843ee87`) onto my base `333eb126` = `nvidia-dev` `af2cecc4` + #2590 + #684. "Before" is `333eb126` without the PR. Neither is the PR's own base (`main` `e1d84b7`). Release builds. - Windows 11 Pro 10.0.26300, RTX 5070 Ti 16 GB (driver 32.0.16.1742, read from the machine today; the run logs do not record it), Ryzen 7 9800X3D, 32 GB RAM. - A retail title (smoke id `9cc6a39e`), Series X profile, 300 s requested, `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_GFX_PSO_WAIT_MS=200 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PREPARE=0`, A pressed at 15-100 s. Before each run: `xcl shaders <pack> --precompile --only cs --pipelines --used-only`. Memory guard on (free RAM < 1 GB, commit > 70 GB). | run | tree | compute "driver blob absent" after 44 s | driver time | last present | longest gap without presents after 60 s | end | |---|---|---|---|---|---|---| | nvr-x6 | before | 17 (12 compute + 5 NGG compute), 0.29-1.13 MB DXIL | 295 s (1 unfinished) | 64.0 s | 234 s, to the end | 300 s | | nvr-x7 | before | 11, 0.74-1.13 MB | 216 s (1 unfinished) | 62.0 s | 236 s, to the end | 300 s | | nvr-x8 | before | 14, 0.66-1.13 MB | 216 s (1 unfinished) | 64.0 s | 234 s, to the end | 300 s | | nvr-x9 | +#2551 | 0 | 0 | 100 s | 32 s (64.0-96.0 s) | guard, log ends 101.8 s | | nvr-x10 | +#2551 | 0 | 0 | 74.0 s | 4 s (74.0-78.0 s) | guard, log ends 79.0 s | - Gaps are read from the 2 s activity lines. Driver time is the sum of the finished builds. The three "before" runs share at most one program with each other, so each run reached new ones. - Precompile with the PR: first pass 13 min 9 s, second 7 min 33 s. They wrote 131 and 564 new `.chain.pso` blobs; 118 and 42 of those have 700 KB or more of DXIL in their file name, which I take as whole forms (inferred, not counted by the tool). Their own output was overwritten by later precompiles, so I have no "pipelines made" count for them. - nvr-x9 (after pass one): 0 compute builds absent, 2 graphics ones (0-1 ms). Presents stop at 64 s and return at 98 s (1 and 2 per 2 s). I did not find why. The log shows video memory 15.4 GB in use against a budget of about 15.0 GB from 66 s on. - nvr-x10 (after pass two): presents per 2 s from 60 to 74 s were 11, 9, 16, 32, 51, 54, 33, 20, then 0 and 0 until the guard cut the run. - No device removal, no crash in any of the five runs. **Not tested** - Anything past ~100 s after the PR: both runs ended by my guard. I cannot say the world loads. - Whether the second precompile removed the 64 s stall. x9 stalled with no compute build to blame, and x10 stopped at 74 s for a reason I did not look into. It was needed anyway: `--used-only` only knows programs that earlier runs reached, and x9 reached new ones. - One machine, two runs after, three before. The base carries two other PRs. No `cargo test` run, no AMD, no run on the PR's own base. **AI use** - Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Sonnet 5.5) ran the builds and runs and wrote this; I checked it.
Author
Owner

@⁠imnicho on GitHub · 2026-11-26 14:54 UTC · original

RTX 5080 16 GB on a small PC (4 cores, 16 GB RAM), nvidia-dev af2cecc4: with the whole form of every split program in the cache, no compute pipeline was built cold after the world start. 168 were created there, all from a driver blob, 165 of them whole forms. Building all whole forms took 4 h 17 min on this machine. One run per state.

This adds a third NVIDIA card to the two reports above, and the cost of the pass without --used-only on a slow machine.

Tested

  • RTX 5080 16 GB (driver 610.47, 32-lane waves), i7-7700K (4 cores, 8 threads), 16 GB RAM, Windows 10 22H2, release builds.
  • Tree: nvidia-dev af2cecc4 + #684 + the pool size of #2630. Not this PR's commit. A local change makes the same call for the same blob: in precompile, after the pieces, make_one(&c.dxil, &c.samplers, true, None) for a program of two or more pieces, when the process runs as a worker of the launch preparation. So this measures the whole forms being in the cache, not this PR's diff.
  • A retail title, Series S profile, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_TEXTURE_SAFE_READ=1 XCL_PSO_AHEAD=0 XCL_PREPARE=0 XCL_DRED=1 XCL_NETWORK=0, scripted A presses.
  • Offline pass before both runs: --precompile --only cs --pipelines over every compute program of the pack, no --used-only: 2,689 compute programs, 805 of them split into 8,073 pieces, 0 refused.
before: pieces only after: pieces and whole forms
world start 283 s 246 s
compute pipelines created after it, with a driver blob 5 (1.0 s) 168 (102.5 s: 0.6 s each on average, longest 1.4 s)
compute pipelines created after it, "driver blob absent" 4 finished (301 s: 0.86 - 0.91 MB of DXIL, 67 - 91 s each) and 1 not finished 0
presents after the world start none after the first 3 s; I stopped the run at 647 s 31, the last at 413 s
end stopped by me exception 0xc0000005 in title code at 424 s
  • Of the 168, 165 are whole forms: 160 built by the pass and 5 by the title in earlier runs. The other 3 are ordinary pipelines. I matched them by the DXIL length in the blob's file name, the log line does not say which form it is.
  • In the "after" run the title drew in the world: 82,772 draws and 51,345 dispatches after the world start.
  • What still built cold there: 17 graphics pipelines (275 - 413 KB of DXIL, 6 - 24 s each, 200 s in all).

Cost of the whole-form pass here

  • 772 whole forms built, 0 refused: 654 of them with 0.5 MB of DXIL or more, the largest 1.2 MB. 815 MB of .chain.pso files.
  • 4 h 17 min of wall time with 3 processes, a fourth for the last 2 h 43 min, each running one driver compile at a time. That is about 69 s of process time per whole form. Available RAM was between 0.5 and 1.3 GB at the four times I read it, so part of that is this machine and not the driver. The pieces pass before it took 64.5 min with 3 processes.
  • The title asked for 165 of the 772 in the 178 s it ran in the world. On a machine like this one, that is the case for the selective warming of #2741.

For nvidia-dev

  • The launch preparation of xcl run on af2cecc4 builds the whole form only in its in-process path (shaders.rs, the startup.is_some() test after p.make(&c)). Its worker processes, which are the default, run --precompile --only cs --pipelines and leave it out. With this PR's change in make_with_cache_path the workers build it too.

Not tested

  • This PR's own commit, main, AMD.
  • More than one run per state. The "after" run also had XCL_GFX_PSO_WAIT_MS=100 XCL_PSO_IMAGE_SKIP=1 XCL_PSO_DISK_CACHE_MIN_MS=0 XCL_TWO_PASS_MB=2048 and the 2,048 MB shader-heap profile of #2590, and the "before" run had neither. So only the compute rows can be put down to the whole forms.
  • A second "after" run, without those four switches, ended at 311 s before the world start, during a cold graphics pipeline build of 44.6 s. It says nothing about compute after the world start.
  • Why the title stopped at 424 s.

AI use

Claude Code with Claude Fable 5.2 wrote the local change, ran the passes and the runs, read the logs and wrote this text.

**@⁠imnicho** on GitHub · 2026-11-26 14:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/2551#issuecomment-7195509026) **RTX 5080 16 GB on a small PC (4 cores, 16 GB RAM), `nvidia-dev` `af2cecc4`: with the whole form of every split program in the cache, no compute pipeline was built cold after the world start. 168 were created there, all from a driver blob, 165 of them whole forms. Building all whole forms took 4 h 17 min on this machine.** One run per state. This adds a third NVIDIA card to the two reports above, and the cost of the pass without `--used-only` on a slow machine. **Tested** - RTX 5080 16 GB (driver 610.47, 32-lane waves), i7-7700K (4 cores, 8 threads), 16 GB RAM, Windows 10 22H2, release builds. - Tree: `nvidia-dev` `af2cecc4` + #684 + the pool size of #2630. **Not this PR's commit.** A local change makes the same call for the same blob: in `precompile`, after the pieces, `make_one(&c.dxil, &c.samplers, true, None)` for a program of two or more pieces, when the process runs as a worker of the launch preparation. So this measures the whole forms being in the cache, not this PR's diff. - A retail title, Series S profile, `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_TEXTURE_SAFE_READ=1 XCL_PSO_AHEAD=0 XCL_PREPARE=0 XCL_DRED=1 XCL_NETWORK=0`, scripted A presses. - Offline pass before both runs: `--precompile --only cs --pipelines` over every compute program of the pack, no `--used-only`: 2,689 compute programs, 805 of them split into 8,073 pieces, 0 refused. | | before: pieces only | after: pieces and whole forms | |---|---|---| | world start | 283 s | 246 s | | compute pipelines created after it, with a driver blob | 5 (1.0 s) | 168 (102.5 s: 0.6 s each on average, longest 1.4 s) | | compute pipelines created after it, "driver blob absent" | 4 finished (301 s: 0.86 - 0.91 MB of DXIL, 67 - 91 s each) and 1 not finished | 0 | | presents after the world start | none after the first 3 s; I stopped the run at 647 s | 31, the last at 413 s | | end | stopped by me | exception `0xc0000005` in title code at 424 s | - Of the 168, 165 are whole forms: 160 built by the pass and 5 by the title in earlier runs. The other 3 are ordinary pipelines. I matched them by the DXIL length in the blob's file name, the log line does not say which form it is. - In the "after" run the title drew in the world: 82,772 draws and 51,345 dispatches after the world start. - What still built cold there: 17 graphics pipelines (275 - 413 KB of DXIL, 6 - 24 s each, 200 s in all). **Cost of the whole-form pass here** - 772 whole forms built, 0 refused: 654 of them with 0.5 MB of DXIL or more, the largest 1.2 MB. 815 MB of `.chain.pso` files. - 4 h 17 min of wall time with 3 processes, a fourth for the last 2 h 43 min, each running one driver compile at a time. That is about 69 s of process time per whole form. Available RAM was between 0.5 and 1.3 GB at the four times I read it, so part of that is this machine and not the driver. The pieces pass before it took 64.5 min with 3 processes. - The title asked for 165 of the 772 in the 178 s it ran in the world. On a machine like this one, that is the case for the selective warming of #2741. **For `nvidia-dev`** - The launch preparation of `xcl run` on `af2cecc4` builds the whole form only in its in-process path (`shaders.rs`, the `startup.is_some()` test after `p.make(&c)`). Its worker processes, which are the default, run `--precompile --only cs --pipelines` and leave it out. With this PR's change in `make_with_cache_path` the workers build it too. **Not tested** - This PR's own commit, `main`, AMD. - More than one run per state. The "after" run also had `XCL_GFX_PSO_WAIT_MS=100 XCL_PSO_IMAGE_SKIP=1 XCL_PSO_DISK_CACHE_MIN_MS=0 XCL_TWO_PASS_MB=2048` and the 2,048 MB shader-heap profile of #2590, and the "before" run had neither. So only the compute rows can be put down to the whole forms. - A second "after" run, without those four switches, ended at 311 s before the world start, during a cold graphics pipeline build of 44.6 s. It says nothing about compute after the world start. - Why the title stopped at 424 s. **AI use** Claude Code with Claude Fable 5.2 wrote the local change, ran the passes and the runs, read the logs and wrote this text.
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/2551/head:github-bot/gh-2551'
git switch 'github-bot/gh-2551'

Merge

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