D3D12.X: build a split program's whole form on a worker with the default wait #2481

Closed
b3IKK wants to merge 2 commits from upstream-pr/2491 into main
b3IKK commented 2026-11-25 20:12:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T20:12:13Z.


Stacked on #2372 (9dd8715).

#2372 moves a split program's whole form into pso_async, but Chain::whole calls pso_async::resolve_wait_for(key, budget). With the default wait (XCL_PSO_WAIT_MS unset, budget = None) that function takes the job and builds it on the calling (title) thread — the stall #2372 is about. Only setting XCL_PSO_WAIT_MS sends it to a worker, and then the bind skips dispatches. On the retail 1.0.2.1 title on an RTX 5080 (XCL_DIRECT_DXIL=1, XCL_PSO_WAIT_MS=50, 600 s) that was whole form: 198 asked for, 30 built, **16,701 dispatches skipped** while it was being built, followed by 0xc0000005 at game_scarlett_master.exe+0x5293422.

This adds pso_async::resolve_wait_worker: the whole form is enqueued on the xcl-pso workers and the caller waits for it, never taking the job itself. Chain::whole uses it when the budget is None; with XCL_PSO_WAIT_MS set, the existing budgeted/skip behavior is unchanged.

What is in it

  • crates/xcl/src/hle/d3d12x/pso_async.rs: resolve_wait_worker (sent to the workers, waited for there).
  • crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs: Chain::whole uses it for None.
  • whole_tests::a_whole_form_with_no_budget_is_built_on_a_worker_and_not_skipped: the build runs on an xcl-pso thread, returns Whole::Built, and WHOLE_SKIPS does not move.

Measured on the retail title (RTX 5080, retail 1.0.2.1, XCL_DIRECT_DXIL=1, default wait, 600 s):

#2372 + wait 50 ms this branch, default wait
whole forms asked / built 198 / 30 46 / 45
dispatches skipped 16,701 0
last 2 s interval with a present 166 s 92 s
crash 0xc0000005 at 166.5 s none (clean 600 s)

So the skips and the crash are gone, but the title still stops presenting at 92 s: its binds now wait for 45 serialized ~0.7–1.1 MB worker builds. The remaining lever is precompiling those whole forms (or more huge-compile capacity), not skipping them.

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 1274 passed, 0 failed, 46 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, no heap windows, and cannot disable the driver cache (Windows Developer Mode is required))
  • cargo test -p xcl --lib -- whole_tests: 2 passed, 0 failed
  • the new test with the None branch put back to resolve_wait_for(key, None): 0 passed, 1 failed — built on None, not on a PSO worker

Regression run

main (426a5a7, clean tree, no local changes):

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

PR (caae07d, clean tree, no local changes):

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

(The main block is 426a5a7, an ancestor of the current main, from the same machine and data folder.)

Not tested

  • whether the world presents with a precompiled whole-form set (the 45 worker builds are the remaining wall)
  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Claude Fable 5.2: implemented the worker path, added the test and confirmed it fails without it, ran the suite and the scripts/smoke.ps1 pair, and ran both retail comparisons on this machine.
