Shaders: xcl pipelines --shard k/n splits the journal over processes #1816

Closed
VolenNakov wants to merge 23 commits from upstream-pr/1826 into main
VolenNakov commented 2026-11-24 21:30:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by VolenNakov on 2026-11-24T21:30:15Z.


Stacked on #759; only Shaders: xcl pipelines --shard k/n splits the journal over processes, the merges of main above it and @Kalmarv's Shaders: xcl pipelines keeps a replayed graphics pipeline's driver blob (5988731, cherry-picked from 7f6d342 with their authorship) belong here. The first of them (1037250, main 568e7db) also resolves #759's conflicts with main: GraphicsPrep carries the VS / PS DXIL and samplers, so translated_graphics_pso keeps main's graphics driver-blob cache on #759's prep_graphics; warm gates big compute builds with main's size-class slots and commit headroom (huge_pso_bytes, compile_slots, big_compile_headroom); uma::existing sits next to main's get. The next (01db6f4, main 426a5a7) keeps #2176's image_only next to #759's journal entry in go_background; the last (7ae2bb7, main 1a0bbe3) merged cleanly. Part of #1269; the same idea as #1502 for xcl shaders --precompile, with the same --shard k/n syntax.

NVIDIA's driver builds about one big compute pipeline at a time per process, however many threads ask (#1502 measured it for xcl shaders --precompile; S1m0ne1997 on #505 for xcl pipelines). With one xcl pipelines process, XCL_PIPELINE_THREADS=10 and XCL_BIG_COMPILES=10 on the retail title's journal, 10 big builds were in flight but the process kept 2.1 of 12 cores busy (1.7 threads running on average). --shard k/n lets n processes share the journal: four of them kept 9.6–10.6 cores busy on the same journal.

What is in it

  • crates/xcl/src/pipelines.rs: --shard k/n. A process takes the pipelines whose hash % n is k − 1 (Queue::mine, in next and left), the ones the title used first as before, and keeps its own pipelines.shard{k}of{n}.done / .trying, so each process can be stopped and resumed on its own. Help text. Test: shards_split_the_pipelines_without_overlap (every pipeline in exactly one share, fair shares, left counts only the share).
  • crates/xcl/src/hle/d3d12x/real.rs (@Kalmarv, 5988731): the graphics arm of warm_once keeps a gfx-<key> driver blob of each graphics pipeline it replays, as the compute arm and translated_graphics_pso do, and skips a pipeline whose blob is already there. Before, a replay's graphics coverage lived only in the driver's own cache, which evicts when full (their report: https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7186938569).

