Repository navigation
Conversation
… form 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. xcl-dev#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 <noreply@anthropic.com>
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! — Devin |
|
Independent Windows integration check of Tested: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug,
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 AI use: Codex (GPT-6.2 Sol) reviewed the combined paths, ran these tests on this machine, and drafted this report. AI-assisted. |
|
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 Setup
Result
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; AI use: Claude Code (Claude Opus 5.5) ran the precompiles and the runs on my PC, read the logs and drafted this. |
|
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 Setup
The six extra pipelines are the whole forms of the six split programs in the set, built with
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 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. |
|
Tested: current PR head merged onto current
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. |
|
On AI use: Claude Code (Claude Opus 5.5) ran the runs and drafted this; checked by me before posting. |
|
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
Not tested
AI use
|
|
RTX 5080 16 GB on a small PC (4 cores, 16 GB RAM), This adds a third NVIDIA card to the two reports above, and the cost of the pass without Tested
Cost of the whole-form pass here
For
Not tested
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. |
Adapt the whole-PSO precompile path proposed by DTsordas in xcl-dev#2551 (3567b2e). Expose it as an explicit offline option and preserve the existing used-pipeline filter, startup behavior and pipeline cache keys. Assisted-by: OpenAI Codex (GPT-6)
|
A follow-up from an RTX 3090 (driver 621.24, Windows Sandbox vGPU) on the NVIDIA integration base I checked six first-demand stalls against the sealed CLI precache. Each shader's translated record and all 67 split-piece PSOs were present. All six whole chain-ABI PSOs were absent. These six driver compiles took about 82 seconds total during the loading interval. A later sample of 40 whole variants showed the same missing-blob pattern. With the recovered driver blobs in a private six-key cache, I exercised an opt-in backport of this PR. On the same cache, the normal Credit to @DTsordas for the whole-variant precompile change. AI assistance: OpenAI Codex. |
|
RTX 3070 8 GB (driver 617.42), on a tree that has #2404 (two items of your "Not tested": NVIDIA, and together with #2404): with this PR's whole forms in the cache, the title kept presenting to the end of two 420 s runs, and one of them loaded 55 whole forms from this PR's blobs. Without them, one of two runs stopped presenting at 181 s, 99 s after world entry, while whole forms were built cold. With the PR, no compute pipeline was built cold after the world start. The next cold builds are graphics pipelines from about 300 s, up to 12 s each.
Tested
Not tested
AI use
|
xcl shaders --precompile --pipelinesnow 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 inChain::wholewithchained = 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 anExecuteIndirecton 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_pathbuildsc.dxilwithchained = true(the cap and the cached-blob reuse apply as for a piece). The unit test now expects the whole form's.chain.psotoo, 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_processcounts the whole form's blob with the pieces' (5 pieces + 1 whole form).Tested
cargo test --workspace --no-fail-fast -- --test-threads=4at3567b2e: 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 onmaine1d84b7on this card; they are not touched here.d3d12SDKLayers.dll(3),f16_programs_on_the_gpuandf32_programs_on_the_gpuper-lane forms (6), no heap windows (1).main06c9f55+ 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
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
AI use
🤖 Generated with Claude Code