<!-- greyfinch-sync:ivall/xcl:issue:6612838286 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T20:12:13Z. --- Stacked on #2372 (`9dd8715`). #2372 moves a split program's whole form into `pso_async`, but `Chain::whole` calls `pso_async::resolve_wait_for(key, budget)`. With the default wait (`XCL_PSO_WAIT_MS` unset, `budget = None`) that function takes the job and builds it on the calling (title) thread — the stall #2372 is about. Only setting `XCL_PSO_WAIT_MS` sends it to a worker, and then the bind skips dispatches. On the retail 1.0.2.1 title on an RTX 5080 (`XCL_DIRECT_DXIL=1`, `XCL_PSO_WAIT_MS=50`, 600 s) that was `whole form: 198 asked for, 30 built, **16,701 dispatches skipped** while it was being built`, followed by `0xc0000005` at `game_scarlett_master.exe+0x5293422`. This adds `pso_async::resolve_wait_worker`: the whole form is enqueued on the `xcl-pso` workers and the caller waits for it, never taking the job itself. `Chain::whole` uses it when the budget is `None`; with `XCL_PSO_WAIT_MS` set, the existing budgeted/skip behavior is unchanged. **What is in it** - `crates/xcl/src/hle/d3d12x/pso_async.rs`: `resolve_wait_worker` (sent to the workers, waited for there). - `crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs`: `Chain::whole` uses it for `None`. - `whole_tests::a_whole_form_with_no_budget_is_built_on_a_worker_and_not_skipped`: the build runs on an `xcl-pso` thread, returns `Whole::Built`, and `WHOLE_SKIPS` does not move. **Measured on the retail title** (RTX 5080, retail 1.0.2.1, `XCL_DIRECT_DXIL=1`, default wait, 600 s): | | #2372 + wait 50 ms | this branch, default wait | |---|---:|---:| | whole forms asked / built | 198 / 30 | 46 / 45 | | dispatches skipped | 16,701 | **0** | | last 2 s interval with a present | 166 s | 92 s | | crash | `0xc0000005` at 166.5 s | none (clean 600 s) | So the skips and the crash are gone, but the title still stops presenting at 92 s: its binds now wait for 45 serialized ~0.7–1.1 MB worker builds. The remaining lever is precompiling those whole forms (or more huge-compile capacity), not skipping them. **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): **1274 passed, 0 failed, 46 ignored** (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, `no heap windows`, and `cannot disable the driver cache (Windows Developer Mode is required)`) - `cargo test -p xcl --lib -- whole_tests`: 2 passed, 0 failed - the new test with the `None` branch put back to `resolve_wait_for(key, None)`: 0 passed, 1 failed — `built on None, not on a PSO worker` **Regression run** main (`426a5a7`, clean tree, no local changes): ``` xcl-smoke v1 commit: 426a5a745db4d5e4b037449ede0b70cb342f5192 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1642 (PresentX 1642) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15158 MB ``` PR (`caae07d`, clean tree, no local changes): ``` xcl-smoke v1 commit: caae07d1874fcc2a322a9518982703a4f40c35f8 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1627 (PresentX 1627) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15828 MB ``` (The main block is `426a5a7`, an ancestor of the current `main`, from the same machine and data folder.) **Not tested** - whether the world presents with a precompiled whole-form set (the 45 worker builds are the remaining wall) - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Claude Fable 5.2: implemented the worker path, added the test and confirmed it fails without it, ran the suite and the `scripts/smoke.ps1` pair, and ran both retail comparisons on this machine.
emirduran707 commented 2026-11-25 21:05:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T20:36:06Z.


Independent AMD RDNA4 (native wave64) test report on exact head caae07d1874fcc2a322a9518982703a4f40c35f8 (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1272 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.
    • Both PR tests passed: hle::d3d12x::real::dispatch_chain::whole_tests::a_whole_form_still_being_built_is_not_waited_for_past_the_budget and a_whole_form_with_no_budget_is_built_on_a_worker_and_not_skipped.
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599) are pre-existing on unmodified main on this GPU.

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: caae07d1874fcc2a322a9518982703a4f40c35f8
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1616 (PresentX 1616)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13923 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7173911177 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491#issuecomment-7173911177). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T20:36:06Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `caae07d1874fcc2a322a9518982703a4f40c35f8` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2602.17; tests debug, smoke release. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: **1272 passed, 2 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused by per-lane form; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`). All native wave64 GPU tests ran and passed. - Both PR tests passed: `hle::d3d12x::real::dispatch_chain::whole_tests::a_whole_form_still_being_built_is_not_waited_for_past_the_budget` and `a_whole_form_with_no_budget_is_built_on_a_worker_and_not_skipped`. - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` seed 722 and `fuzz_validate_and_gpu_3` seed 1599) are pre-existing on unmodified `main` on this GPU. **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: caae07d1874fcc2a322a9518982703a4f40c35f8 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1616 (PresentX 1616) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13923 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
b3IKK commented 2026-11-25 21:05:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T20:47:38Z.


Tried the targeted in-run prebuild on top of #2491: record the whole forms a run asks for in used-wholes.txt (by the program's console record) and submit them at creation on the next run. Retail 1.0.2.1, RTX 5080, XCL_DIRECT_DXIL=1, default wait, 600 s:

