D3D12.X: XCL_GPU_CULPRIT names the dispatches a stalled queue has not done #1313

Open
IvyNotFound wants to merge 1 commit from upstream-pr/1323 into main
IvyNotFound commented 2026-11-24 14:46:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by IvyNotFound on 2026-11-24T14:46:54Z.


Diagnostics only, off by default. Part of #505.

When the GPU-wait watchdog releases a wait, its lines (and #1123's chain line) say which queues wait on which, but not what the GPU is running at that point. @larelgit measured the GPU at 100 % during these stalls on #505, so something executes and does not end. With XCL_GPU_CULPRIT=1, XCL marks every dispatch it records and logs, at the release, the dispatches that started and are not done, with their console compute shader.

How: around each dispatch the list writes a running number into a readback buffer with WriteBufferImmediate, MARKER_IN before and MARKER_OUT after, one pair of words per PC list. A list whose last number in is above its last number out has work that started and is not done. The dispatches between the two are logged with the console CS (fnv64 of the title's CS bytecode, the name of its file in dxil\translated), the PC pipeline and the groups. Once per burst of releases, 4 s apart, 8 times at most. DRED breadcrumbs would give the op in flight on a device removal. But with DRED on, the driver did not take its cached pipelines here: a 1.99 MB compute pipeline took 153 s to build, and the retail title never got past its start.

What is in it

  • crates/xcl/src/hle/d3d12x/culprit.rs (new):
    • enabled, note_compute;
    • before_dispatch / after_dispatch (the markers); slot_for gives each PC list a slot, and none once the buffer's 16 384 slots are taken (the list is then not recorded, so no slot past the buffer is ever read);
    • open_lists / not_done (what is in flight);
    • on_watchdog_release (the log).
    • Tests: a_list_with_a_marker_in_above_its_marker_out_is_open, a_list_past_the_last_slot_gets_none, and the GPU test gpu_markers_of_a_finished_list_match.
  • bind.rs: markers around Dispatch and around the ExecuteIndirect of a translated compute pipeline.
  • console_list.rs: markers around a console-recorded dispatch.
  • real.rs: CreateComputePipelineState notes the console CS of the pipeline it returns (the old body is now create_compute_pso, unchanged).
  • list_x.rs: the watchdog calls culprit::on_watchdog_release after its release lines.

Tested

  • NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124); AMD Ryzen 7 7800X3D; Windows 11 25H2 (26200.9974); rustc 1.100.0 MSVC; DXC 1.9.2602.17; tests in debug, runs in release.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 at a79d09d (rebased onto main 9e3831e) with XCL_SAMPLE_RPF, _DLLS, _TTPF, _BVH4, _BK2, _AWC set: 779 passed, 0 failed, 41 ignored; SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows). gpu_markers_of_a_finished_list_match ran on the RTX 5080.
  • The retail title of #505, scripts/smoke.ps1, XCL_PRESS_A_AT=15:
    • the regression runs below (60 s, variable unset; main 9e3831e and this head a79d09d);
    • 140 s with XCL_GPU_CULPRIT=1 and XCL_PSO_WAIT_MS=50 (into world loading) at c30f414 (this commit before a change to how an indirect dispatch is labelled in the log). The markers were on from 7.1 s. At the first release (106.9 s), 3 of 358 lists had dispatches started and not done, e.g. #27175: cs b78fa10b425b8e54, pipeline 0x13a997ac0, groups 160x90x1. At the next release (114.3 s) the same three were still open. The run ended in the title's 0xc0000409 at ~124 s, as some main runs of this title do (https://github.com/ivall/xcl/issues/505#issuecomment-7130913073). No device removal.
    • Earlier runs of the same mechanism on main 47efa2e (posted on #505: https://github.com/ivall/xcl/issues/505#issuecomment-7132618087) named, at each stall, one list with a run of 1-D dispatches of one CS whose first never finished, e.g. CS b6043104de672057, 16x1x1, then 7 more of it; another run CS 2c83ffd798d07451, 4355x1x1, then 13 more.

Regression run

main:

xcl-smoke v1
commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485
gpu: NVIDIA GeForce RTX 5080
title: game
seconds: 60
exit: 0x0
frames shown: 1361 (PresentX 1361)
presents per 2 s (last 3): 19 29 59
device removals: 0
crashes: 0
peak commit: 26024 MB

this PR:

xcl-smoke v1
commit: a79d09d3d74525238429f83853622795f764d2e9
gpu: NVIDIA GeForce RTX 5080
title: game
seconds: 60
exit: 0x0
frames shown: 1332 (PresentX 1332)
presents per 2 s (last 3): 20 25 40
device removals: 0
crashes: 0
peak commit: 26020 MB

Not tested

  • AMD, Intel; Linux / vkd3d-proton (WriteBufferImmediate there)
  • draws: only dispatches are marked (the stalls seen so far end on compute queues)
  • the cost with the variable set on a title that dispatches much more than this one (two WriteBufferImmediate per dispatch)

AI use

  • Claude Code, Claude Opus 5.5: wrote the code, the tests and this description, and ran the tests and the runs above.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5474412163 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1323). Originally posted by [IvyNotFound](https://github.com/IvyNotFound) on 2026-11-24T14:46:54Z. --- Diagnostics only, off by default. Part of #505. When the GPU-wait watchdog releases a wait, its lines (and #1123's chain line) say which queues wait on which, but not what the GPU is running at that point. @larelgit measured the GPU at 100 % during these stalls on #505, so something executes and does not end. With `XCL_GPU_CULPRIT=1`, XCL marks every dispatch it records and logs, at the release, the dispatches that started and are not done, with their console compute shader. How: around each dispatch the list writes a running number into a readback buffer with `WriteBufferImmediate`, `MARKER_IN` before and `MARKER_OUT` after, one pair of words per PC list. A list whose last number in is above its last number out has work that started and is not done. The dispatches between the two are logged with the console CS (`fnv64` of the title's CS bytecode, the name of its file in `dxil\translated`), the PC pipeline and the groups. Once per burst of releases, 4 s apart, 8 times at most. DRED breadcrumbs would give the op in flight on a device removal. But with DRED on, the driver did not take its cached pipelines here: a 1.99 MB compute pipeline took 153 s to build, and the retail title never got past its start. **What is in it** - `crates/xcl/src/hle/d3d12x/culprit.rs` (new): - `enabled`, `note_compute`; - `before_dispatch` / `after_dispatch` (the markers); `slot_for` gives each PC list a slot, and none once the buffer's 16 384 slots are taken (the list is then not recorded, so no slot past the buffer is ever read); - `open_lists` / `not_done` (what is in flight); - `on_watchdog_release` (the log). - Tests: `a_list_with_a_marker_in_above_its_marker_out_is_open`, `a_list_past_the_last_slot_gets_none`, and the GPU test `gpu_markers_of_a_finished_list_match`. - `bind.rs`: markers around `Dispatch` and around the `ExecuteIndirect` of a translated compute pipeline. - `console_list.rs`: markers around a console-recorded dispatch. - `real.rs`: `CreateComputePipelineState` notes the console CS of the pipeline it returns (the old body is now `create_compute_pso`, unchanged). - `list_x.rs`: the watchdog calls `culprit::on_watchdog_release` after its release lines. **Tested** - NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124); AMD Ryzen 7 7800X3D; Windows 11 25H2 (26200.9974); rustc 1.100.0 MSVC; DXC 1.9.2602.17; tests in debug, runs in release. - `cargo test --workspace --no-fail-fast -- --test-threads=4` at `a79d09d` (rebased onto `main` `9e3831e`) with `XCL_SAMPLE_RPF`, `_DLLS`, `_TTPF`, `_BVH4`, `_BK2`, `_AWC` set: **779 passed, 0 failed, 41 ignored**; `SKIPPED`: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). `gpu_markers_of_a_finished_list_match` ran on the RTX 5080. - The retail title of #505, `scripts/smoke.ps1`, `XCL_PRESS_A_AT=15`: - the regression runs below (60 s, variable unset; `main` `9e3831e` and this head `a79d09d`); - 140 s with `XCL_GPU_CULPRIT=1` and `XCL_PSO_WAIT_MS=50` (into world loading) at `c30f414` (this commit before a change to how an indirect dispatch is labelled in the log). The markers were on from 7.1 s. At the first release (106.9 s), 3 of 358 lists had dispatches started and not done, e.g. `#27175: cs b78fa10b425b8e54, pipeline 0x13a997ac0, groups 160x90x1`. At the next release (114.3 s) the same three were still open. The run ended in the title's `0xc0000409` at ~124 s, as some `main` runs of this title do (https://github.com/ivall/xcl/issues/505#issuecomment-7130913073). No device removal. - Earlier runs of the same mechanism on `main` `47efa2e` (posted on #505: https://github.com/ivall/xcl/issues/505#issuecomment-7132618087) named, at each stall, one list with a run of 1-D dispatches of one CS whose first never finished, e.g. CS `b6043104de672057`, 16x1x1, then 7 more of it; another run CS `2c83ffd798d07451`, 4355x1x1, then 13 more. **Regression run** main: ``` xcl-smoke v1 commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485 gpu: NVIDIA GeForce RTX 5080 title: game seconds: 60 exit: 0x0 frames shown: 1361 (PresentX 1361) presents per 2 s (last 3): 19 29 59 device removals: 0 crashes: 0 peak commit: 26024 MB ``` this PR: ``` xcl-smoke v1 commit: a79d09d3d74525238429f83853622795f764d2e9 gpu: NVIDIA GeForce RTX 5080 title: game seconds: 60 exit: 0x0 frames shown: 1332 (PresentX 1332) presents per 2 s (last 3): 20 25 40 device removals: 0 crashes: 0 peak commit: 26020 MB ``` **Not tested** - AMD, Intel; Linux / vkd3d-proton (`WriteBufferImmediate` there) - draws: only dispatches are marked (the stalls seen so far end on compute queues) - the cost with the variable set on a title that dispatches much more than this one (two `WriteBufferImmediate` per dispatch) **AI use** - Claude Code, Claude Opus 5.5: wrote the code, the tests and this description, and ran the tests and the runs above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Aniseto commented 2026-11-24 15:06:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-24T14:52:19Z.


Ran the new culprit module tests at 7fa2ade:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=nvidia cargo test -p xcl --lib culprit
2 passed; 0 failed; 0 ignored      (exit 0)

a_list_with_a_marker_in_above_its_marker_out_is_open and gpu_markers_of_a_finished_list_match pass. These are unit-level tests, so the adapter is not the variable; the datapoint is the Windows 11 build 26200 / MSVC 14.44.35207 / DXC 1.9.2609.5 toolchain.

Not tested: the diagnostic against a real stalled queue (no unpacked title here), RDNA2/RDNA4 and Intel GPUs, Wine, release profile.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified.

<!-- greyfinch-sync:ivall/xcl:comment:7135085848 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1323#issuecomment-7135085848). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-24T14:52:19Z. --- Ran the new `culprit` module tests at `7fa2ade`: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=nvidia cargo test -p xcl --lib culprit 2 passed; 0 failed; 0 ignored (exit 0) ``` `a_list_with_a_marker_in_above_its_marker_out_is_open` and `gpu_markers_of_a_finished_list_match` pass. These are unit-level tests, so the adapter is not the variable; the datapoint is the Windows 11 build 26200 / MSVC 14.44.35207 / DXC 1.9.2609.5 toolchain. Not tested: the diagnostic against a real stalled queue (no unpacked title here), RDNA2/RDNA4 and Intel GPUs, Wine, release profile. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash 1017** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified.
futurepro62 commented 2026-11-24 15:06:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:56:07Z.


Full-suite run on NVIDIA and AMD to go with the culprit check above. Tested exact head 7fa2ade (on its base 930e8b4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 753 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: a_list_with_a_marker_in_above_its_marker_out_is_open, gpu_markers_of_a_finished_list_match.
  • Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 753 passed, 0 failed, 41 ignored, no skips.

Not tested

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

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7135187979 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1323#issuecomment-7135187979). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:56:07Z. --- Full-suite run on NVIDIA and AMD to go with the `culprit` check above. Tested exact head `7fa2ade` (on its base `930e8b4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **753 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `a_list_with_a_marker_in_above_its_marker_out_is_open`, `gpu_markers_of_a_finished_list_match`. - Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **753 passed, 0 failed, 41 ignored**, no skips. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
DavidM1911 commented 2026-11-24 16:07:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T15:18:46Z.


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

  • cargo test -p xcl --lib: 707-709 passed, 0 failed, 21 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7135812747 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1323#issuecomment-7135812747). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T15:18:46Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 707-709 passed, 0 failed, 21 ignored. Thanks!
Mischief8713 commented 2026-11-24 16:07:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Mischief8713 on 2026-11-24T15:55:11Z.


GPU run of 7fa2ade on Windows (NVIDIA GTX 1660 Ti, Turing): 709 passed, 0 failed

Tested

  • NVIDIA GeForce GTX 1660 Ti 6 GB (Turing, driver 32.0.16.2114), Ryzen 5 2600X, Windows 11 (10.0.26300), rustc 1.100.0, debug build
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64)
  • main at 930e8b4 on the same machine: lib 707 passed, 0 failed, 21 ignored; e2e 3 passed
  • The head contains current main.
  • lib: 709 passed, 0 failed, 21 ignored. hle::d3d12x::culprit::tests::gpu_markers_of_a_finished_list_match and a_list_with_a_marker_in_above_its_marker_out_is_open ran and passed. Earlier reports on this PR are Blackwell only, so this adds Turing.

Not tested

  • No retail title and no scripts/smoke.ps1 run, so no regression run
  • AMD GPUs; only Turing was run here
  • A real stalled queue with XCL_GPU_CULPRIT set was not exercised, since that needs a title

AI use

  • Claude Code with Claude Sonnet 5.5 ran the commands and wrote this report. I checked the output.
<!-- greyfinch-sync:ivall/xcl:comment:7136831165 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1323#issuecomment-7136831165). Originally posted by [Mischief8713](https://github.com/Mischief8713) on 2026-11-24T15:55:11Z. --- **GPU run of `7fa2ade` on Windows (NVIDIA GTX 1660 Ti, Turing): 709 passed, 0 failed** **Tested** - NVIDIA GeForce GTX 1660 Ti 6 GB (Turing, driver 32.0.16.2114), Ryzen 5 2600X, Windows 11 (10.0.26300), rustc 1.100.0, debug build - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64) - `main` at `930e8b4` on the same machine: lib 707 passed, 0 failed, 21 ignored; `e2e` 3 passed - The head contains current `main`. - lib: 709 passed, 0 failed, 21 ignored. `hle::d3d12x::culprit::tests::gpu_markers_of_a_finished_list_match` and `a_list_with_a_marker_in_above_its_marker_out_is_open` ran and passed. Earlier reports on this PR are Blackwell only, so this adds Turing. **Not tested** - No retail title and no `scripts/smoke.ps1` run, so no regression run - AMD GPUs; only Turing was run here - A real stalled queue with `XCL_GPU_CULPRIT` set was not exercised, since that needs a title **AI use** - Claude Code with Claude Sonnet 5.5 ran the commands and wrote this report. I checked the output.
crosettiremi commented 2026-11-24 17:06:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by crosettiremi on 2026-11-24T16:54:03Z.


I exercised the dispatch marker fixture on Windows with an RX 7900 XT on a downstream XCL stack carrying 7fa2ade. The readback buffer was created and the completed list's marker-in and marker-out fixture passed.

I also tested bounded slot registration locally. At capacity, existing lists keep their slot and a new list receives no slot. This keeps the slot registry consistent with the readback buffer's capacity when later diagnostics enumerate it. The focused module with that additional check passed all three tests and the release build completed. The game runs that motivated this check reported a partly executed command list with Dispatch next in DRED. I haven't attributed those hangs to a specific shader.

Hardware follow-up with the markers enabled and the same saved profile: the log confirmed marker initialization. The game was still presenting in the 116.1 s sample and then terminated on the title's write to zero at +0x23cf683. No device removal or watchdog-release marker report was recorded in this run, so it did not identify a stalled dispatch.

<!-- greyfinch-sync:ivall/xcl:comment:7138380744 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1323#issuecomment-7138380744). Originally posted by [crosettiremi](https://github.com/crosettiremi) on 2026-11-24T16:54:03Z. --- I exercised the dispatch marker fixture on Windows with an RX 7900 XT on a downstream XCL stack carrying 7fa2ade. The readback buffer was created and the completed list's marker-in and marker-out fixture passed. I also tested bounded slot registration locally. At capacity, existing lists keep their slot and a new list receives no slot. This keeps the slot registry consistent with the readback buffer's capacity when later diagnostics enumerate it. The focused module with that additional check passed all three tests and the release build completed. The game runs that motivated this check reported a partly executed command list with Dispatch next in DRED. I haven't attributed those hangs to a specific shader. Hardware follow-up with the markers enabled and the same saved profile: the log confirmed marker initialization. The game was still presenting in the 116.1 s sample and then terminated on the title's write to zero at +0x23cf683. No device removal or watchdog-release marker report was recorded in this run, so it did not identify a stalled dispatch.
IvyNotFound commented 2026-11-24 18:09:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by IvyNotFound on 2026-11-24T17:53:26Z.


Thanks @crosettiremi, you were right about the slot bound: once the 16 384 slots were taken, a new list was still put in the map with a slot past the buffer, and the next watchdog report would have read it. Fixed in a79d09d (squashed into the PR's commit, rebased onto main 9e3831e): slot_for gives a new list no slot when the buffer is full and leaves it out of the map, and the lists that have one keep it. Test a_list_past_the_last_slot_gets_none.

At a79d09d on an RTX 5080: cargo test --workspace --no-fail-fast -- --test-threads=4 779 passed, 0 failed, 41 ignored; the new runs are in the description.

AI use: Claude Code (Claude Opus 5.5) wrote the fix, the test and this reply, and ran the tests and the runs.

<!-- greyfinch-sync:ivall/xcl:comment:7139852071 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1323#issuecomment-7139852071). Originally posted by [IvyNotFound](https://github.com/IvyNotFound) on 2026-11-24T17:53:26Z. --- Thanks @crosettiremi, you were right about the slot bound: once the 16 384 slots were taken, a new list was still put in the map with a slot past the buffer, and the next watchdog report would have read it. Fixed in `a79d09d` (squashed into the PR's commit, rebased onto `main` `9e3831e`): `slot_for` gives a new list no slot when the buffer is full and leaves it out of the map, and the lists that have one keep it. Test `a_list_past_the_last_slot_gets_none`. At `a79d09d` on an RTX 5080: `cargo test --workspace --no-fail-fast -- --test-threads=4` 779 passed, 0 failed, 41 ignored; the new runs are in the description. AI use: Claude Code (Claude Opus 5.5) wrote the fix, the test and this reply, and ran the tests and the runs.
not-rex commented 2026-11-25 00:08:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by not-rex on 2026-11-24T23:19:40Z.


RTX 3080 (10 GB, driver 610.88), retail 1.0.2.1 into the world with XCL_GPU_CULPRIT=1: one stalled dispatch named, an indirect CS.

Tested: this PR at a79d09d3 merged onto 9e3831e1 + #1123 + #1254 (diagnostics), release, warm DXIL cache and save, XCL_PSO_WAIT_MS=50, A at 30 and 40 s, 400 s.

  • #101 at 87.8 s, 28 presents after it (last at 126.1 s), 12 GPU queue.Wait … 5000 ms timeouts (first at 130.7 s), 10 cycle breaks; the title's watchdog (+0x23cf683) at 178.4 s; peak commit 32.6 GB.
  • The culprit line came once, at the first release (130.7 s): "1 of 269 lists have dispatches started and not done: list 0x15e270a1a0: marker in #19676, last marker out #19675". The one dispatch is cs 18567a5f0145bde9, indirect, up to 1 dispatch.
  • It is not one of the sky ray-march programs named on #505 (50625695d2e6cbe7, 206ed63b96be21a1); neither hash appears in this run's log.
  • The 11 later releases printed no culprit line. I don't know whether that's the PR's rate limit or nothing new being in flight; a line per release (or a "same as before" line) would make that clear.

On this card the stall also goes away when split-wave64 compute and mesh programs are refused (#505, comment 7142113187), so 18567a5f0145bde9 is likely a split-wave64 program, though I haven't confirmed that from its code.

Not tested: more than one run; without XCL_PSO_WAIT_MS.

AI use: Claude Code (Claude Opus 5.5) ran the run on my machine through a scripted runner and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7147274751 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1323#issuecomment-7147274751). Originally posted by [not-rex](https://github.com/not-rex) on 2026-11-24T23:19:40Z. --- **RTX 3080 (10 GB, driver 610.88), retail 1.0.2.1 into the world with `XCL_GPU_CULPRIT=1`: one stalled dispatch named, an indirect CS.** **Tested:** this PR at `a79d09d3` merged onto `9e3831e1` + #1123 + #1254 (diagnostics), release, warm DXIL cache and save, `XCL_PSO_WAIT_MS=50`, A at 30 and 40 s, 400 s. - `#101` at 87.8 s, 28 presents after it (last at 126.1 s), 12 `GPU queue.Wait … 5000 ms` timeouts (first at 130.7 s), 10 cycle breaks; the title's watchdog (`+0x23cf683`) at 178.4 s; peak commit 32.6 GB. - The culprit line came once, at the first release (130.7 s): "1 of 269 lists have dispatches started and not done: list `0x15e270a1a0`: marker in #19676, last marker out #19675". The one dispatch is **cs `18567a5f0145bde9`, indirect, up to 1 dispatch**. - It is not one of the sky ray-march programs named on #505 (`50625695d2e6cbe7`, `206ed63b96be21a1`); neither hash appears in this run's log. - The 11 later releases printed no culprit line. I don't know whether that's the PR's rate limit or nothing new being in flight; a line per release (or a "same as before" line) would make that clear. On this card the stall also goes away when split-wave64 compute and mesh programs are refused (#505, comment 7142113187), so `18567a5f0145bde9` is likely a split-wave64 program, though I haven't confirmed that from its code. **Not tested:** more than one run; without `XCL_PSO_WAIT_MS`. AI use: Claude Code (Claude Opus 5.5) ran the run on my machine through a scripted runner and wrote this report.
DavidM1911 commented 2026-11-26 05:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T04:53:11Z.


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:7182988639 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1323#issuecomment-7182988639). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T04:53:11Z. --- 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.
Foniass commented 2026-12-01 05:26:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:26:19Z.


Triage (#1607) – head a79d09d

No merged change and no other open PR adds these dispatch markers: main only lists XCL_GPU_CULPRIT among the known diagnostic variables in shaders.rs. #2205 is stacked on this PR. It carries this commit rebased onto main, with the conflicts in bind.rs (ExecuteIndirect) and list_x.rs (watchdog log) resolved, and adds XCL_GPU_CULPRIT_ARGS on top. This branch conflicts with main in those two places, so #2205's resolution can be reused here.
Minor: culprit::before_dispatch uses groups [0, 0, n] to mean "indirect", so a direct Dispatch(0, 0, n) is logged as an indirect one. It is off by default and only affects the log text.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7301770247 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1323#issuecomment-7301770247). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:26:19Z. --- **Triage (#1607)** – head a79d09d No merged change and no other open PR adds these dispatch markers: main only lists `XCL_GPU_CULPRIT` among the known diagnostic variables in `shaders.rs`. #2205 is stacked on this PR. It carries this commit rebased onto main, with the conflicts in `bind.rs` (ExecuteIndirect) and `list_x.rs` (watchdog log) resolved, and adds `XCL_GPU_CULPRIT_ARGS` on top. This branch conflicts with main in those two places, so #2205's resolution can be reused here. Minor: `culprit::before_dispatch` uses groups `[0, 0, n]` to mean "indirect", so a direct `Dispatch(0, 0, n)` is logged as an indirect one. It is off by default and only affects the log text. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1323:upstream-pr/1323'
git switch 'upstream-pr/1323'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1323'
git switch 'upstream-pr/1323'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1323'
git switch 'upstream-pr/1323'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1323'
git switch 'main'
git merge --squash 'upstream-pr/1323'
git switch 'main'
git merge --ff-only 'upstream-pr/1323'
git switch 'main'
git merge 'upstream-pr/1323'
git push origin 'main'
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!1313
No description provided.