Tested

  • At the head 7916cf3 (main 6089122a merged in; the only conflict was main.rs, where main added xcl pso-precompile beside xcl pipelines, both kept): cargo test --release --workspace --no-fail-fast -- --test-threads=4: 1474 passed, 0 failed, 47 ignored, 29 SKIPPED lines (the same kinds as below). The lines below are from earlier heads.
  • NVIDIA GeForce RTX 4060 Ti 16 GB (driver 32.0.16.1088), Intel Core i7-8700 (6 cores / 12 threads), 32 GB RAM, Windows 11 build 26200, rustc 1.94.1 MSVC, release.
  • cargo build --release --workspace, then cargo test --release --workspace --no-fail-fast -- --test-threads=4 on 7ae2bb7: 1259 passed, 0 failed, 46 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware and the wave64 cases of lower_dxil::tests::{integer,f16,f32,f64}_programs_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (no wave64); heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows); pso_measurement_compiles_an_exact_synthetic_record (the driver cache cannot be turned off without Developer Mode); uploads_start_from_each_subresources_state and test_title_draws_with_a_root_signature_under_the_debug_layer (no D3D12 debug layer); the per-lane cases refused for #1426 semantics (V_CVT_F16_F32, V_PK_MUL_F16, V_MUL_F16).
  • On the retail title's journal (58 748 pipelines), --shard 1/2 and --shard 2/2 run together with --limit 400 each: both made 400 and ended cleanly (no .trying left); every hash in pipelines.shard1of2.done is even and in pipelines.shard2of2.done odd, with no overlap. Note: the start line's count of a share (30 254 and 30 260 here) uses left(), which counts a pipeline the title used twice when it is also in rest (1 766 here); that is as on #759 without --shard.
  • The core numbers above are from the same change on a local tree (#759's earlier head + main 930e8b4): one process 2.1 cores; four processes (--threads 4, XCL_PIPELINE_THREADS=3, XCL_BIG_COMPILES=2 each) 9.6–10.6 cores, 14–20 GB of RAM free. Big compute pipelines (0.8–1.3 MB of DXIL) took 140–530 s each in the driver either way; sharding runs more of them at once, it does not make one faster.
  • 5988731 (Kalmarv's): cargo test -p xcl --lib -- pipelines driver_cache on it: 11 passed, 0 failed. Before the cherry-pick, the same commit had run on a local tree (main 08db802 with this PR, #2526, #2097, #2404, #2590 and #2615), replaying the retail title's journal with four --shard k/4 processes and a local graphics-only filter: 55,973 graphics pipelines made, 0 failed, and 3,515 gfx-* blobs kept. The next title run had 1 cold graphics compile; a run before the replay had 72.

Regression run
scripts/smoke.ps1 -Game <the title> -Seconds 60, rerun after merging main (d8bd9a38) into this branch (and 275ce3d2, which moves warm_once onto main's driver-cache names: a graphics file's hash now holds the adapter's identity and the windows, a compute file's name the root's samplers and node mask, as the runtime names them; the tool writes every blob it gets, as main's preparation worker does), both with XCL_PREPARE=0 (main's startup preparation would run cold for this build for hours, beyond the script's startup limit) and the same warm cache.

main:

xcl-smoke v1
commit: d8bd9a38204667f3ca7dd9eeffcc2f1c937b07b0
gpu: NVIDIA GeForce RTX 4060 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1378 (PresentX 1378)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15308 MB

PR:

xcl-smoke v1
commit: 275ce3d2e4d3b1c424b6c0baa522ffc76cec1d29
gpu: NVIDIA GeForce RTX 4060 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1488 (PresentX 1488)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15217 MB

Not tested

  • --watch with --shard beside a running title; AMD and Intel GPUs (where the driver may not serialize, so sharding may gain less); Wine.
  • The smoke runs do not reach xcl pipelines; they check that the runtime is unchanged.

AI use

  • Claude Code with Claude Opus 5.5: wrote the change, the test and this description, and ran the tests, the smoke runs and the shard runs on my PC.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5480662155 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826). Originally posted by [VolenNakov](https://github.com/VolenNakov) on 2026-11-24T21:30:15Z. --- Stacked on #759; only `Shaders: xcl pipelines --shard k/n splits the journal over processes`, the merges of `main` above it and @Kalmarv's `Shaders: xcl pipelines keeps a replayed graphics pipeline's driver blob` (`5988731`, cherry-picked from `7f6d342` with their authorship) belong here. The first of them (`1037250`, `main` `568e7db`) also resolves #759's conflicts with `main`: `GraphicsPrep` carries the VS / PS DXIL and samplers, so `translated_graphics_pso` keeps `main`'s graphics driver-blob cache on #759's `prep_graphics`; `warm` gates big compute builds with `main`'s size-class slots and commit headroom (`huge_pso_bytes`, `compile_slots`, `big_compile_headroom`); `uma::existing` sits next to `main`'s `get`. The next (`01db6f4`, `main` `426a5a7`) keeps #2176's `image_only` next to #759's journal entry in `go_background`; the last (`7ae2bb7`, `main` `1a0bbe3`) merged cleanly. Part of #1269; the same idea as #1502 for `xcl shaders --precompile`, with the same `--shard k/n` syntax. NVIDIA's driver builds about one big compute pipeline at a time per process, however many threads ask (#1502 measured it for `xcl shaders --precompile`; S1m0ne1997 on #505 for `xcl pipelines`). With one `xcl pipelines` process, `XCL_PIPELINE_THREADS=10` and `XCL_BIG_COMPILES=10` on the retail title's journal, 10 big builds were in flight but the process kept 2.1 of 12 cores busy (1.7 threads running on average). `--shard k/n` lets n processes share the journal: four of them kept 9.6–10.6 cores busy on the same journal. **What is in it** - `crates/xcl/src/pipelines.rs`: `--shard k/n`. A process takes the pipelines whose hash % n is k − 1 (`Queue::mine`, in `next` and `left`), the ones the title used first as before, and keeps its own `pipelines.shard{k}of{n}.done` / `.trying`, so each process can be stopped and resumed on its own. Help text. Test: `shards_split_the_pipelines_without_overlap` (every pipeline in exactly one share, fair shares, `left` counts only the share). - `crates/xcl/src/hle/d3d12x/real.rs` (@Kalmarv, `5988731`): the graphics arm of `warm_once` keeps a `gfx-<key>` driver blob of each graphics pipeline it replays, as the compute arm and `translated_graphics_pso` do, and skips a pipeline whose blob is already there. Before, a replay's graphics coverage lived only in the driver's own cache, which evicts when full (their report: https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7186938569). **Tested** - At the head `7916cf3` (`main` `6089122a` merged in; the only conflict was `main.rs`, where `main` added `xcl pso-precompile` beside `xcl pipelines`, both kept): `cargo test --release --workspace --no-fail-fast -- --test-threads=4`: 1474 passed, 0 failed, 47 ignored, 29 SKIPPED lines (the same kinds as below). The lines below are from earlier heads. - NVIDIA GeForce RTX 4060 Ti 16 GB (driver 32.0.16.1088), Intel Core i7-8700 (6 cores / 12 threads), 32 GB RAM, Windows 11 build 26200, rustc 1.94.1 MSVC, release. - `cargo build --release --workspace`, then `cargo test --release --workspace --no-fail-fast -- --test-threads=4` on `7ae2bb7`: 1259 passed, 0 failed, 46 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` and the wave64 cases of `lower_dxil::tests::{integer,f16,f32,f64}_programs_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` (no wave64); `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows); `pso_measurement_compiles_an_exact_synthetic_record` (the driver cache cannot be turned off without Developer Mode); `uploads_start_from_each_subresources_state` and `test_title_draws_with_a_root_signature_under_the_debug_layer` (no D3D12 debug layer); the per-lane cases refused for #1426 semantics (`V_CVT_F16_F32`, `V_PK_MUL_F16`, `V_MUL_F16`). - On the retail title's journal (58 748 pipelines), `--shard 1/2` and `--shard 2/2` run together with `--limit 400` each: both made 400 and ended cleanly (no `.trying` left); every hash in `pipelines.shard1of2.done` is even and in `pipelines.shard2of2.done` odd, with no overlap. Note: the start line's count of a share (30 254 and 30 260 here) uses `left()`, which counts a pipeline the title used twice when it is also in `rest` (1 766 here); that is as on #759 without `--shard`. - The core numbers above are from the same change on a local tree (#759's earlier head + `main` `930e8b4`): one process 2.1 cores; four processes (`--threads 4`, `XCL_PIPELINE_THREADS=3`, `XCL_BIG_COMPILES=2` each) 9.6–10.6 cores, 14–20 GB of RAM free. Big compute pipelines (0.8–1.3 MB of DXIL) took 140–530 s each in the driver either way; sharding runs more of them at once, it does not make one faster. - `5988731` (Kalmarv's): `cargo test -p xcl --lib -- pipelines driver_cache` on it: 11 passed, 0 failed. Before the cherry-pick, the same commit had run on a local tree (`main` `08db802` with this PR, #2526, #2097, #2404, #2590 and #2615), replaying the retail title's journal with four `--shard k/4` processes and a local graphics-only filter: 55,973 graphics pipelines made, 0 failed, and 3,515 `gfx-*` blobs kept. The next title run had 1 cold graphics compile; a run before the replay had 72. **Regression run** `scripts/smoke.ps1 -Game <the title> -Seconds 60`, rerun after merging `main` (`d8bd9a38`) into this branch (and `275ce3d2`, which moves `warm_once` onto `main`'s driver-cache names: a graphics file's hash now holds the adapter's identity and the windows, a compute file's name the root's samplers and node mask, as the runtime names them; the tool writes every blob it gets, as `main`'s preparation worker does), both with `XCL_PREPARE=0` (`main`'s startup preparation would run cold for this build for hours, beyond the script's startup limit) and the same warm cache. main: ``` xcl-smoke v1 commit: d8bd9a38204667f3ca7dd9eeffcc2f1c937b07b0 gpu: NVIDIA GeForce RTX 4060 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1378 (PresentX 1378) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15308 MB ``` PR: ``` xcl-smoke v1 commit: 275ce3d2e4d3b1c424b6c0baa522ffc76cec1d29 gpu: NVIDIA GeForce RTX 4060 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1488 (PresentX 1488) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15217 MB ``` **Not tested** - `--watch` with `--shard` beside a running title; AMD and Intel GPUs (where the driver may not serialize, so sharding may gain less); Wine. - The smoke runs do not reach `xcl pipelines`; they check that the runtime is unchanged. **AI use** - Claude Code with Claude Opus 5.5: wrote the change, the test and this description, and ran the tests, the smoke runs and the shard runs on my PC. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
futurepro62 commented 2026-11-24 23:08:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T22:39:27Z.


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

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, 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: 866 passed, 0 failed, 42 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: the_heap_windows_flag_is_kept, graphics_round_trip, what_is_noted_while_the_journal_opens_is_written_after_in_order, a_torn_frame_written_over_is_read_again, trying_holds_only_the_pipelines_being_made, another_gpu_or_driver_starts_the_done_file_over, done_file_of_another_binary_is_replaced_and_a_torn_record_cut, used_pipelines_first_done_ones_skipped_journal_followed, shards_split_the_pipelines_without_overlap.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 867 passed, 0 failed, 42 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • On NVIDIA, --skip leaves out five tests where this PR's base has them. They fail on main 689f2db too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns their skips into failures. These are heap_window_out_of_memory_falls_back_to_the_switch_form (#1651) and the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests (follow-up on #1651). 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.
<!-- greyfinch-sync:ivall/xcl:comment:7146490550 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7146490550). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T22:39:27Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `c660438` (on its base `c160d86`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, 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`: **866 passed, 0 failed, 42 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `the_heap_windows_flag_is_kept`, `graphics_round_trip`, `what_is_noted_while_the_journal_opens_is_written_after_in_order`, `a_torn_frame_written_over_is_read_again`, `trying_holds_only_the_pipelines_being_made`, `another_gpu_or_driver_starts_the_done_file_over`, `done_file_of_another_binary_is_replaced_and_a_torn_record_cut`, `used_pipelines_first_done_ones_skipped_journal_followed`, `shards_split_the_pipelines_without_overlap`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **867 passed, 0 failed, 42 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - On NVIDIA, `--skip` leaves out five tests where this PR's base has them. They fail on main `689f2db` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns their skips into failures. These are `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651) and the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)). 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.
DavidM1911 commented 2026-11-25 01:10:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T00:50:43Z.