run A (records) run B (prebuilds at creation)
whole forms asked / built 77 / 76 92 / 93
dispatches skipped 0 0
last present 92 s 92 s

So the prebuild does build the whole forms earlier (93 built, no skips), but presentation does not move. The arithmetic says why: 77 whole forms of 0.7–1.1 MB at 20–35 s each is ~38 minutes of driver work at the 2–4 huge-compile slots, far more than the ~92 s load window; and creation order is not the ask order, so the first bind still waits for a form that is late in the queue. An in-run prebuild cannot clear this wall — the whole forms have to be built before the run (offline) or the per-form compile time has to come down.

AI use: OpenCode, Claude Fable 5.2 implemented the prebuild, ran both retail passes and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7174195288 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491#issuecomment-7174195288). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T20:47:38Z. --- Tried the targeted in-run prebuild on top of #2491: record the whole forms a run asks for in `used-wholes.txt` (by the program's console record) and submit them at creation on the next run. Retail 1.0.2.1, RTX 5080, `XCL_DIRECT_DXIL=1`, default wait, 600 s: | | run A (records) | run B (prebuilds at creation) | |---|---:|---:| | whole forms asked / built | 77 / 76 | 92 / 93 | | dispatches skipped | 0 | 0 | | last present | 92 s | **92 s** | So the prebuild does build the whole forms earlier (93 built, no skips), but presentation does not move. The arithmetic says why: 77 whole forms of 0.7–1.1 MB at 20–35 s each is ~38 minutes of driver work at the 2–4 huge-compile slots, far more than the ~92 s load window; and creation order is not the ask order, so the first bind still waits for a form that is late in the queue. An in-run prebuild cannot clear this wall — the whole forms have to be built **before** the run (offline) or the per-form compile time has to come down. AI use: OpenCode, Claude Fable 5.2 implemented the prebuild, ran both retail passes and wrote this.
DavidM1911 commented 2026-11-25 21:05:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:53:07Z.


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:7174319881 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491#issuecomment-7174319881). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T20:53:07Z. --- 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!
b3IKK commented 2026-11-25 21:05:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T20:58:40Z.


A third pass on the warm whole-form cache shows the frontier is still moving. used-wholes.txt went 77 → 94 → 113 across the three runs (+17, +19). In pass C: whole form: 113 asked for, 112 built, 0 dispatches skipped, presentation 94 s.

The creation-time prebuild works for the forms an earlier run asked for (112 built, 0 skips), but each run reaches ~20 new whole forms, and the first one asked at ~92 s is not in the earlier record, so the bind waits for it and presentation stops there. A targeted offline precompile of the known 113 would have the same problem on the next run: it would prebuild the 113 and the title would ask ~20 more.

Two real options remain: a full offline prebuild of all split programs' whole forms (266 programs × 20–35 s ≈ 2.5 h at 4 workers) so no run asks a cold one, or the allocator-less/bundle scratch path so a Dispatch with no title allocator runs the chain pieces instead of the whole form at all. The in-run ordering/capacity/prebuild levers are exhausted.

AI use: OpenCode, Claude Fable 5.2 ran the third pass on this machine and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7174443953 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491#issuecomment-7174443953). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T20:58:40Z. --- A third pass on the warm whole-form cache shows the frontier is still moving. `used-wholes.txt` went **77 → 94 → 113** across the three runs (+17, +19). In pass C: `whole form: 113 asked for, 112 built, 0 dispatches skipped`, presentation **94 s**. The creation-time prebuild works for the forms an earlier run asked for (112 built, 0 skips), but each run reaches ~20 **new** whole forms, and the first one asked at ~92 s is not in the earlier record, so the bind waits for it and presentation stops there. A targeted offline precompile of the known 113 would have the same problem on the next run: it would prebuild the 113 and the title would ask ~20 more. Two real options remain: a **full offline prebuild of all split programs' whole forms** (266 programs × 20–35 s ≈ 2.5 h at 4 workers) so no run asks a cold one, or the **allocator-less/bundle scratch path** so a `Dispatch` with no title allocator runs the chain pieces instead of the whole form at all. The in-run ordering/capacity/prebuild levers are exhausted. AI use: OpenCode, Claude Fable 5.2 ran the third pass on this machine and wrote this.
KDenKC commented 2026-11-25 21:05:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-25T20:58:41Z.


