Recompiler: split wave64 compute groups of several waves across dispatches #2087

Closed
Kalmarv wants to merge 2 commits from upstream-pr/2097 into main
Kalmarv commented 2026-11-25 03:54:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-25T03:54:39Z.


Part of #1269. Two commits on main b49be18: 952e056 (the change) and d98d2d4 (a test by @WebIdentity1).

#2080 splits wave64 programs only when the group is one 64×1×1 wave. In a 120 s title run, the longest cold compute builds are seven cascade-shadow programs with 8×16 and 16×16 groups (2 and 4 wave64s): 70–125k DXIL instructions each, 7–16 s per build, 87.5 s for all seven. They have no guest LDS, barriers or atomics. They are declined only because the wave64-on-wave32 emulation exchanges values between the two halves of each wave through translator-made group-shared counters and slots, and that state has to survive a dispatch boundary. With this change they split like the single-wave case and build in 1.7–2.5 s each.

What is in it

  • crates/xcl/src/gpu/dxil/module/split.rs:
    • Each wave32 half's continuation is indexed by the group's flat logical thread ID, recreated in every piece, so a different hardware wave order in the next dispatch is harmless.
    • A signal and its bounded wait on the partner half always stay in the same piece, because a wait cannot finish if its peer's signal moved to a later dispatch.
    • At each cut, every thread of the group meets at the piece exit and copies the per-half arrival counters and both banks of exchange slots to scratch. This includes threads whose guest path skipped the piece. The next piece restores them before branching. Each console wave keeps its own exchange count, since waves reach a cut at different counts.
    • The exchange state has its own region of the scratch, after #2126's payload slots, indexed by the same flat logical thread ID. #2107's limit for an oversized component applies to a signal and its wait as one unit.
    • Programs that use guest LDS, and partial guest waves, stay on the whole pipeline.
  • docs/wave64-on-wave32.md: describes the above.
  • A GPU test, dispatch_chain_four_wave64s_preserves_partner_epochs. It runs four wave64s in a 16×16 group, where only the odd guest waves do every exchange, across repeated cuts. It compares every output word with the whole shader and a CPU reference. A single common exchange count for all waves would fail it.