Test report — RTX 3060 Ti (Windows 11): does not compile after merging with current main (1d027e5).

cargo test -p xcl --lib fails with 3 × E0425 in crates/xcl/src/hle/d3d12x/real.rs:

  • vs_dxil / ps_dxil not found at real.rs:4251 — main restructured the graphics-prep path (GraphicsPrep { desc, rs, rect_gs, _dxil } now carries the blobs differently).
  • BIG_DRIVER_COMPILE not found at real.rs:4612 — main renamed it to GIANT_DRIVER_COMPILE (real.rs:3575) and split BIG_COMPILES/GIANT_COMPILES lanes.

Git merged the files cleanly but the change is semantically stale — needs a rebase onto the new compile-slot layout.

<!-- greyfinch-sync:ivall/xcl:comment:7148942034 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7148942034). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T00:50:43Z. --- Test report — RTX 3060 Ti (Windows 11): **does not compile after merging with current `main`** (`1d027e5`). `cargo test -p xcl --lib` fails with 3 × E0425 in `crates/xcl/src/hle/d3d12x/real.rs`: - `vs_dxil` / `ps_dxil` not found at real.rs:4251 — `main` restructured the graphics-prep path (`GraphicsPrep { desc, rs, rect_gs, _dxil }` now carries the blobs differently). - `BIG_DRIVER_COMPILE` not found at real.rs:4612 — `main` renamed it to `GIANT_DRIVER_COMPILE` (real.rs:3575) and split `BIG_COMPILES`/`GIANT_COMPILES` lanes. Git merged the files cleanly but the change is semantically stale — needs a rebase onto the new compile-slot layout.
JJAutoCompare commented 2026-11-25 03:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T02:25:54Z.