Correction (later the same night): this was wrong, and you were right that the whole forms need an offline prebuild. The run above had 0 cold compute only because its cache already held whole forms from earlier runs. On a cache without them, the stall after world start is the cold whole forms (built back to back on a title thread by Chain::whole, ungated, and as queued worker builds), and #2551's offline prebuild (--precompile --used-only) cut that stall from 391 s to 62 s on this card: https://github.com/xcl-dev/xcl/issues/2088#issuecomment-7178317955

@b3IKK one data point against "the whole forms need an offline prebuild", at least on an RTX 5090. With #2404 (5ca9c23, on main 2898511) the title doesn't build whole forms at all: ExecuteIndirect: 382 chained (0 of them whole, 0 slabs lost), 0 whole, and 0 cold compute builds after one precompile. The frames still stop at the same point (114–125 s, three runs). Thread dumps at 140/170/220 s show one title thread inside nvgpucomp64.dll building graphics pipelines one after another (2–4 s each, one every ~7 s), with the xcl-pso* workers idle. That's the same as @rafelis1997's 5070 Ti measurement on #2088. Details: https://github.com/xcl-dev/xcl/issues/2088#issuecomment-7174029302

On a third run with the same cache, the title got through those builds and started the world's work at ~520 s, then lost the device (0x887a0005) 3 s later. That looks like #2403's shader-heap limit, but I have no DRED data for it yet.

So on this card, prebuilding the whole forms offline would remove work that #2404 already avoids, and the 92/120 s wall would stay. I haven't run #2491 itself, and your 5080 may differ.

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

<!-- greyfinch-sync:ivall/xcl:comment:7174444088 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491#issuecomment-7174444088). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-25T20:58:41Z. --- > **Correction (later the same night):** this was wrong, and you were right that the whole forms need an offline prebuild. The run above had 0 cold compute only because its cache already held whole forms from earlier runs. On a cache without them, the stall after world start is the cold whole forms (built back to back on a title thread by `Chain::whole`, ungated, and as queued worker builds), and #2551's offline prebuild (`--precompile --used-only`) cut that stall from 391 s to 62 s on this card: https://github.com/xcl-dev/xcl/issues/2088#issuecomment-7178317955 @b3IKK one data point against "the whole forms need an offline prebuild", at least on an RTX 5090. With #2404 (`5ca9c23`, on `main` `2898511`) the title doesn't build whole forms at all: `ExecuteIndirect: 382 chained (0 of them whole, 0 slabs lost), 0 whole`, and 0 cold compute builds after one precompile. **The frames still stop at the same point (114–125 s, three runs).** Thread dumps at 140/170/220 s show one title thread inside `nvgpucomp64.dll` building **graphics** pipelines one after another (2–4 s each, one every ~7 s), with the `xcl-pso*` workers idle. That's the same as @rafelis1997's 5070 Ti measurement on #2088. Details: https://github.com/xcl-dev/xcl/issues/2088#issuecomment-7174029302 On a third run with the same cache, the title got through those builds and started the world's work at ~520 s, then lost the device (`0x887a0005`) 3 s later. That looks like #2403's shader-heap limit, but I have no DRED data for it yet. So on this card, prebuilding the whole forms offline would remove work that #2404 already avoids, and the 92/120 s wall would stay. I haven't run #2491 itself, and your 5080 may differ. AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this.
SlopTart commented 2026-11-25 21:05:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T21:00:56Z.


gpu_ suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
Targeted run of the two whole-form budget tests (a_whole_form_still_being_built_is_not_waited_for_past_the_budget, a_whole_form_with_no_budget_is_built_on_a_worker_and_not_skipped): 2 passed.