Tested

  • Ryzen 9 9950X, RTX 5070 Ti (NVIDIA 610.74), Windows 11 build 26200, release, DXC 1.9.2609.

  • Cold pipeline build (measured on 9498862, before the rebase), the seven cascade-shadow programs as the title emits them (byte-identical to the title's cache), fresh process, caches off; split pieces on 16 threads:

    Program Group Whole Split Pieces Faster
    1e436c8d3fe48b98 8×16 15.06 s 2.33 s 10 6.5×
    7ce8e57c276da3cc 8×16 15.63 s 2.50 s 11 6.2×
    6d1e4583f8129771 16×16 12.16 s 2.01 s 9 6.1×
    7c08ec6429245b8e 16×16 12.72 s 2.46 s 8 5.2×
    da1583f6d86ffae1 16×16 12.65 s 2.09 s 8 6.1×
    6f3a2502a8d6b129 8×16 6.97 s 1.67 s 6 4.2×
    dfdf55272f300cb9 16×16 12.32 s 2.20 s 9 5.6×

    All seven: 87.5 s whole against 15.3 s split, built one program after another. All 61 pieces passed the DXC 1.9 validator.

  • The same seven programs on this head, translated again in a fresh process with an empty translation cache for each: all seven still split, into 58 pieces, and the wholes and all pieces pass the DXC 1.9 validator. Since #2126, every carried value keeps its scratch slots for the whole chain, so these chains need 3.6–6.2× more scratch per group than before:

    Program Pieces Scratch per group Groups per 256 MiB slab Before #2126's slots
    1e436c8d3fe48b98 9 661 KiB 396 2240
    7ce8e57c276da3cc 10 750 KiB 349 2157
    6d1e4583f8129771 9 1367 KiB 191 1144
    7c08ec6429245b8e 8 1065 KiB 246 1125
    da1583f6d86ffae1 8 1046 KiB 250 1110
    6f3a2502a8d6b129 6 323 KiB 811 2912
    dfdf55272f300cb9 8 1011 KiB 259 1175

    On main a chained dispatch now runs in slabs of at most 256 MiB of scratch, with 384 MiB over all recordings, so a large grid takes more slabs rather than falling back to the whole pipeline. In the 120 s XCL_DIRECT_DXIL=1 run of d5c2781 (see Regression run) the title creates these seven pipelines but does not dispatch them (unlike on main, no whole-program driver compile is logged for them, so they took the chain path), so their slab counts on the title's grids are not measured.

  • Two larger cascade-shadow programs that main leaves whole: this head splits 062468c09af883b9 (1.6 MB of DXIL) into 17 pieces of 34–170 KB and 73fb752d7f62c3a5 (1.8 MB) into 19 pieces; the wholes and all pieces pass the DXC 1.9 validator. Cold driver builds of 062468c09af883b9 on the machine under Tested (driver cache disabled, the chain's root signature, one after another in one job, pieces from fb5e73a, this change on the previous main; this head's pieces differ by a few bytes): the 17 pieces take 13.0 s in total and at most 1.43 s each (the others 0.19–0.89 s), against 55.9 s for the whole form in the same job (47.5 s in an earlier job). Builds of the same DXIL vary by 1–17 % within one job, and more between jobs. 73fb752d7f62c3a5 was not timed.

  • Output on the GPU, 6f3a2502a8d6b129 (on 9498862) with a seeded input that reaches its shading store (8×16 group, four hardware waves): the whole and split forms each write 2048 words, 0 different, and both match the expected 256 texels. All six pieces ran (768 invocations against 128). A CPU trace of the signed pieces with their continuation tags shows all 128 lanes doing their work in pieces 1, 2, 4 and 6, and passing through 3 and 5 on the default continuation; the GPU's per-piece times agree (19–20 µs for 3 and 5, 34–418 µs for the others).

  • The new 16×16 test: all 512 output words match the whole shader and the CPU reference.

  • dispatch_chain_exited_waves_preserve_other_waves_3d, a fixture by @WebIdentity1 (comment), test only. In a 16×16 group on a 2×2×2 grid, guest wave 0 returns at once, wave 2 returns after six exchanges, and waves 1 and 3 take different exchange counts. The whole shader and its 4-piece split both match the CPU calculation on all 2048 output words plus 16 guard words.

  • On d5c2781, release, with full validation: cargo test -p xcl --lib --release split: 34 passed, 0 failed, 1 ignored, no skips; ... dispatch_chain: 11 passed, 0 failed, and the one skip is the native wave64 test, which this card cannot run. Run locally in slabs of 1, 2, 3, 5 and 7 groups with main's dispatch_split_by (not part of the commits), both multi-wave tests also match the CPU calculation.

  • Intel Arc A770, measured by @JJAutoCompare (comment) on 9498862: the four-wave test passes, 512 of 512 words for the whole shader and the split chain.

  • AMD RDNA4 (native wave64), measured by @bielfreedom (comment), RX 9070 XT, on eafe39f: no change there, as expected. Of the title's 2,689 compute programs the same 462 split, with the same piece counts as #2080, because wave64 groups compile as native WaveSize(64) and chains are built only for 32-lane hardware waves. The dispatch_chain and split::tests tests pass, 6 of 6, with no skips; they build the split-wave64 form explicitly, so it ran on AMD hardware too.

  • The branch was rebased onto main 0829441, which has #2080, #2107, #2126 and the slab scratch (e9ddf17, 0829441). The conflicts, all in split.rs, were with #2126's fixed payload slots (the exchange region now follows them, and the scratch counts every lane of the group), #2107's limit for an oversized component (it now applies to a signal and its wait as one unit) and the slab constants (the scratch index uses the slab's group, as for every chain). The module comment now describes #2126's slots. 8524858 and d5c2781 are bcde3f0 and 8b2fa0e rebased.

  • Rebased again onto main b49be18, after #2371. There was one conflict, in split.rs where the chain's scratch layout is built: #2371's test-only XCL_SAMPLE_SLOT_REUSE step now runs first, and the exchange region follows the payload slots as before. 952e056 and d98d2d4 are 8524858 and d5c2781 rebased.

  • AMD Radeon RX 9070, regression pair by @Toons29 (comment), Ryzen 7 7800X3D, on c8a6e3f (this branch before the latest rebase), 60 s of a title on the default route: main 568e7db 1566 frames and this PR 1631, peak commit 14592 / 14565 MB, no crash or device removal in either.

  • cargo test --workspace -- --test-threads=4 (debug) on d5c2781: 1274 passed, 0 failed, 46 ignored. 25 SKIPPED notices: no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows.

  • cargo test --workspace --no-fail-fast -- --test-threads=4 (debug, DXC 1.9.2609) on d98d2d4: 1437 passed, 0 failed, 47 ignored. 25 SKIPPED notices: 21 no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows. Both multi-wave tests (dispatch_chain_four_wave64s_preserves_partner_epochs, dispatch_chain_exited_waves_preserve_other_waves_3d) pass.

  • AMD Radeon RX 6600 (RDNA2), warm pair by @thiagocalile (comment) on d5c2781, each side's second run: main 6d12f58 1563 frames and 16162 MB peak commit, this PR 1565 frames and 16751 MB (103.6 %). Their first pair (18573 against 11934 MB) had the PR's side compiling with a cold cache.

Regression run

scripts/smoke.ps1 (60 s), the same retail title, one after the other in one job on the machine under Tested, release builds from clean trees, default route. Both runs ran beside a CPU-bound precompile on the same machine (another job of ours, about 40 % CPU and no GPU load), which ran through both of them.

main b49be18:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1259 (PresentX 1260)
presents per 2 s (last 3): 4 15 40
device removals: 0
crashes: 0
peak commit: 25616 MB

this PR, d98d2d4:

xcl-smoke v1
commit: d98d2d46131c92b3fc950da9a0ec7ae228eef8ed
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1281 (PresentX 1282)
presents per 2 s (last 3): 5 14 37
device removals: 0
crashes: 0
peak commit: 25422 MB

PR vs main: 1281 / 1259 frames (102 %), peak commit 25422 / 25616 MB (99 %); device removals 0 and crashes 0 on both runs. On the default route neither run splits a program (compute split: 0 programs split), so this pair is a regression check only. On the previous head d5c2781 with XCL_DIRECT_DXIL=1 (120 s against main 0829441), the PR run logged 130 programs split and 154 chained dispatches against main's 81 and 52, with 1490 / 1318 frames (113 %) and 30484 / 29999 MB peak commit (102 %). Its largest chained dispatch needed 1456 MiB of scratch and ran in 6 slabs of 256 MiB. A third run of that head with a local debug line, not part of the PR, logged each chained program's first dispatch: 9 programs, none of them one of the seven cascade-shadow programs.

With XCL_DIRECT_DXIL=1 (the split path), same machine, title and length, one after the other in one job. Each exe had one run on this route just before (a warm-up pair), so this is the second run of each. Two other test jobs of ours ran beside both runs; a third ended 15 s into main's run.

main b49be18:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1432 (PresentX 1432)
presents per 2 s (last 3): 47 44 23
device removals: 0
crashes: 0
peak commit: 20064 MB

this PR, d98d2d4:

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

PR vs main: 1428 / 1432 frames (99.7 %), peak commit 18002 / 20064 MB (90 %); device removals 0 and crashes 0 on both runs. At 60 s the PR run logged compute split: 163 programs split, 1695 pieces built, 0 chained dispatches issued in 0 slabs and main logged 117 programs split, 1255 pieces built, 0 chained dispatches. In the warm-up pair just before it, the PR issued 9 chained dispatches in 9 slabs (2 MiB of scratch) and main none, with 1262 / 1342 frames and 24623 / 23721 MB peak commit.

Not tested

  • AMD, native wave64 on hardware, Linux.
  • Output of the other six cascade-shadow programs on the GPU, and output on captured title inputs.
  • The seven cascade-shadow chains on the title's own grids: the 120 s XCL_DIRECT_DXIL=1 run on d5c2781 creates them but does not dispatch them.
  • Chained dispatches in the title on d98d2d4: in the 60 s XCL_DIRECT_DXIL=1 pair under Regression run the PR builds 46 more split programs than main but issues no chained dispatch (9 in the warm-up pair before it).
  • The cold build times on this head's pieces (the table above is from 9498862).
  • GPU time under controlled clocks. On the input above, at unlocked clocks, the split took 894 µs against 711 µs whole (9 runs, indicative only).

AI use

OpenAI Codex (GPT-6) wrote the change and the test. Claude Code (Claude Opus 5.5) helpers ran the driver timings, GPU checks, the suite and the smoke pair, and did the rebase onto b49be18; Claude Code wrote this description and opened the PR.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5484869768 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-25T03:54:39Z. --- Part of #1269. Two commits on `main` `b49be18`: `952e056` (the change) and `d98d2d4` (a test by @WebIdentity1). #2080 splits wave64 programs only when the group is one 64×1×1 wave. In a 120 s title run, the longest cold compute builds are seven cascade-shadow programs with 8×16 and 16×16 groups (2 and 4 wave64s): 70–125k DXIL instructions each, 7–16 s per build, 87.5 s for all seven. They have no guest LDS, barriers or atomics. They are declined only because the wave64-on-wave32 emulation exchanges values between the two halves of each wave through translator-made group-shared counters and slots, and that state has to survive a dispatch boundary. With this change they split like the single-wave case and build in 1.7–2.5 s each. **What is in it** - `crates/xcl/src/gpu/dxil/module/split.rs`: - Each wave32 half's continuation is indexed by the group's flat logical thread ID, recreated in every piece, so a different hardware wave order in the next dispatch is harmless. - A signal and its bounded wait on the partner half always stay in the same piece, because a wait cannot finish if its peer's signal moved to a later dispatch. - At each cut, every thread of the group meets at the piece exit and copies the per-half arrival counters and both banks of exchange slots to scratch. This includes threads whose guest path skipped the piece. The next piece restores them before branching. Each console wave keeps its own exchange count, since waves reach a cut at different counts. - The exchange state has its own region of the scratch, after #2126's payload slots, indexed by the same flat logical thread ID. #2107's limit for an oversized component applies to a signal and its wait as one unit. - Programs that use guest LDS, and partial guest waves, stay on the whole pipeline. - `docs/wave64-on-wave32.md`: describes the above. - A GPU test, `dispatch_chain_four_wave64s_preserves_partner_epochs`. It runs four wave64s in a 16×16 group, where only the odd guest waves do every exchange, across repeated cuts. It compares every output word with the whole shader and a CPU reference. A single common exchange count for all waves would fail it. **Tested** - Ryzen 9 9950X, RTX 5070 Ti (NVIDIA 610.74), Windows 11 build 26200, release, DXC 1.9.2609. - **Cold pipeline build** (measured on `9498862`, before the rebase), the seven cascade-shadow programs as the title emits them (byte-identical to the title's cache), fresh process, caches off; split pieces on 16 threads: | Program | Group | Whole | Split | Pieces | Faster | |---|---|---|---|---|---| | 1e436c8d3fe48b98 | 8×16 | 15.06 s | 2.33 s | 10 | 6.5× | | 7ce8e57c276da3cc | 8×16 | 15.63 s | 2.50 s | 11 | 6.2× | | 6d1e4583f8129771 | 16×16 | 12.16 s | 2.01 s | 9 | 6.1× | | 7c08ec6429245b8e | 16×16 | 12.72 s | 2.46 s | 8 | 5.2× | | da1583f6d86ffae1 | 16×16 | 12.65 s | 2.09 s | 8 | 6.1× | | 6f3a2502a8d6b129 | 8×16 | 6.97 s | 1.67 s | 6 | 4.2× | | dfdf55272f300cb9 | 16×16 | 12.32 s | 2.20 s | 9 | 5.6× | All seven: 87.5 s whole against 15.3 s split, built one program after another. All 61 pieces passed the DXC 1.9 validator. - **The same seven programs on this head**, translated again in a fresh process with an empty translation cache for each: all seven still split, into 58 pieces, and the wholes and all pieces pass the DXC 1.9 validator. Since #2126, every carried value keeps its scratch slots for the whole chain, so these chains need 3.6–6.2× more scratch per group than before: | Program | Pieces | Scratch per group | Groups per 256 MiB slab | Before #2126's slots | |---|---|---|---|---| | 1e436c8d3fe48b98 | 9 | 661 KiB | 396 | 2240 | | 7ce8e57c276da3cc | 10 | 750 KiB | 349 | 2157 | | 6d1e4583f8129771 | 9 | 1367 KiB | 191 | 1144 | | 7c08ec6429245b8e | 8 | 1065 KiB | 246 | 1125 | | da1583f6d86ffae1 | 8 | 1046 KiB | 250 | 1110 | | 6f3a2502a8d6b129 | 6 | 323 KiB | 811 | 2912 | | dfdf55272f300cb9 | 8 | 1011 KiB | 259 | 1175 | On `main` a chained dispatch now runs in slabs of at most 256 MiB of scratch, with 384 MiB over all recordings, so a large grid takes more slabs rather than falling back to the whole pipeline. In the 120 s `XCL_DIRECT_DXIL=1` run of `d5c2781` (see **Regression run**) the title creates these seven pipelines but does not dispatch them (unlike on `main`, no whole-program driver compile is logged for them, so they took the chain path), so their slab counts on the title's grids are not measured. - **Two larger cascade-shadow programs** that `main` leaves whole: this head splits 062468c09af883b9 (1.6 MB of DXIL) into 17 pieces of 34–170 KB and 73fb752d7f62c3a5 (1.8 MB) into 19 pieces; the wholes and all pieces pass the DXC 1.9 validator. Cold driver builds of 062468c09af883b9 on the machine under **Tested** (driver cache disabled, the chain's root signature, one after another in one job, pieces from `fb5e73a`, this change on the previous `main`; this head's pieces differ by a few bytes): the 17 pieces take 13.0 s in total and at most 1.43 s each (the others 0.19–0.89 s), against 55.9 s for the whole form in the same job (47.5 s in an earlier job). Builds of the same DXIL vary by 1–17 % within one job, and more between jobs. 73fb752d7f62c3a5 was not timed. - **Output on the GPU, 6f3a2502a8d6b129** (on `9498862`) with a seeded input that reaches its shading store (8×16 group, four hardware waves): the whole and split forms each write 2048 words, 0 different, and both match the expected 256 texels. All six pieces ran (768 invocations against 128). A CPU trace of the signed pieces with their continuation tags shows all 128 lanes doing their work in pieces 1, 2, 4 and 6, and passing through 3 and 5 on the default continuation; the GPU's per-piece times agree (19–20 µs for 3 and 5, 34–418 µs for the others). - The new 16×16 test: all 512 output words match the whole shader and the CPU reference. - `dispatch_chain_exited_waves_preserve_other_waves_3d`, a fixture by @WebIdentity1 ([comment](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7152422936)), test only. In a 16×16 group on a 2×2×2 grid, guest wave 0 returns at once, wave 2 returns after six exchanges, and waves 1 and 3 take different exchange counts. The whole shader and its 4-piece split both match the CPU calculation on all 2048 output words plus 16 guard words. - On `d5c2781`, release, with full validation: `cargo test -p xcl --lib --release split`: 34 passed, 0 failed, 1 ignored, no skips; `... dispatch_chain`: 11 passed, 0 failed, and the one skip is the native wave64 test, which this card cannot run. Run locally in slabs of 1, 2, 3, 5 and 7 groups with `main`'s `dispatch_split_by` (not part of the commits), both multi-wave tests also match the CPU calculation. - **Intel Arc A770, measured by @JJAutoCompare** ([comment](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7152524186)) on `9498862`: the four-wave test passes, 512 of 512 words for the whole shader and the split chain. - **AMD RDNA4 (native wave64), measured by @bielfreedom** ([comment](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7155574174)), RX 9070 XT, on `eafe39f`: no change there, as expected. Of the title's 2,689 compute programs the same 462 split, with the same piece counts as #2080, because wave64 groups compile as native `WaveSize(64)` and chains are built only for 32-lane hardware waves. The `dispatch_chain` and `split::tests` tests pass, 6 of 6, with no skips; they build the split-wave64 form explicitly, so it ran on AMD hardware too. - The branch was rebased onto `main` `0829441`, which has #2080, #2107, #2126 and the slab scratch (`e9ddf17`, `0829441`). The conflicts, all in `split.rs`, were with #2126's fixed payload slots (the exchange region now follows them, and the scratch counts every lane of the group), #2107's limit for an oversized component (it now applies to a signal and its wait as one unit) and the slab constants (the scratch index uses the slab's group, as for every chain). The module comment now describes #2126's slots. `8524858` and `d5c2781` are `bcde3f0` and `8b2fa0e` rebased. - Rebased again onto `main` `b49be18`, after #2371. There was one conflict, in `split.rs` where the chain's scratch layout is built: #2371's test-only `XCL_SAMPLE_SLOT_REUSE` step now runs first, and the exchange region follows the payload slots as before. `952e056` and `d98d2d4` are `8524858` and `d5c2781` rebased. - **AMD Radeon RX 9070, regression pair by @Toons29** ([comment](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7161036769)), Ryzen 7 7800X3D, on `c8a6e3f` (this branch before the latest rebase), 60 s of a title on the default route: `main` `568e7db` 1566 frames and this PR 1631, peak commit 14592 / 14565 MB, no crash or device removal in either. - `cargo test --workspace -- --test-threads=4` (debug) on `d5c2781`: 1274 passed, 0 failed, 46 ignored. 25 SKIPPED notices: no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows. - `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug, DXC 1.9.2609) on `d98d2d4`: 1437 passed, 0 failed, 47 ignored. 25 SKIPPED notices: 21 no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows. Both multi-wave tests (`dispatch_chain_four_wave64s_preserves_partner_epochs`, `dispatch_chain_exited_waves_preserve_other_waves_3d`) pass. - **AMD Radeon RX 6600 (RDNA2), warm pair by @thiagocalile** ([comment](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7173386675)) on `d5c2781`, each side's second run: `main` `6d12f58` 1563 frames and 16162 MB peak commit, this PR 1565 frames and 16751 MB (103.6 %). Their first pair (18573 against 11934 MB) had the PR's side compiling with a cold cache. **Regression run** `scripts/smoke.ps1` (60 s), the same retail title, one after the other in one job on the machine under **Tested**, release builds from clean trees, default route. Both runs ran beside a CPU-bound precompile on the same machine (another job of ours, about 40 % CPU and no GPU load), which ran through both of them. `main` `b49be18`: ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1259 (PresentX 1260) presents per 2 s (last 3): 4 15 40 device removals: 0 crashes: 0 peak commit: 25616 MB ``` this PR, `d98d2d4`: ``` xcl-smoke v1 commit: d98d2d46131c92b3fc950da9a0ec7ae228eef8ed gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1281 (PresentX 1282) presents per 2 s (last 3): 5 14 37 device removals: 0 crashes: 0 peak commit: 25422 MB ``` PR vs `main`: 1281 / 1259 frames (102 %), peak commit 25422 / 25616 MB (99 %); device removals 0 and crashes 0 on both runs. On the default route neither run splits a program (`compute split: 0 programs split`), so this pair is a regression check only. On the previous head `d5c2781` with `XCL_DIRECT_DXIL=1` (120 s against `main` `0829441`), the PR run logged 130 programs split and 154 chained dispatches against `main`'s 81 and 52, with 1490 / 1318 frames (113 %) and 30484 / 29999 MB peak commit (102 %). Its largest chained dispatch needed 1456 MiB of scratch and ran in 6 slabs of 256 MiB. A third run of that head with a local debug line, not part of the PR, logged each chained program's first dispatch: 9 programs, none of them one of the seven cascade-shadow programs. **With `XCL_DIRECT_DXIL=1`** (the split path), same machine, title and length, one after the other in one job. Each exe had one run on this route just before (a warm-up pair), so this is the second run of each. Two other test jobs of ours ran beside both runs; a third ended 15 s into `main`'s run. `main` `b49be18`: ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1432 (PresentX 1432) presents per 2 s (last 3): 47 44 23 device removals: 0 crashes: 0 peak commit: 20064 MB ``` this PR, `d98d2d4`: ``` xcl-smoke v1 commit: d98d2d46131c92b3fc950da9a0ec7ae228eef8ed gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1428 (PresentX 1428) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 18002 MB ``` PR vs `main`: 1428 / 1432 frames (99.7 %), peak commit 18002 / 20064 MB (90 %); device removals 0 and crashes 0 on both runs. At 60 s the PR run logged `compute split: 163 programs split, 1695 pieces built, 0 chained dispatches issued in 0 slabs` and `main` logged `117 programs split, 1255 pieces built, 0 chained dispatches`. In the warm-up pair just before it, the PR issued 9 chained dispatches in 9 slabs (2 MiB of scratch) and `main` none, with 1262 / 1342 frames and 24623 / 23721 MB peak commit. **Not tested** - AMD, native wave64 on hardware, Linux. - Output of the other six cascade-shadow programs on the GPU, and output on captured title inputs. - The seven cascade-shadow chains on the title's own grids: the 120 s `XCL_DIRECT_DXIL=1` run on `d5c2781` creates them but does not dispatch them. - Chained dispatches in the title on `d98d2d4`: in the 60 s `XCL_DIRECT_DXIL=1` pair under **Regression run** the PR builds 46 more split programs than `main` but issues no chained dispatch (9 in the warm-up pair before it). - The cold build times on this head's pieces (the table above is from `9498862`). - GPU time under controlled clocks. On the input above, at unlocked clocks, the split took 894 µs against 711 µs whole (9 runs, indicative only). **AI use** OpenAI Codex (GPT-6) wrote the change and the test. Claude Code (Claude Opus 5.5) helpers ran the driver timings, GPU checks, the suite and the smoke pair, and did the rebase onto `b49be18`; Claude Code wrote this description and opened the PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
JJAutoCompare commented 2026-11-25 04:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:05:45Z.


Intel Arc A770 verification for XCL PR #2097

Tested

  • PR #2097 was open at 9498862415d1bbbd219f3d0fcf92936f297087a4 before and after the run. The existing worktree was clean and detached at that SHA. I read AGENTS.md and CONTRIBUTING.md and confirmed both matched upstream main cbc296ab65a2661a61e3e2da109134bcd5319f60. The live T3 thread list, PR discussion and reviews, and issues #42, #1269, and #2088 showed no equivalent same-head A770 result. The PR discussion did have an RTX 3090 report.
  • STOR-WINLAB ran Windows 11 Enterprise Evaluation 25H2 build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, and Rust/Cargo 1.100.0 on x86_64-pc-windows-msvc. Cargo used the unoptimized test profile with debuginfo disabled. The fixture logged DXC 1.9.2609.5 (01b62ad4) and DXIL 1.9.2609.5 from XCL_DXC_DIR.
  • The prebuild ran outside the GPU mutex and exited 0 in 49.24 s with two fetch_update deprecation warnings.
$env:CARGO_TARGET_DIR = 'L:/XclTooling/pr1512-tiling-edges-fddfa267/target'
$env:CARGO_BUILD_JOBS = '2'
$env:CARGO_INCREMENTAL = '0'
$env:CARGO_PROFILE_DEV_DEBUG = '0'
$env:CARGO_PROFILE_TEST_DEBUG = '0'
$env:TEMP = 'L:/XclTooling/pr2097/run-20261125T040217981Z/temp'
$env:TMP = $env:TEMP
$env:XCL_ADAPTER = 'A770'
$env:XCL_DXC_DIR = Join-Path $env:LOCALAPPDATA 'XclTooling/dxc-1.9.2609/bin/x64'
cargo test --locked -p xcl --lib --no-run

The GPU command ran in a fresh powershell.exe -NoProfile -ExecutionPolicy RemoteSigned process. Within the wrapper, System.Diagnostics.Process ran the following executable and arguments, captured stdout and stderr separately, and passed the child exit status to the wrapper.

$exe = 'L:/XclTooling/pr1512-tiling-edges-fddfa267/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe'
& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test {
    & $exe gpu::dxil::module::split::tests::dispatch_chain_four_wave64s_preserves_partner_epochs --exact --nocapture --test-threads=1
}
  • 1 passed, 0 failed, 0 ignored, 0 explicit skips, 1126 filtered out. The harness reported 0.78 s. The child and GPU wrapper both exited 0. The wrapper logged GPU lock release and completed at 2026-11-25T05:04:09.3691366+01:00. The exclusive Cargo target slot is released. Separate stdout, stderr, and exit status files are beside this report.
  • Two 16 × 16 × 1 groups ran four logical wave64s per group, each split into two 32-lane hardware waves. The fixture requires wave32 support and emits wave size 32 for the whole shader and every piece of the direct-DXIL chain. It asserts at least three pieces. All 512 output words from the whole GPU dispatch matched the CPU reference, and all 512 from the split chain matched the whole GPU dispatch.
  • For output index i (zero-based), the CPU reference starts at i + 1. With tid = i % 256, it adds ((tid / 32) ^ 1) + round for each exchange from rounds 1 through 12. Odd guest waves take all 12 rounds. Even guest waves take the six even rounds. This checks that the partner exchange and live accumulator survive the dispatch cuts when different guest waves reach them with different exchange counts.

Not tested

Other fixtures, workspace suite, retail-title smoke, real-title shader output, cold pipeline timing, other adapters and drivers, native wave64, and the HLSL backend.

AI use

T3 Code / Codex (gpt-6.2-sol) verified the PR and worktree, ran the stock fixture, and wrote this report.


Tested — follow-up at d98d2d46131c92b3fc950da9a0ec7ae228eef8ed

Clean exact head on native Windows 11 25H2 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 (PCI 8086:56a0, driver 32.0.101.9175), Rust 1.100.1 MSVC debug, and DXC/DXIL 1.9.2609.5. I reran the pinned stock libtest with XCL_ADAPTER=A770 and <libtest.exe> --exact <test> --nocapture --test-threads=1 under the shared Arc lock.

  • gpu::dxil::module::split::tests::dispatch_chain_exited_waves_preserve_other_waves_3d ran a 2×2×2 grid of 16×16×1 groups with four guest wave64s per group on paired hardware wave32s. Both the whole and split GPU forms matched the CPU reference on all 2,048 lane outputs and 16 guards per form. The split chain had 4 pieces and 7,424 scratch DWORDs per group.
  • gpu::dxil::module::split::tests::dispatch_chain_four_wave64s_preserves_partner_epochs used the same group shape on a 2×1×1 grid with uneven exchange counts. All 512 whole-form output words matched the CPU reference, and all 512 split-form words matched the whole output.

2 passed, 0 failed, 0 ignored, 0 runtime skips. Both native processes and the Arc wrapper exited 0. The lock released and the executable hash matched before, during and after the run.

Not tested

Native wave64, forced multi-slab dispatch, production PSO selection, retail titles or captured title shaders, other adapters, performance, and the full suite.

AI use

T3 Code through the Codex harness (gpt-6.2-sol) verified the pinned executable and adapter, ran the fixtures and wrote this follow-up.

<!-- greyfinch-sync:ivall/xcl:comment:7152524186 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7152524186). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T04:05:45Z. --- # Intel Arc A770 verification for XCL PR #2097 **Tested** - [PR #2097](https://github.com/xcl-dev/xcl/pull/2097) was open at `9498862415d1bbbd219f3d0fcf92936f297087a4` before and after the run. The existing worktree was clean and detached at that SHA. I read `AGENTS.md` and `CONTRIBUTING.md` and confirmed both matched upstream main `cbc296ab65a2661a61e3e2da109134bcd5319f60`. The live T3 thread list, PR discussion and reviews, and issues #42, #1269, and #2088 showed no equivalent same-head A770 result. The PR discussion did have an RTX 3090 report. - STOR-WINLAB ran Windows 11 Enterprise Evaluation 25H2 build `26200.9974`, AMD Ryzen 7 3800X, Intel Arc A770 driver `32.0.101.9175`, and Rust/Cargo `1.100.0` on `x86_64-pc-windows-msvc`. Cargo used the unoptimized test profile with debuginfo disabled. The fixture logged DXC `1.9.2609.5` (`01b62ad4`) and DXIL `1.9.2609.5` from `XCL_DXC_DIR`. - The prebuild ran outside the GPU mutex and exited 0 in 49.24 s with two `fetch_update` deprecation warnings. ```powershell $env:CARGO_TARGET_DIR = 'L:/XclTooling/pr1512-tiling-edges-fddfa267/target' $env:CARGO_BUILD_JOBS = '2' $env:CARGO_INCREMENTAL = '0' $env:CARGO_PROFILE_DEV_DEBUG = '0' $env:CARGO_PROFILE_TEST_DEBUG = '0' $env:TEMP = 'L:/XclTooling/pr2097/run-20261125T040217981Z/temp' $env:TMP = $env:TEMP $env:XCL_ADAPTER = 'A770' $env:XCL_DXC_DIR = Join-Path $env:LOCALAPPDATA 'XclTooling/dxc-1.9.2609/bin/x64' cargo test --locked -p xcl --lib --no-run ``` The GPU command ran in a fresh `powershell.exe -NoProfile -ExecutionPolicy RemoteSigned` process. Within the wrapper, `System.Diagnostics.Process` ran the following executable and arguments, captured stdout and stderr separately, and passed the child exit status to the wrapper. ```powershell $exe = 'L:/XclTooling/pr1512-tiling-edges-fddfa267/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { & $exe gpu::dxil::module::split::tests::dispatch_chain_four_wave64s_preserves_partner_epochs --exact --nocapture --test-threads=1 } ``` - 1 passed, 0 failed, 0 ignored, 0 explicit skips, 1126 filtered out. The harness reported 0.78 s. The child and GPU wrapper both exited 0. The wrapper logged GPU lock release and completed at `2026-11-25T05:04:09.3691366+01:00`. The exclusive Cargo target slot is released. Separate stdout, stderr, and exit status files are beside this report. - Two `16 × 16 × 1` groups ran four logical wave64s per group, each split into two 32-lane hardware waves. The fixture requires wave32 support and emits wave size 32 for the whole shader and every piece of the direct-DXIL chain. It asserts at least three pieces. All **512 output words** from the whole GPU dispatch matched the CPU reference, and all **512** from the split chain matched the whole GPU dispatch. - For output index `i` (zero-based), the CPU reference starts at `i + 1`. With `tid = i % 256`, it adds `((tid / 32) ^ 1) + round` for each exchange from rounds 1 through 12. Odd guest waves take all 12 rounds. Even guest waves take the six even rounds. This checks that the partner exchange and live accumulator survive the dispatch cuts when different guest waves reach them with different exchange counts. **Not tested** Other fixtures, workspace suite, retail-title smoke, real-title shader output, cold pipeline timing, other adapters and drivers, native wave64, and the HLSL backend. **AI use** T3 Code / Codex (`gpt-6.2-sol`) verified the PR and worktree, ran the stock fixture, and wrote this report. --- **Tested — follow-up at `d98d2d46131c92b3fc950da9a0ec7ae228eef8ed`** Clean exact head on native Windows 11 25H2 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 (PCI `8086:56a0`, driver `32.0.101.9175`), Rust 1.100.1 MSVC debug, and DXC/DXIL 1.9.2609.5. I reran the pinned stock libtest with `XCL_ADAPTER=A770` and `<libtest.exe> --exact <test> --nocapture --test-threads=1` under the shared Arc lock. - `gpu::dxil::module::split::tests::dispatch_chain_exited_waves_preserve_other_waves_3d` ran a `2×2×2` grid of `16×16×1` groups with four guest wave64s per group on paired hardware wave32s. Both the whole and split GPU forms matched the CPU reference on all **2,048 lane outputs and 16 guards** per form. The split chain had **4 pieces and 7,424 scratch DWORDs per group**. - `gpu::dxil::module::split::tests::dispatch_chain_four_wave64s_preserves_partner_epochs` used the same group shape on a `2×1×1` grid with uneven exchange counts. All **512** whole-form output words matched the CPU reference, and all **512** split-form words matched the whole output. **2 passed, 0 failed, 0 ignored, 0 runtime skips.** Both native processes and the Arc wrapper exited 0. The lock released and the executable hash matched before, during and after the run. **Not tested** Native wave64, forced multi-slab dispatch, production PSO selection, retail titles or captured title shaders, other adapters, performance, and the full suite. **AI use** T3 Code through the Codex harness (`gpt-6.2-sol`) verified the pinned executable and adapter, ran the fixtures and wrote this follow-up.
WebIdentity1 commented 2026-11-25 04:10:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WebIdentity1 on 2026-11-25T03:59:14Z.