XCL PR #1826 verification

xcl pipelines --shard k/n assigns each process a share of the pipeline journal and shard-specific .done and .trying files.

  • PR head c6604385b250c6cd6e679c5dfcbfd114ccb1e581 from live refs/pull/1826/head. The detached worktree was clean before and after the suite.
  • origin/main at fetch was aaa093657bd96a146c05c0c1a9b61149fe761453.
  • git merge-tree --write-tree origin/main HEAD exited 1 with conflicts in crates/xcl/src/gpu/uma.rs and crates/xcl/src/hle/d3d12x/real.rs.

What is in it

  • crates/xcl/src/pipelines.rs parses the shard argument, partitions the queue by pipeline hash, uses per-shard progress files, and tests partition completeness and disjointness. The full PR diff against origin/main also includes the pipeline journal and its runtime integration.

Tested

  • STOR-WINLAB with Intel Arc A770 16 GiB, driver 32.0.101.9175, wave range 8–32, DoublePrecisionFloatShaderOps=0, and AMD Ryzen 7 3800X. Windows 11 Enterprise Evaluation build 26200.9974, DXC/DXIL 1.9.2609.5, and rustc 1.100.0 (0ef1bc386 2026-11-09). Cargo used unoptimized dev/test profiles with debug info and incremental compilation disabled.
  • cargo build --workspace and cargo test --workspace --no-run both exited 0 outside the GPU lock.
  • cargo test -p xcl --lib pipelines::tests::shards_split_the_pipelines_without_overlap -- --show-output reported 1 passed, 0 failed, 0 ignored, and 839 filtered out outside the GPU lock.
  • One pass of cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output via Invoke-ArcTest.ps1 under the A770 lock exited 101. Across 20 target summaries, Cargo reported 849 passed, 18 failed, 42 ignored, with 0 measured and 0 filtered out. The shard unit test passed in this pass too.
  • The library target had 17 failures. Thirteen reported CreateComputePipelineState error 0x80070057. The other four were assertion failures for FMA overflow, implicit-LOD sampling, v_add_f16 high-half preservation, and whole-wave pixel reductions. The e2e target had one failure in test_title_runs_and_game_folder_is_untouched. The dynamic depth-bias check (#94) produced blue where it expected green.
  • Cargo includes the following six SKIPPED entries in its passed count. The skipped paths provide no coverage.
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2
SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))
  • Full output is in L:\XclTooling\neon-slot-4\tmp\pr1826-suite.log.