<!-- greyfinch-sync:ivall/xcl:comment:7174493426 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491#issuecomment-7174493426). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T21:00:56Z. --- `gpu_` suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of the two whole-form budget tests (`a_whole_form_still_being_built_is_not_waited_for_past_the_budget`, `a_whole_form_with_no_budget_is_built_on_a_worker_and_not_skipped`): 2 passed.
upstream-sync closed this pull request 2026-11-25 22:06:15 +00:00
bmjask commented 2026-11-25 22:06:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T21:09:12Z.

Review: COMMENTED


High-merit correction for the default path: whole-form builds run on xcl-pso workers while the title waits, and focused worker/ownership/no-skip coverage looks sound. The stack remains blocked because this deliberately preserves #2372 XCL_PSO_WAIT_MS behavior: its own RTX 5080 run with 50 ms records 16,701 skipped whole-form dispatches then crashes. The new default does not make that budgeted split whole-form/ExecuteIndirect skipping safe. Remove/disable it for this form or add safe defer/replay before merge.

<!-- greyfinch-sync:ivall/xcl:review:6065015966 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491#pullrequestreview-6065015966). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T21:09:12Z. **Review:** COMMENTED --- High-merit correction for the default path: whole-form builds run on xcl-pso workers while the title waits, and focused worker/ownership/no-skip coverage looks sound. The stack remains blocked because this deliberately preserves #2372 XCL_PSO_WAIT_MS behavior: its own RTX 5080 run with 50 ms records 16,701 skipped whole-form dispatches then crashes. The new default does not make that budgeted split whole-form/ExecuteIndirect skipping safe. Remove/disable it for this form or add safe defer/replay before merge.
b3IKK commented 2026-11-25 22:06:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T21:34:32Z.


Closing as superseded by #2404, following #2372's closure.

#2491's worker-on-default-wait was the no-skip half of #2372: with no XCL_PSO_WAIT_MS, Chain::whole took the build on the title's thread, so the bind waited for each whole form. #2404 removes that path for chained ExecuteIndirects: the whole form is built at the program's first chained ExecuteIndirect on an xcl-pso-chain-whole thread that waits for the huge-build turn, and it is never built on the title's thread there. Kalmarv's measurements on the remaining fallbacks (another command signature, a bundle, a list without an allocator, a Dispatch without scratch) show no whole-form-sized build over 2 s off the workers in the warm runs, so the default-wait worker adds nothing for them.

The Dispatch/bundle fallbacks that this PR would still cover are removed instead by #2519, now re-stacked directly on #2404 (50af98e): those dispatches run the already-built pieces with an XCL-owned scratch, so no whole form is built at all.

Evidence kept here: the test failed without the change (built on None, not on a PSO worker), suite 1274/0/46, smoke 1627, and the retail comparison (46 asked/45 built, 0 skipped, no crash, presentation 92 s). Thanks to everyone who tested it.

AI use: OpenCode, Claude Fable 5.2 read #2372's closure, checked #2404's head, and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7175258718 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2491#issuecomment-7175258718). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T21:34:32Z. --- Closing as superseded by #2404, following #2372's closure. #2491's worker-on-default-wait was the no-skip half of #2372: with no `XCL_PSO_WAIT_MS`, `Chain::whole` took the build on the title's thread, so the bind waited for each whole form. #2404 removes that path for chained ExecuteIndirects: the whole form is built at the program's first chained ExecuteIndirect on an `xcl-pso-chain-whole` thread that waits for the huge-build turn, and it is never built on the title's thread there. Kalmarv's measurements on the remaining fallbacks (another command signature, a bundle, a list without an allocator, a Dispatch without scratch) show no whole-form-sized build over 2 s off the workers in the warm runs, so the default-wait worker adds nothing for them. The Dispatch/bundle fallbacks that this PR would still cover are removed instead by #2519, now re-stacked directly on #2404 (`50af98e`): those dispatches run the already-built pieces with an XCL-owned scratch, so no whole form is built at all. Evidence kept here: the test failed without the change (`built on None, not on a PSO worker`), suite 1274/0/46, smoke 1627, and the retail comparison (46 asked/45 built, 0 skipped, no crash, presentation 92 s). Thanks to everyone who tested it. AI use: OpenCode, Claude Fable 5.2 read #2372's closure, checked #2404's head, and wrote this.

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