Native Ampere check of 9498862415d1bbbd219f3d0fcf92936f297087a4: the three existing chain tests and a new whole-guest-wave early-exit case pass. No runtime defect found in these cases. The attached test exercises participation in the new group-wide checkpoint barriers after guest waves return.

Tested

  • Windows 10 Home 19045, Ryzen 7 7800X3D, RTX 3090 driver 591.74 / 32.0.15.9174, Rust/Cargo 1.98.1 MSVC, DXC/DXIL 1.8.2502.11, debug. Actual selected adapter printed NVIDIA GeForce RTX 3090.
  • XCL_ADAPTER=3090, XCL_DIRECT_COMPACT=0; XCL_REQUIRE_GPU, XCL_DIRECT_DXIL, XCL_SPLIT_WAVE64 unset.
  • cargo test --locked -p xcl --lib -- gpu::dxil::module::split::tests::dispatch_chain --test-threads=1 --nocapture: 4 passed / 0 failed / 0 ignored, zero SKIPPED notices, exit 0. Recompiled in 37.94s; harness 1.02s. These are harness timings, not pipeline-performance measurements.
  • New fixture: 16×16 group (four guest wave64s), grid (2,2,2). Guest wave 0 returns immediately, wave 2 returns after six exchanges, wave 1 takes only even-numbered exchanges, wave 3 takes all 12. Per-group/lane inputs differ. The whole shader and five-piece split chain both match the CPU calculation on all 2048 output words plus 16 tail guards. The plan requests 4096 scratch dwords/group, or 128 KiB for this grid; this is the plan's storage requirement, not measured peak GPU memory.
  • Existing author fixtures also pass: 96 words for native-wave 32 loops, 192 for single split-wave64 loops/exchange, 512 for four-wave partner epochs. All compare whole/split output with CPU expectations.
  • Only the attached test differs from the author head. All 324 source hashes matched before/after and the local snapshot.

Not tested: real title inputs or retail smoke, full workspace suite, native wave64, AMD/Intel, production D3D12.X chain allocation/lifetimes or ExecuteIndirect, arbitrary per-lane exits within a guest wave, cold driver compilation or GPU throughput. This tests the synthetic module/runner path on Ampere, not game compatibility. The original #2080 forward-edge test remains a result of its older exact snapshot.

AI use: Codex (GPT-6) inspected the change, wrote the new fixture, ran native verification and prepared this report.

Portable test-only patch on 9498862
diff --git a/crates/xcl/src/gpu/dxil/module/split.rs b/crates/xcl/src/gpu/dxil/module/split.rs
index 605b8c6..55440f3 100644
--- a/crates/xcl/src/gpu/dxil/module/split.rs
+++ b/crates/xcl/src/gpu/dxil/module/split.rs
@@ -757,6 +757,91 @@ mod tests {
         assert_eq!(runner::dispatch_split(&chain, groups, &input).unwrap(), reference);
     }
 