Not tested

  • Baseline suite on origin/main. The regression status of the failures is undetermined.
  • Retail-title scripts/smoke.ps1 regression comparison on main and PR head, end-to-end execution with concurrent --shard processes, and AMD or NVIDIA verification.
  • The suite logged early returns for unset XCL_SAMPLE_AWC, XCL_SAMPLE_RPF, and XCL_SAMPLE_TTPF and for missing audio or system XGameRuntime support.

AI use

Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified the counts against pr1826-suite.log and published this report.

<!-- greyfinch-sync:ivall/xcl:comment:7150710696 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7150710696). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T02:25:54Z. --- # XCL PR #1826 verification `xcl pipelines --shard k/n` assigns each process a share of the pipeline journal and shard-specific `.done` and `.trying` files. - PR head `c6604385b250c6cd6e679c5dfcbfd114ccb1e581` from live `refs/pull/1826/head`. The detached worktree was clean before and after the suite. - `origin/main` at fetch was `aaa093657bd96a146c05c0c1a9b61149fe761453`. - `git merge-tree --write-tree origin/main HEAD` exited 1 with conflicts in `crates/xcl/src/gpu/uma.rs` and `crates/xcl/src/hle/d3d12x/real.rs`. **What is in it** - `crates/xcl/src/pipelines.rs` parses the shard argument, partitions the queue by pipeline hash, uses per-shard progress files, and tests partition completeness and disjointness. The full PR diff against `origin/main` also includes the pipeline journal and its runtime integration. **Tested** - STOR-WINLAB with Intel Arc A770 16 GiB, driver `32.0.101.9175`, wave range 8–32, `DoublePrecisionFloatShaderOps=0`, and AMD Ryzen 7 3800X. Windows 11 Enterprise Evaluation build `26200.9974`, DXC/DXIL `1.9.2609.5`, and `rustc 1.100.0 (0ef1bc386 2026-11-09)`. Cargo used unoptimized dev/test profiles with debug info and incremental compilation disabled. - `cargo build --workspace` and `cargo test --workspace --no-run` both exited 0 outside the GPU lock. - `cargo test -p xcl --lib pipelines::tests::shards_split_the_pipelines_without_overlap -- --show-output` reported 1 passed, 0 failed, 0 ignored, and 839 filtered out outside the GPU lock. - One pass of `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` via `Invoke-ArcTest.ps1` under the A770 lock exited 101. Across 20 target summaries, Cargo reported **849 passed, 18 failed, 42 ignored**, with 0 measured and 0 filtered out. The shard unit test passed in this pass too. - The library target had 17 failures. Thirteen reported `CreateComputePipelineState` error `0x80070057`. The other four were assertion failures for FMA overflow, implicit-LOD sampling, `v_add_f16` high-half preservation, and whole-wave pixel reductions. The `e2e` target had one failure in `test_title_runs_and_game_folder_is_untouched`. The dynamic depth-bias check (#94) produced blue where it expected green. - Cargo includes the following six `SKIPPED` entries in its passed count. The skipped paths provide no coverage. ```text SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2 SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)) ``` - Full output is in `L:\XclTooling\neon-slot-4\tmp\pr1826-suite.log`. **Not tested** - Baseline suite on `origin/main`. The regression status of the failures is undetermined. - Retail-title `scripts/smoke.ps1` regression comparison on main and PR head, end-to-end execution with concurrent `--shard` processes, and AMD or NVIDIA verification. - The suite logged early returns for unset `XCL_SAMPLE_AWC`, `XCL_SAMPLE_RPF`, and `XCL_SAMPLE_TTPF` and for missing audio or system XGameRuntime support. **AI use** Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified the counts against `pr1826-suite.log` and published this report.
DavidM1911 commented 2026-11-26 07:03:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T06:27:56Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7184455432 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7184455432). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T06:27:56Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Kalmarv commented 2026-11-26 09:07:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T08:43:22Z.