+    /// Guest waves that returned still participate in the checkpoint rendezvous
+    /// while other waves keep advancing their partner counters and slot banks.
+    #[test]
+    fn dispatch_chain_exited_waves_preserve_other_waves_3d() {
+        if !runner::wave32_supported().unwrap_or(false) {
+            runner::skip_test("no wave32 GPU");
+            return;
+        }
+        println!("CHAIN_EXIT_GPU={}", runner::adapter().unwrap());
+        let geometry = [16, 16, 1];
+        let cs = CsInterface { threads: geometry, ..Default::default() };
+        let options = KernelOptions { wave64: true, split: true, mem_windows: 1, sampler_base: 0 };
+        let mut lw = Lw::new(&[], &Default::default(), options, &Entry::Compute(cs));
+        let (tid, _) = lw.setup_lanes_compute(geometry, false);
+        let half = lw.lshrc(tid, 5);
+        let wave = lw.lshrc(tid, 6);
+        let [x, y, z] = [0, 1, 2].map(|axis| lw.s.group_id(axis));
+        let z = lw.shlc(z, 1);
+        let row = lw.add(z, y);
+        let row = lw.shlc(row, 1);
+        let group = lw.add(row, x);
+        let base = lw.shlc(group, 8);
+        let index = lw.add(base, tid);
+        let addr = lw.shlc(index, 2);
+        let mem = lw.mems[0];
+        let initial = lw.s.raw_load(mem, addr, 1)[0];
+        let acc = lw.tmp_var();
+        lw.wr(acc, initial);
+        let not_second_wave = lw.cmpc(Pred::Ne, wave, 1);
+        for round in 1..=12 {
+            if round == 1 || round == 7 {
+                let exit = lw.block(Some(1));
+                let live = lw.block(Some(1));
+                let stops = lw.cmpc(Pred::Eq, wave, if round == 1 { 0 } else { 2 });
+                lw.cond_br(stops, exit, live);
+                lw.s.m.set_block(exit);
+                let old = lw.rd(acc);
+                let value = if round == 1 { lw.addc(old, 100_000) } else { old };
+                lw.s.raw_store(mem, addr, &[value]);
+                lw.s.m.ret();
+                lw.s.m.set_block(live);
+            }
+            let mut exchange = |lw: &mut Lw| {
+                let payload = lw.addc(half, round);
+                let peer = lw.exchange(payload);
+                let old = lw.rd(acc);
+                let value = lw.add(old, peer);
+                lw.wr(acc, value);
+                Ok(())
+            };
+            if round % 2 == 1 { lw.guarded(not_second_wave, &mut exchange).unwrap(); }
+            else { exchange(&mut lw).unwrap(); }
+            let next = lw.block(Some(1));
+            lw.br(next);
+            lw.s.m.set_block(next);
+        }
+        let value = lw.rd(acc);
+        lw.s.raw_store(mem, addr, &[value]);
+        lw.s.m.ret();
+        lw.s.m.optimize();
+        let chain = lw.s.split_compute(geometry, Some(tid), 160).expect("split with exited guest waves");
+        assert!(chain.pieces.len() >= 3);
+        let whole = lw.s.finish_optimized(geometry, Some(32)).unwrap();
+        crate::gpu::dxil::validate::validate(&whole).expect("valid whole shader");
+        let input: Vec<_> = (0..2064u32).map(|i| if i < 2048 { i + 17 } else { 0xdeadbeef }).collect();
+        let expected: Vec<_> = input.iter().enumerate().map(|(i, &v)| {
+            if i >= 2048 { return v; }
+            let tid = i as u32 % 256;
+            let peer = (tid / 32) ^ 1;
+            match tid / 64 {
+                0 => v + 100_000,
+                1 => v + 6 * peer + 42,
+                2 => v + 6 * peer + 21,
+                _ => v + 12 * peer + 78,
+            }
+        }).collect();
+        println!("CHAIN_EXIT_STAGE whole pieces={} scratch_dwords_per_group={}", chain.pieces.len(), chain.dwords_per_group);
+        let reference = runner::dispatch(&whole, [2, 2, 2], &[], &input).unwrap();
+        assert_eq!(reference, expected, "whole program CPU oracle");
+        println!("CHAIN_EXIT_STAGE split");
+        let result = runner::dispatch_split(&chain, [2, 2, 2], &input).unwrap();
+        assert_eq!(result, expected, "split program CPU oracle");
+        println!("CHAIN_EXIT checked_words=2048 guards=16 pieces={} scratch_dwords_per_group={}", chain.pieces.len(), chain.dwords_per_group);
+    }
+
     #[test]
     fn dispatch_chain_wave32_live_loops() { compare(32); }
 
<!-- greyfinch-sync:ivall/xcl:comment:7152422936 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7152422936). Originally posted by [WebIdentity1](https://github.com/WebIdentity1) on 2026-11-25T03:59:14Z. --- Native Ampere check of `9498862415d1bbbd219f3d0fcf92936f297087a4`: the three existing chain tests and a new whole-guest-wave early-exit case pass. No runtime defect found in these cases. The attached test exercises participation in the new group-wide checkpoint barriers after guest waves return. **Tested** - Windows 10 Home 19045, Ryzen 7 7800X3D, RTX 3090 driver 591.74 / 32.0.15.9174, Rust/Cargo 1.98.1 MSVC, DXC/DXIL 1.8.2502.11, debug. Actual selected adapter printed NVIDIA GeForce RTX 3090. - `XCL_ADAPTER=3090`, `XCL_DIRECT_COMPACT=0`; `XCL_REQUIRE_GPU`, `XCL_DIRECT_DXIL`, `XCL_SPLIT_WAVE64` unset. - `cargo test --locked -p xcl --lib -- gpu::dxil::module::split::tests::dispatch_chain --test-threads=1 --nocapture`: **4 passed / 0 failed / 0 ignored**, zero SKIPPED notices, exit 0. Recompiled in 37.94s; harness 1.02s. These are harness timings, not pipeline-performance measurements. - New fixture: 16×16 group (four guest wave64s), grid `(2,2,2)`. Guest wave 0 returns immediately, wave 2 returns after six exchanges, wave 1 takes only even-numbered exchanges, wave 3 takes all 12. Per-group/lane inputs differ. The whole shader and five-piece split chain both match the CPU calculation on **all 2048 output words plus 16 tail guards**. The plan requests 4096 scratch dwords/group, or 128 KiB for this grid; this is the plan's storage requirement, not measured peak GPU memory. - Existing author fixtures also pass: 96 words for native-wave 32 loops, 192 for single split-wave64 loops/exchange, 512 for four-wave partner epochs. All compare whole/split output with CPU expectations. - Only the attached test differs from the author head. All 324 source hashes matched before/after and the local snapshot. **Not tested:** real title inputs or retail smoke, full workspace suite, native wave64, AMD/Intel, production D3D12.X chain allocation/lifetimes or ExecuteIndirect, arbitrary per-lane exits within a guest wave, cold driver compilation or GPU throughput. This tests the synthetic module/runner path on Ampere, not game compatibility. The original #2080 forward-edge test remains a result of its older exact snapshot. **AI use:** Codex (GPT-6) inspected the change, wrote the new fixture, ran native verification and prepared this report. <details> <summary>Portable test-only patch on 9498862</summary> ```diff diff --git a/crates/xcl/src/gpu/dxil/module/split.rs b/crates/xcl/src/gpu/dxil/module/split.rs index 605b8c6..55440f3 100644 --- a/crates/xcl/src/gpu/dxil/module/split.rs +++ b/crates/xcl/src/gpu/dxil/module/split.rs @@ -757,6 +757,91 @@ mod tests { assert_eq!(runner::dispatch_split(&chain, groups, &input).unwrap(), reference); } + /// Guest waves that returned still participate in the checkpoint rendezvous + /// while other waves keep advancing their partner counters and slot banks. + #[test] + fn dispatch_chain_exited_waves_preserve_other_waves_3d() { + if !runner::wave32_supported().unwrap_or(false) { + runner::skip_test("no wave32 GPU"); + return; + } + println!("CHAIN_EXIT_GPU={}", runner::adapter().unwrap()); + let geometry = [16, 16, 1]; + let cs = CsInterface { threads: geometry, ..Default::default() }; + let options = KernelOptions { wave64: true, split: true, mem_windows: 1, sampler_base: 0 }; + let mut lw = Lw::new(&[], &Default::default(), options, &Entry::Compute(cs)); + let (tid, _) = lw.setup_lanes_compute(geometry, false); + let half = lw.lshrc(tid, 5); + let wave = lw.lshrc(tid, 6); + let [x, y, z] = [0, 1, 2].map(|axis| lw.s.group_id(axis)); + let z = lw.shlc(z, 1); + let row = lw.add(z, y); + let row = lw.shlc(row, 1); + let group = lw.add(row, x); + let base = lw.shlc(group, 8); + let index = lw.add(base, tid); + let addr = lw.shlc(index, 2); + let mem = lw.mems[0]; + let initial = lw.s.raw_load(mem, addr, 1)[0]; + let acc = lw.tmp_var(); + lw.wr(acc, initial); + let not_second_wave = lw.cmpc(Pred::Ne, wave, 1); + for round in 1..=12 { + if round == 1 || round == 7 { + let exit = lw.block(Some(1)); + let live = lw.block(Some(1)); + let stops = lw.cmpc(Pred::Eq, wave, if round == 1 { 0 } else { 2 }); + lw.cond_br(stops, exit, live); + lw.s.m.set_block(exit); + let old = lw.rd(acc); + let value = if round == 1 { lw.addc(old, 100_000) } else { old }; + lw.s.raw_store(mem, addr, &[value]); + lw.s.m.ret(); + lw.s.m.set_block(live); + } + let mut exchange = |lw: &mut Lw| { + let payload = lw.addc(half, round); + let peer = lw.exchange(payload); + let old = lw.rd(acc); + let value = lw.add(old, peer); + lw.wr(acc, value); + Ok(()) + }; + if round % 2 == 1 { lw.guarded(not_second_wave, &mut exchange).unwrap(); } + else { exchange(&mut lw).unwrap(); } + let next = lw.block(Some(1)); + lw.br(next); + lw.s.m.set_block(next); + } + let value = lw.rd(acc); + lw.s.raw_store(mem, addr, &[value]); + lw.s.m.ret(); + lw.s.m.optimize(); + let chain = lw.s.split_compute(geometry, Some(tid), 160).expect("split with exited guest waves"); + assert!(chain.pieces.len() >= 3); + let whole = lw.s.finish_optimized(geometry, Some(32)).unwrap(); + crate::gpu::dxil::validate::validate(&whole).expect("valid whole shader"); + let input: Vec<_> = (0..2064u32).map(|i| if i < 2048 { i + 17 } else { 0xdeadbeef }).collect(); + let expected: Vec<_> = input.iter().enumerate().map(|(i, &v)| { + if i >= 2048 { return v; } + let tid = i as u32 % 256; + let peer = (tid / 32) ^ 1; + match tid / 64 { + 0 => v + 100_000, + 1 => v + 6 * peer + 42, + 2 => v + 6 * peer + 21, + _ => v + 12 * peer + 78, + } + }).collect(); + println!("CHAIN_EXIT_STAGE whole pieces={} scratch_dwords_per_group={}", chain.pieces.len(), chain.dwords_per_group); + let reference = runner::dispatch(&whole, [2, 2, 2], &[], &input).unwrap(); + assert_eq!(reference, expected, "whole program CPU oracle"); + println!("CHAIN_EXIT_STAGE split"); + let result = runner::dispatch_split(&chain, [2, 2, 2], &input).unwrap(); + assert_eq!(result, expected, "split program CPU oracle"); + println!("CHAIN_EXIT checked_words=2048 guards=16 pieces={} scratch_dwords_per_group={}", chain.pieces.len(), chain.dwords_per_group); + } + #[test] fn dispatch_chain_wave32_live_loops() { compare(32); } ``` </details>
Kalmarv commented 2026-11-25 04:10:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-25T04:08:01Z.


@WebIdentity1 thanks, your early-exit fixture is in the PR as ed1b606, test-only, with you as co-author. I also rebased the PR onto #2080's current head, 17a984b, so this PR's own changes are now the last two commits.

On an RTX 5070 Ti (NVIDIA 610.74, DXC 1.9.2609) all five dispatch_chain GPU tests pass with no skips. In your fixture, the whole shader and its 5-piece split both match the CPU calculation on 2048 words plus 16 guard words.

The description check will fail until I add a regression run made on this head. That run is queued.

AI use: Codex helpers adapted the fixture and ran the tests, and Claude Code (Claude Opus 5.5) wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7152559043 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7152559043). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-25T04:08:01Z. --- @WebIdentity1 thanks, your early-exit fixture is in the PR as `ed1b606`, test-only, with you as co-author. I also rebased the PR onto #2080's current head, `17a984b`, so this PR's own changes are now the last two commits. On an RTX 5070 Ti (NVIDIA 610.74, DXC 1.9.2609) all five `dispatch_chain` GPU tests pass with no skips. In your fixture, the whole shader and its 5-piece split both match the CPU calculation on 2048 words plus 16 guard words. The description check will fail until I add a regression run made on this head. That run is queued. AI use: Codex helpers adapted the fixture and ran the tests, and Claude Code (Claude Opus 5.5) wrote this comment.
JoaoPauluu commented 2026-11-25 06:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T05:21:59Z.


Same as on #2080, plus this PR's two tests. A run with vkd3d-proton as the host D3D12. 5 of the new dispatch-chain GPU tests crash the test process inside vkd3d-proton.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. eafe39f as it is (merge base with main f5c5bdf), no uncommitted changes. The lib test binary runs under Wine, one test per process, twice: at ed1b606 and at eafe39f, with the same result.
    • dispatch_chain_exited_waves_preserve_other_waves_3d: crashes (see below)
    • dispatch_chain_four_wave64s_preserves_partner_epochs: crashes (see below)
    • dispatch_chain_divergent_forward_edges_3d: crashes (see below)
    • dispatch_chain_wave32_live_loops: crashes (see below)
    • dispatch_chain_wave64_live_loops_and_exchange: crashes (see below)
    • dispatch_chain_native_wave64_builds_whole: ok, SKIPPED (no wave64)
  • Each failing test kills the process before it reports anything (exit 5): an access violation, page fault on read access to 0x0000000000000110, at 0x6ffffca2b118. That address is inside vkd3d-proton's d3d12core.dll, which is loaded at 0x6ffffc880000. I traced it for dispatch_chain_wave32_live_loops; the others end with the same exit code. So the host's D3D12 crashes on something the dispatch chain does. I have not found which call.

Not tested

  • the split programs on the retail title, the whole suite on this head, native Windows, AMD.

AI use

  • Claude Code (Claude Opus 5.5) built the commit, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
<!-- greyfinch-sync:ivall/xcl:comment:7153700969 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7153700969). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-25T05:21:59Z. --- Same as on #2080, plus this PR's two tests. A run with vkd3d-proton as the host D3D12. 5 of the new dispatch-chain GPU tests crash the test process inside vkd3d-proton. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `eafe39f` as it is (merge base with `main` `f5c5bdf`), no uncommitted changes. The lib test binary runs under Wine, one test per process, twice: at `ed1b606` and at `eafe39f`, with the same result. - `dispatch_chain_exited_waves_preserve_other_waves_3d`: **crashes** (see below) - `dispatch_chain_four_wave64s_preserves_partner_epochs`: **crashes** (see below) - `dispatch_chain_divergent_forward_edges_3d`: **crashes** (see below) - `dispatch_chain_wave32_live_loops`: **crashes** (see below) - `dispatch_chain_wave64_live_loops_and_exchange`: **crashes** (see below) - `dispatch_chain_native_wave64_builds_whole`: ok, SKIPPED (`no wave64`) - Each failing test kills the process before it reports anything (exit 5): an access violation, `page fault on read access to 0x0000000000000110`, at `0x6ffffca2b118`. That address is inside vkd3d-proton's `d3d12core.dll`, which is loaded at `0x6ffffc880000`. I traced it for `dispatch_chain_wave32_live_loops`; the others end with the same exit code. So the host's D3D12 crashes on something the dispatch chain does. I have not found which call. **Not tested** - the split programs on the retail title, the whole suite on this head, native Windows, AMD. **AI use** - Claude Code (Claude Opus 5.5) built the commit, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
DavidM1911 commented 2026-11-25 06:05:57 +00:00 (Migrated from github.com)

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


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

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

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7154082216 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7154082216). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T05:43:45Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
bielfreedom commented 2026-11-25 08:08:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bielfreedom on 2026-11-25T07:10:46Z.


AMD RDNA4 check of #2097 (eafe39f): no effect on the native-wave64 path, as expected, and the tests pass.

Setup

  • GPU: RX 9070 XT 16 GB (RDNA4, native wave64), AMD driver 32.0.32029.2010.
  • System: Windows 11, release.

Results

  • Census:
    • Run: XCL_DIRECT_DXIL=1, default split target, all 2,689 retail compute programs, with a local logging patch that records each program's dispatch_chain piece count.
    • 462 split programs, with piece counts identical to #2080's for every program. No program changes.
    • That fits the description: on this adapter, wave64 groups compile as native WaveSize(64), and chains are only built for hardware wave 32. So the cascade-shadow programs keep their whole pipeline here, as before.
  • Tests:
    • cargo test --release -p xcl --lib -- dispatch_chain split::tests --test-threads=1 with XCL_REQUIRE_GPU=1 and XCL_ADAPTER=9070: 6 passed, 0 failed, no SKIPPED notices.
    • That includes dispatch_chain_four_wave64s_preserves_partner_epochs and dispatch_chain_exited_waves_preserve_other_waves_3d.
    • These tests build the split-wave64 form explicitly, so they ran the emulated form on AMD hardware too.

Read / inference: this PR is a gain for 32-lane GPUs only. On AMD those programs still build whole. A native-wave64 chain would be a separate change, as discussed on #2080.

AI use: Claude Code (Claude Opus 5.5) ran the census and tests and wrote this. Counts only, no game data.

<!-- greyfinch-sync:ivall/xcl:comment:7155574174 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7155574174). Originally posted by [bielfreedom](https://github.com/bielfreedom) on 2026-11-25T07:10:46Z. --- **AMD RDNA4 check of #2097 (`eafe39f`): no effect on the native-wave64 path, as expected, and the tests pass.** **Setup** - GPU: RX 9070 XT 16 GB (RDNA4, native wave64), AMD driver 32.0.32029.2010. - System: Windows 11, release. **Results** - **Census:** - Run: `XCL_DIRECT_DXIL=1`, default split target, all 2,689 retail compute programs, with a local logging patch that records each program's `dispatch_chain` piece count. - **462 split programs, with piece counts identical to #2080's for every program.** No program changes. - That fits the description: on this adapter, wave64 groups compile as native `WaveSize(64)`, and chains are only built for hardware wave 32. So the cascade-shadow programs keep their whole pipeline here, as before. - **Tests:** - `cargo test --release -p xcl --lib -- dispatch_chain split::tests --test-threads=1` with `XCL_REQUIRE_GPU=1` and `XCL_ADAPTER=9070`: **6 passed, 0 failed**, no SKIPPED notices. - That includes `dispatch_chain_four_wave64s_preserves_partner_epochs` and `dispatch_chain_exited_waves_preserve_other_waves_3d`. - These tests build the split-wave64 form explicitly, so they ran the emulated form on AMD hardware too. **Read / inference:** this PR is a gain for 32-lane GPUs only. On AMD those programs still build whole. A native-wave64 chain would be a separate change, as discussed on #2080. AI use: Claude Code (Claude Opus 5.5) ran the census and tests and wrote this. Counts only, no game data.
O5-7 commented 2026-11-25 08:14:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by O5-7 on 2026-11-25T08:14:41Z.

Review: COMMENTED


Independent test report for PR #2097 on head commit eafe39f1a5329b08204cc423238456bedddd8557 (eafe39f).

Setup

  • GPU: NVIDIA GeForce RTX 5080 16 GB (wave32-only, driver 32.0.15.9579)
  • CPU / RAM: AMD Ryzen 7 9700X, 32 GB RAM
  • OS / Toolchain: Windows 11 Pro 10.0.26100, rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.8.2502.11 (Windows SDK 10.0.26100.0)

Test results (debug)

  • cargo test -p xcl dispatch_chain -- --nocapture: 6 passed, 0 failed, 0 ignored (dispatch_chain_native_wave64_builds_whole reported SKIPPED ...: no wave64 on this wave32-only GPU)
  • XCL_DIRECT_DXIL=1 cargo test -p xcl dispatch_chain -- --nocapture: 6 passed, 0 failed, 0 ignored (dispatch_chain_native_wave64_builds_whole reported SKIPPED ...: no wave64 on this wave32-only GPU)
  • cargo test --workspace -- --test-threads=4: 1160 passed, 0 failed, 46 ignored

Regression run (clean detached HEAD eafe39f)

xcl-smoke v1
commit: eafe39f1a5329b08204cc423238456bedddd8557
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1685 (PresentX 1685)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14105 MB

(Same clean-machine main cbc296a 60 s baseline: 1686 frames (PresentX 1686), 60 60 60, 0 removals, 0 crashes, 14083 MB.)

AI use

  • Antigravity (Gemini 4 Neon) ran the builds, test suites, and smoke run, and formatted this report.
<!-- greyfinch-sync:ivall/xcl:review:6053973177 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#pullrequestreview-6053973177). Originally posted by [O5-7](https://github.com/O5-7) on 2026-11-25T08:14:41Z. **Review:** COMMENTED --- Independent test report for PR #2097 on head commit `eafe39f1a5329b08204cc423238456bedddd8557` (`eafe39f`). **Setup** - GPU: NVIDIA GeForce RTX 5080 16 GB (wave32-only, driver `32.0.15.9579`) - CPU / RAM: AMD Ryzen 7 9700X, 32 GB RAM - OS / Toolchain: Windows 11 Pro `10.0.26100`, `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.8.2502.11` (Windows SDK `10.0.26100.0`) **Test results (debug)** - `cargo test -p xcl dispatch_chain -- --nocapture`: 6 passed, 0 failed, 0 ignored (`dispatch_chain_native_wave64_builds_whole` reported `SKIPPED ...: no wave64` on this wave32-only GPU) - `XCL_DIRECT_DXIL=1 cargo test -p xcl dispatch_chain -- --nocapture`: 6 passed, 0 failed, 0 ignored (`dispatch_chain_native_wave64_builds_whole` reported `SKIPPED ...: no wave64` on this wave32-only GPU) - `cargo test --workspace -- --test-threads=4`: 1160 passed, 0 failed, 46 ignored **Regression run (clean detached HEAD `eafe39f`)** ``` xcl-smoke v1 commit: eafe39f1a5329b08204cc423238456bedddd8557 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1685 (PresentX 1685) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14105 MB ``` (Same clean-machine `main` `cbc296a` 60 s baseline: `1686 frames (PresentX 1686)`, `60 60 60`, `0` removals, `0` crashes, `14083 MB`.) **AI use** - Antigravity (Gemini 4 Neon) ran the builds, test suites, and smoke run, and formatted this report.
Toons29 commented 2026-11-25 12:06:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T11:25:51Z.


Regression run of c8a6e3fb on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 568e7db7, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14592 MB
xcl-smoke v1
commit: c8a6e3fbb2c2e476f7aac61fd4e7179474889f7e
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1631)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14565 MB

Against the limits in CONTRIBUTING.md: 104 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; a script posted this right after the run, with both blocks exactly as printed.