xcl pipelines, at this PR's head 7ae2bb71: the graphics arm of warm_once (crates/xcl/src/hle/d3d12x/real.rs:5507) builds the pipeline and drops it without keeping a gfx-<key> driver blob. Only the compute arm writes driver_cache. So a replay's graphics coverage lives only in the driver's own shader cache, and that cache evicts once it is full.

Case (RTX 5070 Ti, driver 610.74, a retail title, this PR and #759 merged with main b49be18 and other PRs): the replay made 3797 pipelines and left 0 gfx-* blobs. A title run after other precompiles had filled the 22.5 GB driver cache rebuilt 440 graphics pipelines at >= 250 ms each (709.8 s of driver time, 56.4 s of it on title threads; 0 frames from 73 to 168 s).

With the fix below and nothing else changed (same tree, same env, the journal replayed again into a copy of the same cache), the replay kept 452 more gfx-* blobs, and they covered all 440 of those pipelines. In the title run, 0 graphics builds took >= 250 ms (was 440), 5 driver builds ran after 70 s (was 1244), and fps over the title's opening sequence (80-370 s) went from 0.45 to 0.69. That run ended at 367 s with an access violation in gpu::tiling::Chain::detile_level < title_textures::subresources: the known title-texture read racing a decommit (#751 / #484), outside the replay path.

Suggested fix: in the graphics arm, compute graphics_blob_key(&copy, &vs_dxil, ps_dxil.as_deref(), rect_gs.as_deref(), &samplers) before the build. Return early when driver_cache::graphics_path exists. Otherwise driver_cache::keep the made pipeline's GetCachedBlob() there, skipping it when the rect-list GS was dropped, as the compute arm and translated_graphics_pso do. 19 lines; it applies to 7ae2bb71 as is and cargo check -p xcl passes. The commit: github.com/Kalmarv/xcl@7f6d3424e4

AI use: found, patched and measured with Claude Code (Claude Opus 5.5); the numbers are from our runs.

<!-- greyfinch-sync:ivall/xcl:comment:7186938569 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7186938569). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T08:43:22Z. --- `xcl pipelines`, at this PR's head 7ae2bb71: the graphics arm of `warm_once` (`crates/xcl/src/hle/d3d12x/real.rs:5507`) builds the pipeline and drops it without keeping a `gfx-<key>` driver blob. Only the compute arm writes `driver_cache`. So a replay's graphics coverage lives only in the driver's own shader cache, and that cache evicts once it is full. Case (RTX 5070 Ti, driver 610.74, a retail title, this PR and #759 merged with main b49be18 and other PRs): the replay made 3797 pipelines and left 0 `gfx-*` blobs. A title run after other precompiles had filled the 22.5 GB driver cache rebuilt 440 graphics pipelines at >= 250 ms each (709.8 s of driver time, 56.4 s of it on title threads; 0 frames from 73 to 168 s). With the fix below and nothing else changed (same tree, same env, the journal replayed again into a copy of the same cache), the replay kept 452 more `gfx-*` blobs, and they covered all 440 of those pipelines. In the title run, 0 graphics builds took >= 250 ms (was 440), 5 driver builds ran after 70 s (was 1244), and fps over the title's opening sequence (80-370 s) went from 0.45 to 0.69. That run ended at 367 s with an access violation in `gpu::tiling::Chain::detile_level` < `title_textures::subresources`: the known title-texture read racing a decommit (#751 / #484), outside the replay path. Suggested fix: in the graphics arm, compute `graphics_blob_key(&copy, &vs_dxil, ps_dxil.as_deref(), rect_gs.as_deref(), &samplers)` before the build. Return early when `driver_cache::graphics_path` exists. Otherwise `driver_cache::keep` the made pipeline's `GetCachedBlob()` there, skipping it when the rect-list GS was dropped, as the compute arm and `translated_graphics_pso` do. 19 lines; it applies to 7ae2bb71 as is and `cargo check -p xcl` passes. The commit: https://github.com/Kalmarv/xcl/commit/7f6d3424e44c9a7b0254daea2ac8378eae8c7b45 AI use: found, patched and measured with Claude Code (Claude Opus 5.5); the numbers are from our runs.
VolenNakov commented 2026-11-26 15:03:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by VolenNakov on 2026-11-26T14:42:03Z.


@Kalmarv thank you, that was the gap. Your commit is in as 5988731, cherry-picked from 7f6d342 with your authorship, and the description lists it.

I had been running it locally since your comment. On an RTX 4060 Ti 16 GB, a replay of the retail title's journal with four --shard k/4 processes made 55,973 graphics pipelines with 0 failed and kept 3,515 gfx-* blobs. The next title run had 1 cold graphics compile, against 72 in a run before the replay. On the new head, cargo test -p xcl --lib -- pipelines driver_cache: 11 passed, 0 failed.

AI use: Claude Code (Claude Opus 5.5) applied the commit, ran the tests and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7195195388 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7195195388). Originally posted by [VolenNakov](https://github.com/VolenNakov) on 2026-11-26T14:42:03Z. --- @Kalmarv thank you, that was the gap. Your commit is in as `5988731`, cherry-picked from `7f6d342` with your authorship, and the description lists it. I had been running it locally since your comment. On an RTX 4060 Ti 16 GB, a replay of the retail title's journal with four `--shard k/4` processes made 55,973 graphics pipelines with 0 failed and kept 3,515 `gfx-*` blobs. The next title run had 1 cold graphics compile, against 72 in a run before the replay. On the new head, `cargo test -p xcl --lib -- pipelines driver_cache`: 11 passed, 0 failed. AI use: Claude Code (Claude Opus 5.5) applied the commit, ran the tests and wrote this.
VolenNakov commented 2026-11-29 12:18:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by VolenNakov on 2026-11-29T12:18:22Z.


The head is now 275ce3d2: main (d8bd9a38) merged in, plus one commit that moves xcl pipelines' warm_once onto main's new driver-cache names (a graphics file's hash now holds the adapter's identity and the windows, a compute file's name the root's samplers and node mask, as the runtime names them). So the earlier reports no longer count for this head.

@DavidM1911 @JJAutoCompare @futurepro62 you tested earlier heads. If one of you has time, a rerun on 275ce3d2 would help: the suite, and if you can, an xcl pipelines replay of a journal (with or without --shard), since that is the part 275ce3d2 changed. Here: cargo test -p xcl --lib -- --test-threads=2 2488 passed, 0 failed (RTX 4060 Ti, 610.88), and a 60 s smoke run against main (in the description). I have not replayed a journal on this head yet.

AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.

<!-- greyfinch-sync:ivall/xcl:comment:7255715903 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7255715903). Originally posted by [VolenNakov](https://github.com/VolenNakov) on 2026-11-29T12:18:22Z. --- The head is now `275ce3d2`: `main` (`d8bd9a38`) merged in, plus one commit that moves `xcl pipelines`' `warm_once` onto `main`'s new driver-cache names (a graphics file's hash now holds the adapter's identity and the windows, a compute file's name the root's samplers and node mask, as the runtime names them). So the earlier reports no longer count for this head. @DavidM1911 @JJAutoCompare @futurepro62 you tested earlier heads. If one of you has time, a rerun on `275ce3d2` would help: the suite, and if you can, an `xcl pipelines` replay of a journal (with or without `--shard`), since that is the part `275ce3d2` changed. Here: `cargo test -p xcl --lib -- --test-threads=2` 2488 passed, 0 failed (RTX 4060 Ti, 610.88), and a 60 s smoke run against `main` (in the description). I have not replayed a journal on this head yet. AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.
VolenNakov commented 2026-11-30 07:55:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by VolenNakov on 2026-11-30T07:55:23Z.


Closing this one. main has since taken a different route to offline pipeline preparation: xcl pso-precompile with the staged corpus (shaders/pso_corpus.rs, warm_replay.rs, warm_library.rs, warm_pack.rs), which already builds on parallel workers (corpus_threads / prepare_workers). This PR's sharding only makes sense on top of the pipeline journal and xcl pipelines replay from #758 / #759 / #898, which never landed and now conflict with main. Merging it would add a second, competing preparation path.

Thanks to everyone who tested it (futurepro62, DavidM1911, JJAutoCompare) and to Kalmarv for the warm_once graphics driver-blob fix.

If per-process .done / .trying crash recovery turns out to be missing from pso-precompile, I'll propose it there as a small separate change.

Written with AI assistance (Claude); I reviewed it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7272280434 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1826#issuecomment-7272280434). Originally posted by [VolenNakov](https://github.com/VolenNakov) on 2026-11-30T07:55:23Z. --- Closing this one. `main` has since taken a different route to offline pipeline preparation: `xcl pso-precompile` with the staged corpus (`shaders/pso_corpus.rs`, `warm_replay.rs`, `warm_library.rs`, `warm_pack.rs`), which already builds on parallel workers (`corpus_threads` / `prepare_workers`). This PR's sharding only makes sense on top of the pipeline journal and `xcl pipelines` replay from #758 / #759 / #898, which never landed and now conflict with `main`. Merging it would add a second, competing preparation path. Thanks to everyone who tested it (futurepro62, DavidM1911, JJAutoCompare) and to Kalmarv for the `warm_once` graphics driver-blob fix. If per-process `.done` / `.trying` crash recovery turns out to be missing from `pso-precompile`, I'll propose it there as a small separate change. *Written with AI assistance (Claude); I reviewed it before posting.*

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1816
No description provided.