<!-- greyfinch-sync:ivall/xcl:comment:7161036769 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7161036769). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T11:25:51Z. --- Regression run of `c8a6e3fb` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `568e7db7`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14592 MB ``` ``` xcl-smoke v1 commit: c8a6e3fbb2c2e476f7aac61fd4e7179474889f7e gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1631) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14565 MB ``` Against the limits in CONTRIBUTING.md: 104 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; a script posted this right after the run, with both blocks exactly as printed.
thehollowedone commented 2026-11-25 14:09:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-25T13:18:53Z.


Independent Windows/NVIDIA run on clean 8b2fa0e, with a separate integration against main 1a0bbe3. Windows 11 build 26300, RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC and DXC/DXIL 1.8.2502.11, debug.

Tested
cargo build --offline --locked --workspace --jobs 6 passed on both builds. cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture gave 1248 passed, 2 failed, 46 ignored on the exact head and 1257 passed, 0 failed, 46 ignored on the main integration. The exact-head cache-marker and UAV-format assertion values match the two failures isolated on the same pinned base for #2080. Both counts include 26 runtime skip notices.

cargo test --offline --locked -p xcl --lib <filter> -- --test-threads=1 --nocapture passed separately for dispatch_chain_four_wave64s_preserves_partner_epochs and dispatch_chain_exited_waves_preserve_other_waves_3d on the exact head, with zero skips. The first matched all 512 expected outputs. The 3D early-exit fixture matched all 2,048 outputs and preserved 16 guard words, with four pieces and 4,352 scratch dwords per group. Both cases also passed in both workspace runs.

Not tested
Wine, native wave64, retail world load, or driver compilation timing.

AI-assisted. Codex (GPT-6, exact variant unavailable) ran the checks and drafted this report.

Update: exact head integrated with newer main

I retested head d5c2781 after a clean local, uncommitted merge of main e0d93c8. The resulting Git tree is 92070b780a4d547d101dc3127ffc28e5e3a024a8; git diff --check passed. This includes the newly merged #2383, #2408, and #2118 changes.

On the same RTX 3080 Ti / NVIDIA 621.35 setup above, XCL_NETWORK=0, XCL_ADAPTER=RTX 3080 Ti, SDK XCL_DXC_DIR, and no XCL_D3D12_DEBUG: cargo build --offline --locked --workspace --jobs 6 passed. Both new GPU tests passed individually (1/0/0, zero skips each) with cargo test --offline --locked -p xcl --lib <test name> --jobs 6 -- --test-threads=1 --nocapture. The exited-wave test compared 2,048 output words and 16 guards across four pieces. cargo test --offline --locked --workspace --no-fail-fast --jobs 6 -- --test-threads=4 --nocapture reported 1,423 passed, 0 failed, 46 ignored, with 26 runtime GPU skip notices.

I also tried a full XCL_D3D12_DEBUG=1 suite on an earlier integration with main 889ef3e. It failed in the same six test targets on that integration and on untouched 889ef3e under identical settings. The two new GPU tests passed individually with the debug layer enabled. That global-debug run does not establish a #2097 regression.

Not tested in this update: retail smoke, native wave64 hardware, Wine, or driver compilation timing. AI-assisted. Codex (GPT-6, exact variant unavailable) ran these checks and drafted this update.

<!-- greyfinch-sync:ivall/xcl:comment:7163597314 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7163597314). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-25T13:18:53Z. --- Independent Windows/NVIDIA run on clean [8b2fa0e](https://github.com/xcl-dev/xcl/commit/8b2fa0e28c2773dd8b28cd6b5a95eee5517e9732), with a separate integration against [main 1a0bbe3](https://github.com/xcl-dev/xcl/commit/1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6). Windows 11 build 26300, RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC and DXC/DXIL 1.8.2502.11, debug. **Tested** `cargo build --offline --locked --workspace --jobs 6` passed on both builds. `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture` gave **1248 passed, 2 failed, 46 ignored** on the exact head and **1257 passed, 0 failed, 46 ignored** on the main integration. The exact-head cache-marker and UAV-format assertion values match the two failures isolated on the [same pinned base for #2080](https://github.com/xcl-dev/xcl/pull/2080#issuecomment-7155492355). Both counts include 26 runtime skip notices. `cargo test --offline --locked -p xcl --lib <filter> -- --test-threads=1 --nocapture` passed separately for `dispatch_chain_four_wave64s_preserves_partner_epochs` and `dispatch_chain_exited_waves_preserve_other_waves_3d` on the exact head, with zero skips. The first matched all 512 expected outputs. The 3D early-exit fixture matched all 2,048 outputs and preserved 16 guard words, with four pieces and 4,352 scratch dwords per group. Both cases also passed in both workspace runs. **Not tested** Wine, native wave64, retail world load, or driver compilation timing. AI-assisted. Codex (GPT-6, exact variant unavailable) ran the checks and drafted this report. **Update: exact head integrated with newer main** I retested [head d5c2781](https://github.com/xcl-dev/xcl/commit/d5c2781d15164d49c366fdaa679fd52eab6b7ad4) after a clean local, uncommitted merge of [main e0d93c8](https://github.com/xcl-dev/xcl/commit/e0d93c84ad8253f6e17738d14741c1bab7061127). The resulting Git tree is `92070b780a4d547d101dc3127ffc28e5e3a024a8`; `git diff --check` passed. This includes the newly merged #2383, #2408, and #2118 changes. On the same RTX 3080 Ti / NVIDIA 621.35 setup above, `XCL_NETWORK=0`, `XCL_ADAPTER=RTX 3080 Ti`, SDK `XCL_DXC_DIR`, and no `XCL_D3D12_DEBUG`: `cargo build --offline --locked --workspace --jobs 6` passed. Both new GPU tests passed individually (1/0/0, zero skips each) with `cargo test --offline --locked -p xcl --lib <test name> --jobs 6 -- --test-threads=1 --nocapture`. The exited-wave test compared 2,048 output words and 16 guards across four pieces. `cargo test --offline --locked --workspace --no-fail-fast --jobs 6 -- --test-threads=4 --nocapture` reported **1,423 passed, 0 failed, 46 ignored**, with **26 runtime GPU skip notices**. I also tried a full `XCL_D3D12_DEBUG=1` suite on an earlier integration with [main 889ef3e](https://github.com/xcl-dev/xcl/commit/889ef3e8aa7f267323ab4879e735e65da6bcef10). It failed in the same six test targets on that integration and on untouched 889ef3e under identical settings. The two new GPU tests passed individually with the debug layer enabled. That global-debug run does not establish a #2097 regression. **Not tested in this update:** retail smoke, native wave64 hardware, Wine, or driver compilation timing. AI-assisted. Codex (GPT-6, exact variant unavailable) ran these checks and drafted this update.
Kalmarv commented 2026-11-25 14:10:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-25T13:40:21Z.


Status: #2080, #2107 and #2126 are merged. This PR now conflicts with main afc5ee8 in split.rs, and the conflict needs real integration rather than a mechanical rebase:

  • make_piece and the scratch stride have to take #2126's fixed per-value slots, and fit this PR's per-half exchange counters and slots into that layout.
  • The planner has to combine this PR's spin-region packing with #2107's ceiling of four times the target.

The rework comes next, with a new suite and smoke pair. Until then, the current head 8b2fa0e is only tested against the old base. @joeypercia, #2299 sits on this PR and will meet the same make_piece change.

AI use: Claude Code (Claude Opus 5.5) wrote this status note.

<!-- greyfinch-sync:ivall/xcl:comment:7164118937 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7164118937). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-25T13:40:21Z. --- Status: #2080, #2107 and #2126 are merged. This PR now conflicts with `main` `afc5ee8` in `split.rs`, and the conflict needs real integration rather than a mechanical rebase: - `make_piece` and the scratch stride have to take #2126's fixed per-value slots, and fit this PR's per-half exchange counters and slots into that layout. - The planner has to combine this PR's spin-region packing with #2107's ceiling of four times the target. The rework comes next, with a new suite and smoke pair. Until then, the current head `8b2fa0e` is only tested against the old base. @joeypercia, #2299 sits on this PR and will meet the same `make_piece` change. AI use: Claude Code (Claude Opus 5.5) wrote this status note.
upipibi commented 2026-11-25 19:09:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T18:38:34Z.


NVIDIA test report for d5c2781 (head as is, base 0829441). RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, after cargo build --workspace:

  • cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 1265 passed, 0 failed, 46 ignored. The end-to-end title tests pass, and so do the new split::tests::dispatch_chain_exited_waves_preserve_other_waves_3d and dispatch_chain_four_wave64s_preserves_partner_epochs.
  • main at 0829441 (this PR's base) on the same machine, same command: 1263 passed, 0 failed, 46 ignored.
  • Skipped hle::xaudio2, because its tests fail or hang on this machine on main too. The PR doesn't touch it.
  • SKIPPED lines: 26: 21 no wave64 on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off.
  • The Windows CI failure here (a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier) is in a test that isn't on this head's base, so this run doesn't cover it. That test failed on main itself until #2420 (merged 18:45Z) fixed it, and it does here too on the older main: main at 569f0fc, same machine and command, gives 1319 passed, 1 failed, and that test is the failure (added 19:05Z).

AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.

<!-- greyfinch-sync:ivall/xcl:comment:7171192159 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7171192159). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T18:38:34Z. --- NVIDIA test report for `d5c2781` (head as is, base `0829441`). RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, after `cargo build --workspace`: - `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2`: **1265 passed, 0 failed, 46 ignored**. The end-to-end title tests pass, and so do the new `split::tests::dispatch_chain_exited_waves_preserve_other_waves_3d` and `dispatch_chain_four_wave64s_preserves_partner_epochs`. - `main` at `0829441` (this PR's base) on the same machine, same command: 1263 passed, 0 failed, 46 ignored. - Skipped `hle::xaudio2`, because its tests fail or hang on this machine on `main` too. The PR doesn't touch it. - SKIPPED lines: 26: 21 `no wave64` on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off. - The Windows CI failure here (`a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`) is in a test that isn't on this head's base, so this run doesn't cover it. That test failed on `main` itself until #2420 (merged 18:45Z) fixed it, and it does here too on the older `main`: `main` at `569f0fc`, same machine and command, gives 1319 passed, 1 failed, and that test is the failure (added 19:05Z). AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
thiagocalile commented 2026-11-25 20:08:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thiagocalile on 2026-11-25T19:11:58Z.


Independent test and smoke report for head d5c2781d15164d49c366fdaa679fd52eab6b7ad4 on an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).

Tested

  • Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver 32.0.21045.29003, XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.8.2502.11.
  • XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- split --test-threads=4: 34 passed, 0 failed, 1 ignored (0 skipped).

Regression run (scripts/smoke.ps1, release builds, XCL_ADAPTER=radeon)

main (2898511):

xcl-smoke v1
commit: 2898511af1c038a2ef809719e9b6f89e5675c422
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1488 (PresentX 1489)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 11934 MB

PR #2097 (d5c2781):

xcl-smoke v1
commit: d5c2781d15164d49c366fdaa679fd52eab6b7ad4
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1492 (PresentX 1493)
presents per 2 s (last 3): 60 3 44
device removals: 0
crashes: 0
peak commit: 18573 MB

Not tested: NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window.

AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.

<!-- greyfinch-sync:ivall/xcl:comment:7171955314 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7171955314). Originally posted by [thiagocalile](https://github.com/thiagocalile) on 2026-11-25T19:11:58Z. --- Independent test and smoke report for head `d5c2781d15164d49c366fdaa679fd52eab6b7ad4` on an **AMD Radeon RX 6600** (8 GB VRAM, RDNA2, native wave64). **Tested** - Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver `32.0.21045.29003`, `XCL_ADAPTER=radeon`), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (`10.0.26200.0`), Rust `1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.8.2502.11`. - `XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- split --test-threads=4`: **34 passed, 0 failed, 1 ignored** (`0` skipped). **Regression run** (`scripts/smoke.ps1`, release builds, `XCL_ADAPTER=radeon`) `main` (`2898511`): ``` xcl-smoke v1 commit: 2898511af1c038a2ef809719e9b6f89e5675c422 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1488 (PresentX 1489) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 11934 MB ``` PR `#2097` (`d5c2781`): ``` xcl-smoke v1 commit: d5c2781d15164d49c366fdaa679fd52eab6b7ad4 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1492 (PresentX 1493) presents per 2 s (last 3): 60 3 44 device removals: 0 crashes: 0 peak commit: 18573 MB ``` **Not tested:** NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window. **AI use:** Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
ivall commented 2026-11-25 20:08:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:43:59Z.


Closing and reopening at once, only to get a CI run on today's main: the failed one ran on a main from before #2420, which fixed a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier. Nothing is wanted from the author. (Claude Code, Claude Opus 5.5, on the maintainer's behalf.)

<!-- greyfinch-sync:ivall/xcl:comment:7172693700 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7172693700). Originally posted by [ivall](https://github.com/ivall) on 2026-11-25T19:43:59Z. --- Closing and reopening at once, only to get a CI run on today's `main`: the failed one ran on a `main` from before #2420, which fixed `a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`. Nothing is wanted from the author. (Claude Code, Claude Opus 5.5, on the maintainer's behalf.)
ivall commented 2026-11-25 20:08:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:59:59Z.


The diff is read in full, CI is green on main 6d051da, and the code looks right to me. One number to settle before the merge:

  • @thiagocalile's pair above (RX 6600) has a peak commit of 18573 MB with this PR against 11934 MB on main, 156 %, where the limit is 125 %, and presents per 2 s of 60 3 44. The other two pairs are at 100 % (RDNA4, on the older c8a6e3f) and 102 % (RTX 5070 Ti).
  • My guess, not checked: the PR's run compiled with a cold cache. A build with another translator does not reuse main's cache, and the uneven presents look like compiling.

@thiagocalile, could you run main and this PR (d5c2781) once more, each twice in a row, and post the second run of each? If the peaks are close then, I will merge it.

Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, main e0d93c8 with #2097 (d5c2781) and #2368 (c685e12) merged locally, against main e0d93c8. Whole suite: 1423 passed, 2 failed, 46 ignored, 7 SKIPPED (main: 1419 / 2 / 46, 7 SKIPPED). With XCL_DIRECT_DXIL=1, cargo test -p xcl --lib -- gpu:: hle::d3d12x: 953 passed, 2 failed, 24 ignored (main: 949 / 2 / 24). The two failures are fuzz_validate_and_gpu_1 and _3 on both.

Not tested here: a title run with this PR.

AI use: Claude Code (Claude Opus 5.5) read the diff and the thread, ran the tests and wrote this on the maintainer's behalf.

<!-- greyfinch-sync:ivall/xcl:comment:7173044768 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7173044768). Originally posted by [ivall](https://github.com/ivall) on 2026-11-25T19:59:59Z. --- The diff is read in full, CI is green on `main` `6d051da`, and the code looks right to me. One number to settle before the merge: - @thiagocalile's pair above (RX 6600) has a peak commit of 18573 MB with this PR against 11934 MB on `main`, 156 %, where the limit is 125 %, and `presents per 2 s` of 60 3 44. The other two pairs are at 100 % (RDNA4, on the older `c8a6e3f`) and 102 % (RTX 5070 Ti). - My guess, not checked: the PR's run compiled with a cold cache. A build with another translator does not reuse `main`'s cache, and the uneven presents look like compiling. @thiagocalile, could you run `main` and this PR (`d5c2781`) once more, each twice in a row, and post the second run of each? If the peaks are close then, I will merge it. Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, `main` `e0d93c8` with #2097 (`d5c2781`) and #2368 (`c685e12`) merged locally, against `main` `e0d93c8`. Whole suite: 1423 passed, 2 failed, 46 ignored, 7 SKIPPED (`main`: 1419 / 2 / 46, 7 SKIPPED). With `XCL_DIRECT_DXIL=1`, `cargo test -p xcl --lib -- gpu:: hle::d3d12x`: 953 passed, 2 failed, 24 ignored (`main`: 949 / 2 / 24). The two failures are `fuzz_validate_and_gpu_1` and `_3` on both. Not tested here: a title run with this PR. AI use: Claude Code (Claude Opus 5.5) read the diff and the thread, ran the tests and wrote this on the maintainer's behalf.
GreemSC commented 2026-11-25 20:08:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by GreemSC on 2026-11-25T20:00:49Z.


A memory data point for the 125 % question, from Linux / RDNA3 with caches as earlier runs left them (not cold): this PR together with #2404 did not raise the peak.

tree (180 s runs, retail 1.0.2.1, XCL_DIRECT_DXIL=1) peak RAM + swap of the game's cgroup
main 68a284a + our stack, without #2097 / #2404 12,554 / 13,856 MB
same + #2097 (d5c2781) + #2404 (5ca9c23) 13,378 / 12,812 MB

About 99 % on average. Two caveats: it is the cgroup's resident memory, not the process commit (XCL's commit counter reads 0 under Wine), and #2097 is not measured alone here. Both sides stalled at about the same place in these runs (3–28 s after the first #101), so they did comparable work.

Setup: RX 7900 XT, Mesa 26.2.5 RADV, Linux 7.2, Proton-CachyOS Wine 11, local vkd3d-proton; the stack is #1732 + #684 + #1860 + part of #203 on 68a284a; A pressed every 4 s; 2 runs per side. Our full report is on #2404.

AI use: Claude Code (Claude Opus 5.5) ran the runs, read the cgroup samples and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7173064721 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7173064721). Originally posted by [GreemSC](https://github.com/GreemSC) on 2026-11-25T20:00:49Z. --- A memory data point for the 125 % question, from Linux / RDNA3 with caches as earlier runs left them (not cold): this PR together with #2404 did not raise the peak. | tree (180 s runs, retail 1.0.2.1, `XCL_DIRECT_DXIL=1`) | peak RAM + swap of the game's cgroup | |---|---| | `main` `68a284a` + our stack, without #2097 / #2404 | 12,554 / 13,856 MB | | same + #2097 (`d5c2781`) + #2404 (`5ca9c23`) | 13,378 / 12,812 MB | About 99 % on average. Two caveats: it is the cgroup's resident memory, not the process commit (XCL's commit counter reads 0 under Wine), and #2097 is not measured alone here. Both sides stalled at about the same place in these runs (3–28 s after the first `#101`), so they did comparable work. **Setup:** RX 7900 XT, Mesa 26.2.5 RADV, Linux 7.2, Proton-CachyOS Wine 11, local vkd3d-proton; the stack is #1732 + #684 + #1860 + part of #203 on `68a284a`; A pressed every 4 s; 2 runs per side. Our full report is on #2404. **AI use:** Claude Code (Claude Opus 5.5) ran the runs, read the cgroup samples and wrote this.
bmjask commented 2026-11-25 20:16:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:16:25Z.

Review: COMMENTED


No source-level correctness defect found in this review; the wave checkpoint/barrier design and targeted GPU coverage look sound. Merge evidence is still incomplete: the RX 6600 comparison cited in the PR shows 18,573 MB peak commit versus 11,934 MB on main (156%), above the repository 125% regression ceiling. Please provide the requested warm-cache repeat pair or resolve the regression. The title smoke also creates but does not dispatch seven target cascade-shadow chains, so title-grid coverage remains incomplete.

<!-- greyfinch-sync:ivall/xcl:review:6064332718 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#pullrequestreview-6064332718). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:16:25Z. **Review:** COMMENTED --- No source-level correctness defect found in this review; the wave checkpoint/barrier design and targeted GPU coverage look sound. Merge evidence is still incomplete: the RX 6600 comparison cited in the PR shows 18,573 MB peak commit versus 11,934 MB on main (156%), above the repository 125% regression ceiling. Please provide the requested warm-cache repeat pair or resolve the regression. The title smoke also creates but does not dispatch seven target cascade-shadow chains, so title-grid coverage remains incomplete.
thiagocalile commented 2026-11-25 21:05:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thiagocalile on 2026-11-25T20:14:42Z.


@ivall Here are the back-to-back 60 s smoke runs on AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64, driver 32.0.21045.29003, XCL_ADAPTER=radeon, Ryzen 7 5700X3D, Windows 11 10.0.26200.0, Rust 1.100.0 MSVC, DXC 1.8.2502.11, release builds): your guess was right — once warm, main (6d12f58) and #2097 (d5c2781) are within 103.6% peak commit (16,751 MB vs 16,162 MB) and both lock at 60 60 60 (1,565 vs 1,563 frames).

Run Commit Frames shown (last 3) Peak commit
main Run 1 (warmup) 6d12f58 1530 (60 60 60) 12085 MB
main Run 2 (warm) 6d12f58 1563 (60 60 60) 16162 MB
#2097 Run 1 (warmup) d5c2781 1559 (60 60 60) 16678 MB
#2097 Run 2 (warm) d5c2781 1565 (60 60 60) 16751 MB

Run 2 (warm — primary pair)

main (6d12f58, Run 2):

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1563 (PresentX 1563)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16162 MB

PR #2097 (d5c2781, Run 2):

xcl-smoke v1
commit: d5c2781d15164d49c366fdaa679fd52eab6b7ad4
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1565 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16751 MB
Run 1 (warmup) verbatim blocks

main (6d12f58, Run 1):

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1530 (PresentX 1530)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 12085 MB

PR #2097 (d5c2781, Run 1):

xcl-smoke v1
commit: d5c2781d15164d49c366fdaa679fd52eab6b7ad4
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1559 (PresentX 1559)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16678 MB

Not tested: NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window.

AI use: Antigravity (Gemini 4 Hydrogen) ran the builds and smoke runs and drafted this report; the account owner reviewed and approved posting.

<!-- greyfinch-sync:ivall/xcl:comment:7173386675 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7173386675). Originally posted by [thiagocalile](https://github.com/thiagocalile) on 2026-11-25T20:14:42Z. --- @ivall Here are the back-to-back 60 s smoke runs on **AMD Radeon RX 6600** (8 GB VRAM, RDNA2, native wave64, driver `32.0.21045.29003`, `XCL_ADAPTER=radeon`, Ryzen 7 5700X3D, Windows 11 `10.0.26200.0`, Rust `1.100.0` MSVC, DXC `1.8.2502.11`, release builds): your guess was right — once warm, `main` (`6d12f58`) and `#2097` (`d5c2781`) are within **103.6%** peak commit (`16,751 MB` vs `16,162 MB`) and both lock at `60 60 60` (`1,565` vs `1,563` frames). | Run | Commit | Frames shown (last 3) | Peak commit | |---|---|---|---| | `main` Run 1 (warmup) | `6d12f58` | 1530 (`60 60 60`) | 12085 MB | | `main` Run 2 (warm) | `6d12f58` | 1563 (`60 60 60`) | 16162 MB | | `#2097` Run 1 (warmup) | `d5c2781` | 1559 (`60 60 60`) | 16678 MB | | `#2097` Run 2 (warm) | `d5c2781` | 1565 (`60 60 60`) | 16751 MB | ### Run 2 (warm — primary pair) `main` (`6d12f58`, Run 2): ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1563 (PresentX 1563) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16162 MB ``` PR `#2097` (`d5c2781`, Run 2): ``` xcl-smoke v1 commit: d5c2781d15164d49c366fdaa679fd52eab6b7ad4 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1565 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16751 MB ``` <details><summary>Run 1 (warmup) verbatim blocks</summary> `main` (`6d12f58`, Run 1): ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1530 (PresentX 1530) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 12085 MB ``` PR `#2097` (`d5c2781`, Run 1): ``` xcl-smoke v1 commit: d5c2781d15164d49c366fdaa679fd52eab6b7ad4 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1559 (PresentX 1559) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16678 MB ``` </details> **Not tested:** NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window. **AI use:** Antigravity (Gemini 4 Hydrogen) ran the builds and smoke runs and drafted this report; the account owner reviewed and approved posting.
Kalmarv commented 2026-11-26 03:06:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T02:39:26Z.


@bmjask thanks for the review. On your two points:

  1. 125 %: @thiagocalile's warm repeat on the RX 6600 (comment) has this PR at 103.6 % of main's peak commit (16751 against 16162 MB) and 1565 against 1563 frames. In their first pair the PR's side was compiling with a cold cache. The PR is now rebased onto main b49be18 as d98d2d4, with one conflict in split.rs against #2371. The new pair in the description, on an RTX 5070 Ti, is at 102 % of main's frames and 99 % of its peak commit. That pair runs the default route, which splits nothing, so it is a regression check only.
  2. The seven cascade-shadow chains: yes. In the title runs we have, the title creates them but does not dispatch them, so their output and slab counts on the title's grids are not measured. That is listed under Not tested. What covers the multi-wave path on the GPU is the two 16×16 tests (four wave64s with uneven exchange counts, and guest waves that exit early on a 2×2×2 grid) and the seeded run of 6f3a2502a8d6b129, where the whole and split forms write the same 2048 words.

The whole suite on d98d2d4 (RTX 5070 Ti, debug): 1437 passed, 0 failed, 47 ignored.

AI use: Claude Code (Claude Opus 5.5) did the rebase, ran the suite and the smoke pair, and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7181001963 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7181001963). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T02:39:26Z. --- @bmjask thanks for the review. On your two points: 1. **125 %:** @thiagocalile's warm repeat on the RX 6600 ([comment](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7173386675)) has this PR at 103.6 % of `main`'s peak commit (16751 against 16162 MB) and 1565 against 1563 frames. In their first pair the PR's side was compiling with a cold cache. The PR is now rebased onto `main` `b49be18` as `d98d2d4`, with one conflict in `split.rs` against #2371. The new pair in the description, on an RTX 5070 Ti, is at 102 % of `main`'s frames and 99 % of its peak commit. That pair runs the default route, which splits nothing, so it is a regression check only. 2. **The seven cascade-shadow chains:** yes. In the title runs we have, the title creates them but does not dispatch them, so their output and slab counts on the title's grids are not measured. That is listed under **Not tested**. What covers the multi-wave path on the GPU is the two 16×16 tests (four wave64s with uneven exchange counts, and guest waves that exit early on a 2×2×2 grid) and the seeded run of 6f3a2502a8d6b129, where the whole and split forms write the same 2048 words. The whole suite on `d98d2d4` (RTX 5070 Ti, debug): 1437 passed, 0 failed, 47 ignored. AI use: Claude Code (Claude Opus 5.5) did the rebase, ran the suite and the smoke pair, and wrote this.
DavidM1911 commented 2026-11-26 08:04:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T07:28:55Z.


Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7185503916 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7185503916). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T07:28:55Z. --- Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
Decodere commented 2026-11-27 07:32:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T07:32:35Z.


Independent desktop NVIDIA verification of PR #2097 at head d98d2d46131c92b3fc950da9a0ec7ae228eef8ed (2 commits: 952e056b407b8b88efa18a7ee9b1f79e9b0deea8 -> d98d2d46131c92b3fc950da9a0ec7ae228eef8ed; exact parent & merge-base: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (d98d2d46)

Command Result
cargo test --release -p xcl --lib dispatch_chain_four_wave64s_preserves_partner_epochs -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1337 filtered out × 3 (0.33s, 0.22s, 0.22s, 0 skipped; live RTX 4060 multi-wave split-wave64 execution)
cargo test --release -p xcl --lib dispatch_chain_exited_waves_preserve_other_waves_3d -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1337 filtered out × 3 (0.41s, 0.22s, 0.22s, 0 skipped; live RTX 4060 3D-grid multi-wave early-exit execution)
cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4 (3 consecutive runs) 186 passed; 0 failed; 3 ignored; 1149 filtered out × 3 (4.71s, 5.76s, 5.20s; 1 self-skipped: gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole — no wave64 on Wave32-only Ada; 185 executed)
cargo build --release -p xcl Clean build (1m 46s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB

PR #2097 (d98d2d46131c92b3fc950da9a0ec7ae228eef8ed):

xcl-smoke v1
commit: d98d2d46131c92b3fc950da9a0ec7ae228eef8ed
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1495 (PresentX 1496)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14005 MB

Runtime log observations (xcl.log)

  • 9218 log lines, 0 [ERROR] / device-removal / panic lines (dxil_cache: 460 hits, 0 misses, 0 compilation failures; 228 background pipelines, 0 failures).
  • Final draw/memory telemetry in log: 19201 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14004 MB committed by the process; video memory 6115 MB local, 4682 MB non-local.

Limits of coverage

  • Multi-wave split-wave64 partner-epoch checkpointing across dispatch pieces and early-exited guest waves in a 3D grid were directly executed and verified against the CPU oracle on desktop RTX 4060 via both new GPU tests (3/3 each, 0 skipped) and gpu::dxil:: (185 executed, 0 failed, 1 Wave64-only test self-skipped on Wave32-only Ada).
  • The 60 s retail smoke confirms zero runtime regression on title: 29640639 (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR; compute split: 0 programs split in this 60 s retail window).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7212574319 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7212574319). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T07:32:35Z. --- Independent desktop NVIDIA verification of **PR #2097** at head `d98d2d46131c92b3fc950da9a0ec7ae228eef8ed` (`2` commits: `952e056b407b8b88efa18a7ee9b1f79e9b0deea8` -> `d98d2d46131c92b3fc950da9a0ec7ae228eef8ed`; exact parent & merge-base: `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`d98d2d46`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib dispatch_chain_four_wave64s_preserves_partner_epochs -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1337 filtered out` × 3 (`0.33s`, `0.22s`, `0.22s`, `0` skipped; live RTX 4060 multi-wave split-wave64 execution) | | `cargo test --release -p xcl --lib dispatch_chain_exited_waves_preserve_other_waves_3d -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1337 filtered out` × 3 (`0.41s`, `0.22s`, `0.22s`, `0` skipped; live RTX 4060 3D-grid multi-wave early-exit execution) | | `cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4` (3 consecutive runs) | `186 passed; 0 failed; 3 ignored; 1149 filtered out` × 3 (`4.71s`, `5.76s`, `5.20s`; `1` self-skipped: `gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole` — `no wave64` on Wave32-only Ada; `185` executed) | | `cargo build --release -p xcl` | Clean build (`1m 46s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, cached baseline on the same machine): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` PR #2097 (`d98d2d46131c92b3fc950da9a0ec7ae228eef8ed`): ``` xcl-smoke v1 commit: d98d2d46131c92b3fc950da9a0ec7ae228eef8ed gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1495 (PresentX 1496) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14005 MB ``` ### Runtime log observations (`xcl.log`) - `9218` log lines, `0` `[ERROR]` / device-removal / panic lines (`dxil_cache`: `460` hits, `0` misses, `0` compilation failures; `228` background pipelines, `0` failures). - Final draw/memory telemetry in log: `19201 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14004 MB committed by the process; video memory 6115 MB local, 4682 MB non-local`. ### Limits of coverage - Multi-wave split-wave64 partner-epoch checkpointing across dispatch pieces and early-exited guest waves in a 3D grid were directly executed and verified against the CPU oracle on desktop RTX 4060 via both new GPU tests (`3/3` each, `0` skipped) and `gpu::dxil::` (`185` executed, `0` failed, `1` Wave64-only test self-skipped on Wave32-only Ada). - The 60 s retail smoke confirms zero runtime regression on `title: 29640639` (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR; `compute split: 0 programs split` in this 60 s retail window). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
oni-swr commented 2026-11-27 13:22:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-27T13:22:42Z.


Running a native Windows AMD check of head d98d2d46 (RX 7800 XT, RDNA3, native wave64): workspace tests plus a bounded base-vs-head smoke pair; report here in a few hours.
AI use: the run and the report are done with Claude Code (Claude Sonnet 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7219403662 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7219403662). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-27T13:22:42Z. --- Running a native Windows AMD check of head `d98d2d46` (RX 7800 XT, RDNA3, native wave64): workspace tests plus a bounded base-vs-head smoke pair; report here in a few hours. AI use: the run and the report are done with Claude Code (Claude Sonnet 5.5).
oni-swr commented 2026-11-27 14:14:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-27T14:14:46Z.


AMD RDNA3 report for #2097, head d98d2d46 (base = merge-base b49be183)

Hardware / software: AMD Radeon RX 7800 XT (RDNA3, native wave64), driver 32.0.31035.1003; Ryzen 7 5700X3D, 64 GB; Windows 11 build 26200; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); tests debug, smoke release. Native Windows, no Wine, XCL_ADAPTER unset.

Tested

  • cargo test -p xcl --lib -- --test-threads=4 on the head: 1310 passed, 1 failed, 27 ignored; 6 GPU cases SKIPPED (f16/f32 conversion programs, "refused"; they are not coverage). The one failure is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 722, res[30] = 0x1, CPU 0x7fffffff); it fails identically on the merge-base b49be183, so it is not from this PR.
  • cargo test -p xcl --lib dispatch_chain: 12 passed, 0 failed, including the new dispatch_chain_four_wave64s_preserves_partner_epochs and dispatch_chain_exited_waves_preserve_other_waves_3d (neither skipped on this adapter).

Regression run (scripts/smoke.ps1, 90 s, retail title, same title and isolated copy of its data folder for both, XCL_NETWORK=0; the merge-base does not have XCL_PREPARE, so shader preparation ran in both)

base b49be183 head d98d2d46
frames shown / PresentX 1875 / 1875 1754 / 1754
presents per 2 s (last 3) 60 60 60 60 60 60
peak commit 14408 MB 14409 MB
device removals / crashes 0 / 0 0 / 0
exit 0x0 0x0

Head is 93.5 % of base's frames and 100.0 % of its peak commit. One run each, so frame counts carry run-to-run noise.

Not tested

  • Full cargo test --workspace and the integration tests (only -p xcl --lib).
  • Anywhere the title would reach multi-wave wave64 compute groups beyond what the 90 s start shows; no world load.
  • Wave32-only GPUs, NVIDIA, RDNA4.

AI use

  • Claude Code, Claude Sonnet 5.5: built the trees, ran the commands and wrote this report. Numbers come from real runs on the hardware above (logs kept locally).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:comment:7220536683 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7220536683). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-27T14:14:46Z. --- **AMD RDNA3 report for #2097, head `d98d2d46` (base = merge-base `b49be183`)** **Hardware / software:** AMD Radeon RX 7800 XT (RDNA3, native wave64), driver 32.0.31035.1003; Ryzen 7 5700X3D, 64 GB; Windows 11 build 26200; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); tests debug, smoke release. Native Windows, no Wine, `XCL_ADAPTER` unset. **Tested** - `cargo test -p xcl --lib -- --test-threads=4` on the head: 1310 passed, 1 failed, 27 ignored; 6 GPU cases `SKIPPED` (f16/f32 conversion programs, "refused"; they are not coverage). The one failure is `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 722, `res[30] = 0x1, CPU 0x7fffffff`); it fails identically on the merge-base `b49be183`, so it is not from this PR. - `cargo test -p xcl --lib dispatch_chain`: 12 passed, 0 failed, including the new `dispatch_chain_four_wave64s_preserves_partner_epochs` and `dispatch_chain_exited_waves_preserve_other_waves_3d` (neither skipped on this adapter). **Regression run** (`scripts/smoke.ps1`, 90 s, retail title, same title and isolated copy of its data folder for both, `XCL_NETWORK=0`; the merge-base does not have `XCL_PREPARE`, so shader preparation ran in both) | | base `b49be183` | head `d98d2d46` | |---|---|---| | frames shown / PresentX | 1875 / 1875 | 1754 / 1754 | | presents per 2 s (last 3) | 60 60 60 | 60 60 60 | | peak commit | 14408 MB | 14409 MB | | device removals / crashes | 0 / 0 | 0 / 0 | | exit | 0x0 | 0x0 | Head is 93.5 % of base's frames and 100.0 % of its peak commit. One run each, so frame counts carry run-to-run noise. **Not tested** - Full `cargo test --workspace` and the integration tests (only `-p xcl --lib`). - Anywhere the title would reach multi-wave wave64 compute groups beyond what the 90 s start shows; no world load. - Wave32-only GPUs, NVIDIA, RDNA4. **AI use** - Claude Code, Claude Sonnet 5.5: built the trees, ran the commands and wrote this report. Numbers come from real runs on the hardware above (logs kept locally). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
throny commented 2026-11-27 23:13:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:13:27Z.


merge-check claim
head: d98d2d4613

<!-- greyfinch-sync:ivall/xcl:comment:7229971076 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7229971076). Originally posted by [throny](https://github.com/throny) on 2026-11-27T23:13:27Z. --- merge-check claim head: d98d2d46131c92b3fc950da9a0ec7ae228eef8ed
throny commented 2026-11-27 23:27:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:27:27Z.


merge-check
base: 2c717a04
head: d98d2d4613
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1468 passed, 0 failed, 47 ignored (26 SKIPPED lines); its chain tests ran on this wave32-only card and passed; base alone: 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines)
review: none blocking. Checked by reading: every piece re-runs the per-group atomic that hands out logical ids, and scratch is indexed per group, so nothing crosses a group border; the restore runs after the prefix's group sync; every thread reaches the checkpoint barrier; a signal and its wait stay in one piece, and loads after a cut read slots saved to scratch. Unrelated to the purpose: println! debug lines in the tests. Open from the thread: no title run has dispatched the new chains yet.
performance: affects wave32-only GPUs (NVIDIA, Intel): compute groups of a multiple of 64 threads without guest LDS, in programs big enough for the direct path (by default only the very large ones). Those become chains: pieces times slabs of dispatches with a barrier and a state copy per cut, and 0.3–1.4 MiB of scratch per group under the existing caps. Direct-DXIL output is re-translated once. Not measured here in a title; I can run a world entry on this card with it if that helps the decision.
verdict: safe to merge (from the code and the suite; untested in a title)
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7230155430 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7230155430). Originally posted by [throny](https://github.com/throny) on 2026-11-27T23:27:27Z. --- merge-check base: 2c717a04 head: d98d2d46131c92b3fc950da9a0ec7ae228eef8ed merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1468 passed, 0 failed, 47 ignored (26 SKIPPED lines); its chain tests ran on this wave32-only card and passed; base alone: 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines) review: none blocking. Checked by reading: every piece re-runs the per-group atomic that hands out logical ids, and scratch is indexed per group, so nothing crosses a group border; the restore runs after the prefix's group sync; every thread reaches the checkpoint barrier; a signal and its wait stay in one piece, and loads after a cut read slots saved to scratch. Unrelated to the purpose: println! debug lines in the tests. Open from the thread: no title run has dispatched the new chains yet. performance: affects wave32-only GPUs (NVIDIA, Intel): compute groups of a multiple of 64 threads without guest LDS, in programs big enough for the direct path (by default only the very large ones). Those become chains: pieces times slabs of dispatches with a barrier and a state copy per cut, and 0.3–1.4 MiB of scratch per group under the existing caps. Direct-DXIL output is re-translated once. Not measured here in a title; I can run a world entry on this card with it if that helps the decision. verdict: safe to merge (from the code and the suite; untested in a title) hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
thehollowedone commented 2026-11-28 01:54:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T01:54:28Z.


merge-check claim
head: d98d2d4613

<!-- greyfinch-sync:ivall/xcl:comment:7231997262 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7231997262). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T01:54:28Z. --- merge-check claim head: d98d2d46131c92b3fc950da9a0ec7ae228eef8ed
thehollowedone commented 2026-11-28 02:00:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T02:00:44Z.


merge-check
base: 753e8b1a (main)
head: d98d2d46
merge: Clean trial merge into current main, with no commit.
build: cargo build --workspace --locked passed.
tests: cargo test --workspace --locked --no-fail-fast -- --test-threads=4 on the unmodified merge: 1,513 passed, 1 failed, 47 ignored; 25 GPU skip notices (21 no wave64, three refused per-lane f16/f32 forms, one no heap windows). Both new native split-chain tests passed, including the four-wave partner-epoch case and the exited-wave case. The sole failure was console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk with cached_only console_mesh hit: "DXIL not compiled yet". The same test failed with the same message on untouched current main under cargo test -p xcl --lib console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk --locked -- --nocapture (0 passed, 1 failed).
review: I traced the changed split eligibility, signal/wait grouping, per-thread continuation indexing, shared counter/slot checkpoint, and downstream piece restore and dispatch. The group sync surrounds each transfer, and guest-LDS programs retain the whole-pipeline path. I found no new source-level blocker in the changed paths. Current PR CI Build and test (Windows, no GPU) and PR description both pass.
performance: I did not measure a title dispatch or cold pipeline timing on this machine. The author's measurements support the compile-time benefit; this check establishes the merged build and GPU regression behavior, not a title-level speedup.
verdict: safe to merge; the one suite failure reproduces on current main, and title-level use of the new chains remains unverified here.
hardware / tool and model: Windows 11 build 26300, NVIDIA RTX 3080 Ti 12 GiB / driver 621.35, rustc 1.99.1 MSVC, DXC from Vulkan SDK 1.4.363.0. OpenAI Codex (GPT-6.2 Sol) performed the trial merge, source review, build, GPU suite, base control, and report.

<!-- greyfinch-sync:ivall/xcl:comment:7232067176 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7232067176). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T02:00:44Z. --- merge-check base: [753e8b1a](https://github.com/xcl-dev/xcl/commit/753e8b1a2568c37248133880328f5fe1d5220193) (`main`) head: [d98d2d46](https://github.com/xcl-dev/xcl/commit/d98d2d46131c92b3fc950da9a0ec7ae228eef8ed) merge: Clean trial merge into current `main`, with no commit. build: `cargo build --workspace --locked` passed. tests: `cargo test --workspace --locked --no-fail-fast -- --test-threads=4` on the unmodified merge: **1,513 passed, 1 failed, 47 ignored; 25 GPU skip notices** (21 no wave64, three refused per-lane f16/f32 forms, one no heap windows). Both new native split-chain tests passed, including the four-wave partner-epoch case and the exited-wave case. The sole failure was `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` with `cached_only console_mesh hit: "DXIL not compiled yet"`. The same test failed with the same message on untouched current `main` under `cargo test -p xcl --lib console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk --locked -- --nocapture` (**0 passed, 1 failed**). review: I traced the changed split eligibility, signal/wait grouping, per-thread continuation indexing, shared counter/slot checkpoint, and downstream piece restore and dispatch. The group sync surrounds each transfer, and guest-LDS programs retain the whole-pipeline path. I found no new source-level blocker in the changed paths. Current PR CI `Build and test (Windows, no GPU)` and `PR description` both pass. performance: I did not measure a title dispatch or cold pipeline timing on this machine. The author's measurements support the compile-time benefit; this check establishes the merged build and GPU regression behavior, not a title-level speedup. verdict: safe to merge; the one suite failure reproduces on current `main`, and title-level use of the new chains remains unverified here. hardware / tool and model: Windows 11 build 26300, NVIDIA RTX 3080 Ti 12 GiB / driver 621.35, rustc 1.99.1 MSVC, DXC from Vulkan SDK 1.4.363.0. OpenAI Codex (GPT-6.2 Sol) performed the trial merge, source review, build, GPU suite, base control, and report.
Foniass commented 2026-12-01 06:25:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:25:04Z.


Review (head d98d2d46, diff read, not a merge-check; it conflicts with main, so not built or run):

  • Duplicate of open #3504, which carries both commits rebased onto current main (6dcf7087 = 952e056b, 7fe787b3 = d98d2d46), adding a check that the group has threads (total != 0), the has_xs gate and xcl_wt. Main's kernel.rs (~365) still only splits [64,1,1] groups.
  • One difference: here a span that keeps a signal and its wait in one piece may grow to 4x the piece target, while #3504 caps it at the target. And product % 64 == 0 (~228) also admits a 0-thread group, which #3504 fixes.

Fine: the exchange state is restored before the jump to the next part and saved at a point every thread reaches (including threads whose guest code already returned), the exchange slots are read after the spin region, and groups with guest LDS or group barriers stay whole. Recommendation: close in favour of #3504.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7302847416 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7302847416). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:25:04Z. --- Review (head d98d2d46, diff read, not a merge-check; it conflicts with main, so not built or run): - **Duplicate of open #3504**, which carries both commits rebased onto current main (6dcf7087 = 952e056b, 7fe787b3 = d98d2d46), adding a check that the group has threads (`total != 0`), the `has_xs` gate and `xcl_wt`. Main's `kernel.rs` (~365) still only splits `[64,1,1]` groups. - One difference: here a span that keeps a signal and its wait in one piece may grow to 4x the piece target, while #3504 caps it at the target. And `product % 64 == 0` (~228) also admits a 0-thread group, which #3504 fixes. Fine: the exchange state is restored before the jump to the next part and saved at a point every thread reaches (including threads whose guest code already returned), the exchange slots are read after the spin region, and groups with guest LDS or group barriers stay whole. Recommendation: close in favour of #3504. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
throny commented 2026-12-01 15:58:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T15:58:15Z.


Closing as superseded: the same change is in #3504 (open, mergeable, required checks green). From Foniass's rechecked close list on #1607, checked again by script just now. If something here is still missing, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7316819082 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2097#issuecomment-7316819082). Originally posted by [throny](https://github.com/throny) on 2026-12-01T15:58:15Z. --- Closing as superseded: the same change is in #3504 (open, mergeable, required checks green). From Foniass's rechecked close list on #1607, checked again by script just now. If something here is still missing, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5).

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!2087
No description provided.