Direct DXIL: split wave64 uses a group barrier for 1-wave groups – GPU hangs in parallel test runs on NVIDIA (RTX 5070) #1727

Closed
opened 2026-11-26 05:02:48 +00:00 by github-bot · 7 comments
Owner

@⁠IgorAntunes66 on GitHub · 2026-11-24 19:56 UTC · original

With XCL_DIRECT_DXIL=1, the lib tests hang the GPU (DXGI_ERROR_DEVICE_HUNG 0x887a0006, nvlddmkm event 153) in
a large share of parallel runs on an RTX 5070; the HLSL path does not.

Environment: RTX 5070 12 GB (wave32 only → split wave64), driver 621.24, Windows 11 26H2 (26300),
rustc 1.100.0, DXC 1.9.2602.17, main c160d86, debug.

Measurements (cargo test -p xcl --lib [-- filter] --test-threads=N; hang = 0x887a0006 in the log plus
nvlddmkm 153 in the System event log):

Configuration Filter Threads Runs Hung
default (HLSL, spin exchange) whole lib 4 25 (interleaved) 0
XCL_DIRECT_DXIL=1 whole lib 4 25 (interleaved) 11
XCL_DIRECT_DXIL=1 whole lib 1 5 0
default (HLSL, spin) gpu::recomp::tests::gpu_ 4 8 1
HLSL, XCL_WAVE64_SPIN=0 (group barrier) gpu::recomp::tests::gpu_ 4 12 4
XCL_DIRECT_DXIL=1 gpu::recomp::tests::gpu_ 4 8 3
XCL_DIRECT_DXIL=1 + #1456 gpu::recomp::tests::gpu_ 4 12 8

The test that reports the hang varies (gpu_wave64_vs_spill_slots_and_identity, gpu_wave64_ps_spill_slots,
gpu_split_wave64_waves_diverge, gpu_wave32_and_wave64_src_vccz_execz, gpu_valu_float_and_int, …), nearly all
wave64 programs. Each passes alone (10/10). gpu_sparse_vram_descriptors_buffers_and_xmem fails with
"submit 1 lane 0 mismatch" in every hung run, also with #1456 applied (which makes it pass alone): it only waits
5 s for its fence, so it looks like a victim of the hang rather than its cause.

Likely cause (hypothesis, not proven): for split wave64 with one console wave per group (33–64 threads, and
kernel mode), the direct translator meets the two halves with a group barrier (Partner::Present →
Lw::meet → GROUP_SYNC, kernel.rs:234-238 / lanes.rs:216). The HLSL path deliberately uses the bounded
arrival-counter exchange there by default (emit.rs:4172, XCL_X_SPIN 1) "so divergent wave32 halves can never
permanently deadlock a GPU SM at an unbounded GroupMemoryBarrierWithGroupSync()". Forcing barriers on the HLSL
path (XCL_WAVE64_SPIN=0) also raises the hang rate (4/12 vs 1/8), which fits, though the samples are small.
Using the spin exchange in the direct translator for 1-wave groups would need the counters/slots set up outside
the multi-wave compute case (lanes.rs:39-47, 94-102); I have not tried that.

Not tested: AMD / native wave64; D3D12 debug layer / DRED (not installed here); a patched direct translator;
release builds. One hang also occurred on the default spin path (1/8), so there may be a second, rarer source.

AI use: Claude Code (claude-opus-5-5) ran the measurements, read the code and drafted this issue; I reviewed it.

**@⁠IgorAntunes66** on GitHub · 2026-11-24 19:56 UTC · [original](https://github.com/xcl-dev/xcl/issues/1727) With `XCL_DIRECT_DXIL=1`, the lib tests hang the GPU (DXGI_ERROR_DEVICE_HUNG 0x887a0006, nvlddmkm event 153) in a large share of parallel runs on an RTX 5070; the HLSL path does not. **Environment:** RTX 5070 12 GB (wave32 only → split wave64), driver 621.24, Windows 11 26H2 (26300), rustc 1.100.0, DXC 1.9.2602.17, main c160d86, debug. **Measurements** (`cargo test -p xcl --lib [-- filter] --test-threads=N`; hang = 0x887a0006 in the log plus nvlddmkm 153 in the System event log): | Configuration | Filter | Threads | Runs | Hung | |---|---|---|---|---| | default (HLSL, spin exchange) | whole lib | 4 | 25 (interleaved) | 0 | | `XCL_DIRECT_DXIL=1` | whole lib | 4 | 25 (interleaved) | 11 | | `XCL_DIRECT_DXIL=1` | whole lib | 1 | 5 | 0 | | default (HLSL, spin) | `gpu::recomp::tests::gpu_` | 4 | 8 | 1 | | HLSL, `XCL_WAVE64_SPIN=0` (group barrier) | `gpu::recomp::tests::gpu_` | 4 | 12 | 4 | | `XCL_DIRECT_DXIL=1` | `gpu::recomp::tests::gpu_` | 4 | 8 | 3 | | `XCL_DIRECT_DXIL=1` + #1456 | `gpu::recomp::tests::gpu_` | 4 | 12 | 8 | The test that reports the hang varies (gpu_wave64_vs_spill_slots_and_identity, gpu_wave64_ps_spill_slots, gpu_split_wave64_waves_diverge, gpu_wave32_and_wave64_src_vccz_execz, gpu_valu_float_and_int, …), nearly all wave64 programs. Each passes alone (10/10). `gpu_sparse_vram_descriptors_buffers_and_xmem` fails with "submit 1 lane 0 mismatch" in every hung run, also with #1456 applied (which makes it pass alone): it only waits 5 s for its fence, so it looks like a victim of the hang rather than its cause. **Likely cause (hypothesis, not proven):** for split wave64 with one console wave per group (33–64 threads, and kernel mode), the direct translator meets the two halves with a group barrier (`Partner::Present` → `Lw::meet` → `GROUP_SYNC`, kernel.rs:234-238 / lanes.rs:216). The HLSL path deliberately uses the bounded arrival-counter exchange there by default (emit.rs:4172, `XCL_X_SPIN 1`) "so divergent wave32 halves can never permanently deadlock a GPU SM at an unbounded GroupMemoryBarrierWithGroupSync()". Forcing barriers on the HLSL path (`XCL_WAVE64_SPIN=0`) also raises the hang rate (4/12 vs 1/8), which fits, though the samples are small. Using the spin exchange in the direct translator for 1-wave groups would need the counters/slots set up outside the multi-wave compute case (lanes.rs:39-47, 94-102); I have not tried that. **Not tested:** AMD / native wave64; D3D12 debug layer / DRED (not installed here); a patched direct translator; release builds. One hang also occurred on the default spin path (1/8), so there may be a second, rarer source. **AI use:** Claude Code (claude-opus-5-5) ran the measurements, read the code and drafted this issue; I reviewed it.
github-bot 2026-11-26 05:02:48 +00:00
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:02:48 +00:00
Author
Owner

@⁠akimfomin on GitHub · 2026-11-24 20:06 UTC · original

PortBridge linked this report to the shader compiler effort in #1269. I traced two paths at the reported c160d86 that may help isolate the next check.

Logging the emitter and the group dimensions per submission would distinguish those cases in the existing reproducer. This is a source check; no GPU hang was reproduced here. PortBridge. AI use: OpenAI Codex (GPT-6) traced these paths and prepared the note.

**@⁠akimfomin** on GitHub · 2026-11-24 20:06 UTC · [original](https://github.com/xcl-dev/xcl/issues/1727#issuecomment-7143052716) PortBridge linked this report to the shader compiler effort in [#1269](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269). I traced two paths at the reported `c160d86` that may help isolate the next check. - Both named VS/PS spill tests use `draw_console`, which [compiles their shaders through HLSL/DXC](https://github.com/xcl-dev/xcl/blob/c160d86ef2efe3a07e4dfb473e4fa72eafb413c0/crates/xcl/src/gpu/recomp/tests.rs#L2028-L2041) even under `XCL_DIRECT_DXIL=1`. Their failing test names alone do not identify the emitter of the submission that hung. - [`gpu_split_wave64_waves_diverge`](https://github.com/xcl-dev/xcl/blob/c160d86ef2efe3a07e4dfb473e4fa72eafb413c0/crates/xcl/src/gpu/recomp/tests.rs#L6095-L6111) submits both 64-thread and 256-thread shapes. Those select different branches of the [direct split Compute classifier](https://github.com/xcl-dev/xcl/blob/b9b6ea62080cc62fc19e212033372d01c6214e5c/crates/xcl/src/gpu/dxil/kernel.rs#L229-L267): `Present` at 64 and `Spin` at 256. Logging the emitter and the group dimensions per submission would distinguish those cases in the existing reproducer. This is a source check; no GPU hang was reproduced here. [PortBridge](https://github.com/akimfomin/PortBridge). AI use: OpenAI Codex (GPT-6) traced these paths and prepared the note.
Author
Owner

@⁠IgorAntunes66 on GitHub · 2026-11-24 20:21 UTC · original

Correction: the barrier hypothesis above is wrong. I bisected it and the trigger is the sparse VRAM test, which #614 already fixes.

RTX 5070, driver 621.24, main 85e3826, XCL_DIRECT_DXIL=1, --test-threads=4:

Run Filter Runs Hung
main gpu::recomp::tests::gpu_ 15 9
main + direct translator using the spin exchange for 1-wave groups (local patch) same 15 (interleaved with the row above) 9
main, --skip spill_slots --skip ps_whole_wave_reductions same 8 4
main, also --skip sparse_vram same 8 0
main + #614 same 12 0
main + #614 whole lib 10 0 (was 11/25)
c160d86 + #1456 gpu::recomp::tests::gpu_ 12 8

So the hang comes from gpu_sparse_vram_descriptors_buffers_and_xmem running beside the other GPU tests, and #614 removes it.
#1456 alone does not: the difference is #614's second commit (the sparse and UMA import tests take d3d12x::backend()
instead of calling real::init(), which per #614 could open the UMA windows twice and replace the sparse state in use).
@⁠akimfomin was right that the VS/PS tests in my list were victims, not the source. Why XCL_DIRECT_DXIL=1 makes the
race so much more frequent (0/25 vs 11/25 on the whole lib) I have not checked.

Nothing here points at the direct translator's barrier exchange, so this can be closed in favour of #614 unless a
maintainer wants it open for the frequency question.

AI use: Claude Code (claude-opus-5-5) ran the bisection and measurements and drafted this comment; I reviewed it.

**@⁠IgorAntunes66** on GitHub · 2026-11-24 20:21 UTC · [original](https://github.com/xcl-dev/xcl/issues/1727#issuecomment-7143410687) Correction: the barrier hypothesis above is wrong. I bisected it and the trigger is the sparse VRAM test, which #614 already fixes. RTX 5070, driver 621.24, main 85e3826, `XCL_DIRECT_DXIL=1`, `--test-threads=4`: | Run | Filter | Runs | Hung | |---|---|---|---| | main | `gpu::recomp::tests::gpu_` | 15 | 9 | | main + direct translator using the spin exchange for 1-wave groups (local patch) | same | 15 (interleaved with the row above) | 9 | | main, `--skip spill_slots --skip ps_whole_wave_reductions` | same | 8 | 4 | | main, also `--skip sparse_vram` | same | 8 | 0 | | main + #614 | same | 12 | 0 | | main + #614 | whole lib | 10 | 0 (was 11/25) | | c160d86 + #1456 | `gpu::recomp::tests::gpu_` | 12 | 8 | So the hang comes from `gpu_sparse_vram_descriptors_buffers_and_xmem` running beside the other GPU tests, and #614 removes it. #1456 alone does not: the difference is #614's second commit (the sparse and UMA import tests take `d3d12x::backend()` instead of calling `real::init()`, which per #614 could open the UMA windows twice and replace the sparse state in use). @⁠akimfomin was right that the VS/PS tests in my list were victims, not the source. Why `XCL_DIRECT_DXIL=1` makes the race so much more frequent (0/25 vs 11/25 on the whole lib) I have not checked. Nothing here points at the direct translator's barrier exchange, so this can be closed in favour of #614 unless a maintainer wants it open for the frequency question. AI use: Claude Code (claude-opus-5-5) ran the bisection and measurements and drafted this comment; I reviewed it.
Author
Owner

@⁠kais7654 on GitHub · 2026-11-24 20:40 UTC · original

Second-machine matrix on an RTX 5070 Laptop (12 GB, 32-lane waves → split wave64) — confirms the barrier-config instability and catches it in its shorter form: instead of hanging to the watchdog, one run loses the device and fails 9 tests at once, with nvlddmkm 153 events at the same wall-clock time.

Environment: NVIDIA GeForce RTX 5070 Laptop GPU 12 GB (split wave64), driver 616.87 (32.0.16.1687), Windows 11 26H2 (26300), rustc 1.100.0, Windows SDK 10.0.26100.0, debug, main c160d86 (the same commit).

Method: each run = a fresh cargo test -p xcl --lib [-- filter] -- --test-threads=N; a run killed after its timeout would count as a hang (none did — every run returned). System log checked for nvlddmkm 153 after the matrix.

Config Runs Result
default (HLSL, spin) whole lib, 4 threads 8 8 clean (809/0/22 every run)
XCL_DIRECT_DXIL=1 whole lib, 4 threads 12 0 hangs; 3/12 runs fail exactly one test: readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_state (real.rs:5825, assert_ne!(VirtualFree(mem, 0, MEM_RELEASE), 0) → VirtualFree returned 0)
XCL_DIRECT_DXIL=1 whole lib, 1 thread 3 3 clean
HLSL, XCL_WAVE64_SPIN=0 (group barrier), gpu_ filter, 4 threads 6 1/6 runs lose the device: 93 passed, 9 failed in 6.74 s, all submit 1 lane 0 mismatch: gpu_sparse_vram_descriptors_buffers_and_xmem, gpu_typed_buffer_loads_and_stores, gpu_valu_16_and_64_bit, gpu_wave32_and_wave64_src_vccz_execz, gpu_valu_float_and_int, gpu_wave64_ps_spill_slots, gpu_wave64_vs_spill_slots_and_identity, gpu_wave64_ps_whole_wave_reductions, title_textures gpu_mirror_upload…
XCL_DIRECT_DXIL=1, gpu_ filter, 4 threads 6 6 clean

Driver events: two nvlddmkm 153 events ("Error occurred on GPUID: 100", \Device\Video8) at 21:35:23 and 21:35:26 — exactly inside the failing barrier run's window. No display reset, no other provider events in the 9.5-minute window.

What this adds to the issue's hypothesis

  • The failing test set matches the issue's hung runs exactly (including gpu_sparse_vram_…'s "submit 1 lane 0 mismatch") — same phenomenon, failing fast instead of hanging the process.
  • It happened in the barrier config only, matching your XCL_WAVE64_SPIN=0 rows; the serial runs and the spin-config runs were clean.
  • On driver 616.87 the direct 4-thread runs did not hang at all (0/12, vs 11/25 on your 621.24) — small n, but the driver version is the obvious conjecture for the difference.
  • The coherent_buffer flake is probably not direct-DXIL-specific: kleborgn saw it once on plain main on AMD (their #1526 report), and its failing call is the test's own VirtualFree, which fails when the driver still holds deferred references to the released heap/resource. It looked direct-correlated here (3/12 vs 0/8) but that is a small sample.

Not tested: AMD, release builds, DRED/debug layer, XCL_DIRECT_DXIL=1 + #1456, native wave64.

AI use: Mistral Vibe (Mistral Medium 3.5) ran the matrix and drafted this report; the runs are on this machine, kais7654.

**@⁠kais7654** on GitHub · 2026-11-24 20:40 UTC · [original](https://github.com/xcl-dev/xcl/issues/1727#issuecomment-7143901090) **Second-machine matrix on an RTX 5070 Laptop (12 GB, 32-lane waves → split wave64)** — confirms the barrier-config instability and catches it in its shorter form: instead of hanging to the watchdog, one run loses the device and fails 9 tests at once, with nvlddmkm 153 events at the same wall-clock time. **Environment:** NVIDIA GeForce RTX 5070 Laptop GPU 12 GB (split wave64), driver 616.87 (32.0.16.1687), Windows 11 26H2 (26300), rustc 1.100.0, Windows SDK 10.0.26100.0, debug, `main` `c160d86` (the same commit). **Method:** each run = a fresh `cargo test -p xcl --lib [-- filter] -- --test-threads=N`; a run killed after its timeout would count as a hang (none did — every run returned). System log checked for nvlddmkm 153 after the matrix. | Config | Runs | Result | |---|---|---| | default (HLSL, spin) whole lib, 4 threads | 8 | 8 clean (809/0/22 every run) | | `XCL_DIRECT_DXIL=1` whole lib, 4 threads | 12 | 0 hangs; 3/12 runs fail exactly one test: `readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_state` (`real.rs:5825`, `assert_ne!(VirtualFree(mem, 0, MEM_RELEASE), 0)` → VirtualFree returned 0) | | `XCL_DIRECT_DXIL=1` whole lib, 1 thread | 3 | 3 clean | | HLSL, `XCL_WAVE64_SPIN=0` (group barrier), `gpu_` filter, 4 threads | 6 | **1/6 runs lose the device: 93 passed, 9 failed in 6.74 s, all `submit 1 lane 0 mismatch`**: gpu_sparse_vram_descriptors_buffers_and_xmem, gpu_typed_buffer_loads_and_stores, gpu_valu_16_and_64_bit, gpu_wave32_and_wave64_src_vccz_execz, gpu_valu_float_and_int, gpu_wave64_ps_spill_slots, gpu_wave64_vs_spill_slots_and_identity, gpu_wave64_ps_whole_wave_reductions, title_textures gpu_mirror_upload… | | `XCL_DIRECT_DXIL=1`, `gpu_` filter, 4 threads | 6 | 6 clean | **Driver events:** two nvlddmkm 153 events ("Error occurred on GPUID: 100", `\Device\Video8`) at 21:35:23 and 21:35:26 — exactly inside the failing barrier run's window. No display reset, no other provider events in the 9.5-minute window. **What this adds to the issue's hypothesis** - The failing test set matches the issue's hung runs exactly (including `gpu_sparse_vram_…`'s "submit 1 lane 0 mismatch") — same phenomenon, failing fast instead of hanging the process. - It happened in the **barrier** config only, matching your `XCL_WAVE64_SPIN=0` rows; the serial runs and the spin-config runs were clean. - On **driver 616.87** the direct 4-thread runs did not hang at all (0/12, vs 11/25 on your 621.24) — small n, but the driver version is the obvious conjecture for the difference. - The `coherent_buffer` flake is probably not direct-DXIL-specific: kleborgn saw it once on plain `main` on AMD (their #1526 report), and its failing call is the test's own `VirtualFree`, which fails when the driver still holds deferred references to the released heap/resource. It looked direct-correlated here (3/12 vs 0/8) but that is a small sample. **Not tested:** AMD, release builds, DRED/debug layer, `XCL_DIRECT_DXIL=1` + #1456, native wave64. **AI use:** Mistral Vibe (Mistral Medium 3.5) ran the matrix and drafted this report; the runs are on this machine, `kais7654`.
Author
Owner

@⁠upipibi on GitHub · 2026-11-24 21:13 UTC · original

Independent confirmation on Ampere: RTX 3070 8 GB, driver 616.56, Windows 11. Whole xcl lib, XCL_DIRECT_DXIL=1, --test-threads=4, --skip queue_slot_18 (the #1523 fake-fence crash would mask everything else). main and #1741 runs interleaved, #614 runs after them; each tree built in its own target dir:

Tree Runs Device removed (0x887A0005, nvlddmkm 153 in the System log)
85e3826 (main at #1741's base) 4 3
+ #1741 (254f51a) 4 1
+ #614 (0fb9f4a) 4 0

In every hung run, on both trees that hung, gpu_sparse_vram_descriptors_buffers_and_xmem fails first (submit 1 lane 0 mismatch, the 5 s fence wait). The wave64 VS/PS tests that fail with it are in flight when the device goes, consistent with IgorAntunes66's bisection. #1741 lowered the count here but did not remove it, as on the RTX 5070.

On kais7654's driver question: this is the older 616.56, and direct 4-thread main still hung 3 of 4, so the driver version does not explain their 0/12.

AI-assisted (Claude Code). Synthetic tests only.

**@⁠upipibi** on GitHub · 2026-11-24 21:13 UTC · [original](https://github.com/xcl-dev/xcl/issues/1727#issuecomment-7144654315) Independent confirmation on Ampere: RTX 3070 8 GB, driver 616.56, Windows 11. Whole `xcl` lib, `XCL_DIRECT_DXIL=1`, `--test-threads=4`, `--skip queue_slot_18` (the #1523 fake-fence crash would mask everything else). `main` and #1741 runs interleaved, #614 runs after them; each tree built in its own target dir: | Tree | Runs | Device removed (0x887A0005, nvlddmkm 153 in the System log) | |---|---|---| | `85e3826` (main at #1741's base) | 4 | **3** | | + #1741 (`254f51a`) | 4 | 1 | | + #614 (`0fb9f4a`) | 4 | **0** | In every hung run, on both trees that hung, `gpu_sparse_vram_descriptors_buffers_and_xmem` fails first (`submit 1 lane 0 mismatch`, the 5 s fence wait). The wave64 VS/PS tests that fail with it are in flight when the device goes, consistent with IgorAntunes66's bisection. #1741 lowered the count here but did not remove it, as on the RTX 5070. On kais7654's driver question: this is the older 616.56, and direct 4-thread `main` still hung 3 of 4, so the driver version does not explain their 0/12. AI-assisted (Claude Code). Synthetic tests only.
Author
Owner

@⁠PHeitor1 on GitHub · 2026-11-24 21:21 UTC · original

RTX 5060 Ti on the same driver (621.24), main 4178e88: it hangs here too, 13 of 15 whole-lib runs with XCL_DIRECT_DXIL=1, and 8 of 15 runs of the gpu_ filter on the HLSL path (with it unset). With #614: 0 of 55 runs failed or hung. Table and method: #614

This agrees with @⁠IgorAntunes66's bisection to #614. I only have 621.24, so I can't check @⁠kais7654's driver guess. The HLSL result is against a cause in the direct translator itself.

Run and written with Claude Code (Claude Opus 5.5).

**@⁠PHeitor1** on GitHub · 2026-11-24 21:21 UTC · [original](https://github.com/xcl-dev/xcl/issues/1727#issuecomment-7144831400) RTX 5060 Ti on the same driver (621.24), `main` `4178e88`: it hangs here too, 13 of 15 whole-lib runs with `XCL_DIRECT_DXIL=1`, and 8 of 15 runs of the `gpu_` filter on the HLSL path (with it unset). With #614: 0 of 55 runs failed or hung. Table and method: https://git.gtahub.st/github/xcl-dev--xcl/pulls/614 This agrees with @⁠IgorAntunes66's bisection to #614. I only have 621.24, so I can't check @⁠kais7654's driver guess. The HLSL result is against a cause in the direct translator itself. _Run and written with Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠cindertheblue on GitHub · 2026-11-24 23:09 UTC · original

AMD control (native wave64): RX 7600 XT, no hang in 10 whole-lib runs with XCL_DIRECT_DXIL=1, --test-threads=4 – main at 689f2db

Setup: AMD Radeon RX 7600 XT 16 GB (RDNA3, native wave64), driver 32.0.31041.1004 (AMD Software 26.8.1); Ryzen 5 9600X; Windows 11 Home 26200.9974; rustc 1.99.1; DXC 1.8.2502.11 (SDK 10.0.26100); debug build; main at 689f2db, no local changes.

Configuration Filter Threads Runs Hung
XCL_DIRECT_DXIL=1 whole lib (cargo test -p xcl --lib --no-fail-fast) 4 10 (back to back) 0
XCL_DIRECT_DXIL=1 whole workspace 4 2 0
XCL_DIRECT_DXIL=all whole workspace 4 2 0
default (HLSL) whole workspace 4 2 0
  • Hang = 0x887a0006 / DEVICE_HUNG in the log: none in any run. The System event log has no display-driver reset (4101 or other amdkmdag / dxgkrnl events) for the whole time the runs took.
  • Every lib run gave the same 925 passed, 1 failed, 25 ignored. The one failure is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, a wrong value at seed 722 (the AMD mismatch from #1679), not a hang.
  • This GPU runs 64-lane waves, so runner::split_wave64() is false and wave64 compute programs take the native form; only the few tests that ask for split: true themselves ran the split form. That fits the split form being the trigger, but it does not show it.

Not tested: XCL_SPLIT_WAVE64=1 (the split form forced on this card); XCL_WAVE64_SPIN=0; more than 10 lib runs; a release build; the integrated graphics.

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this comment from the real output; checked by me before posting.

**@⁠cindertheblue** on GitHub · 2026-11-24 23:09 UTC · [original](https://github.com/xcl-dev/xcl/issues/1727#issuecomment-7147077281) **AMD control (native wave64): RX 7600 XT, no hang in 10 whole-lib runs with `XCL_DIRECT_DXIL=1`, `--test-threads=4` – `main` at 689f2db** **Setup:** AMD Radeon RX 7600 XT 16 GB (RDNA3, native wave64), driver 32.0.31041.1004 (AMD Software 26.8.1); Ryzen 5 9600X; Windows 11 Home 26200.9974; rustc 1.99.1; DXC 1.8.2502.11 (SDK 10.0.26100); debug build; `main` at `689f2db`, no local changes. | Configuration | Filter | Threads | Runs | Hung | |---|---|---|---|---| | `XCL_DIRECT_DXIL=1` | whole lib (`cargo test -p xcl --lib --no-fail-fast`) | 4 | 10 (back to back) | 0 | | `XCL_DIRECT_DXIL=1` | whole workspace | 4 | 2 | 0 | | `XCL_DIRECT_DXIL=all` | whole workspace | 4 | 2 | 0 | | default (HLSL) | whole workspace | 4 | 2 | 0 | - Hang = `0x887a0006` / `DEVICE_HUNG` in the log: none in any run. The System event log has no display-driver reset (4101 or other `amdkmdag` / `dxgkrnl` events) for the whole time the runs took. - Every lib run gave the same 925 passed, 1 failed, 25 ignored. The one failure is `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`, a wrong value at seed 722 (the AMD mismatch from #1679), not a hang. - This GPU runs 64-lane waves, so `runner::split_wave64()` is false and wave64 compute programs take the native form; only the few tests that ask for `split: true` themselves ran the split form. That fits the split form being the trigger, but it does not show it. **Not tested:** `XCL_SPLIT_WAVE64=1` (the split form forced on this card); `XCL_WAVE64_SPIN=0`; more than 10 lib runs; a release build; the integrated graphics. **AI use:** Claude Code (Claude Opus 5.5) ran the tests and wrote this comment from the real output; checked by me before posting.
Author
Owner

@⁠cindertheblue on GitHub · 2026-11-24 23:28 UTC · original

Follow-up on AMD: gpu_sparse_vram_descriptors_buffers_and_xmem passed in all 36 runs on a tree without #614, and nothing hung, also with the split form forced (XCL_SPLIT_WAVE64=1) – RX 7600 XT, main at 689f2db

Correction to my comment above: I wrote that the result "fits the split form being the trigger". I had not read @⁠IgorAntunes66's bisection: the trigger is gpu_sparse_vram_descriptors_buffers_and_xmem running beside the other GPU tests, and #614 removes it. Please read my numbers against that.

Same machine and build as my comment above (RX 7600 XT, RDNA3, driver 32.0.31041.1004, debug, main at 689f2db, no local changes). #614 is not merged, so this tree still has the sparse VRAM test as it is on the NVIDIA runs.

Configuration Filter Threads Runs Hung sparse VRAM test
XCL_DIRECT_DXIL=1 whole lib (cargo test -p xcl --lib --no-fail-fast) 4 10 0 ok 10/10
XCL_SPLIT_WAVE64=1 XCL_DIRECT_DXIL=1 whole lib 4 10 0 ok 10/10
XCL_SPLIT_WAVE64=1 (HLSL) whole lib 4 10 0 ok 10/10
default, =1 and =all whole workspace 4 6 0 ok 6/6
  • The split form did run with the variable. bench_split_wave64 (-- --ignored --nocapture) prints wave64 (native) without it, and wave64 (split, barrier) (64-thread groups) / wave64 (split, counter-paired) (256) with it.
  • Hang = 0x887a0006 / DEVICE_HUNG / device removal in the log: none in any run. No display-driver event in the System log for the whole time (no amdkmdag / dxgkrnl / 4101), and no new LiveKernelReports.
  • Every lib run gave 925 passed, 1 failed, 25 ignored. The one failure is fuzz_validate_and_gpu_1, seed 722 (res[30] = 0x1, CPU 0x7fffffff, the AMD mismatch from #1679), not a hang.
  • So on this card the test that hangs the RTX 5070, 5060 Ti and 3070 runs fine beside the others without #614, on both paths and in both wave64 forms. That suggests the hang needs NVIDIA (or its driver) as well as the test's dependence on earlier tests, but one card doesn't settle it.

Not tested: #614 itself on this card; XCL_WAVE64_SPIN=0; other thread counts; a release build.

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this comment from the real output; checked by me before posting.

**@⁠cindertheblue** on GitHub · 2026-11-24 23:28 UTC · [original](https://github.com/xcl-dev/xcl/issues/1727#issuecomment-7147444306) **Follow-up on AMD: `gpu_sparse_vram_descriptors_buffers_and_xmem` passed in all 36 runs on a tree without #614, and nothing hung, also with the split form forced (`XCL_SPLIT_WAVE64=1`) – RX 7600 XT, `main` at 689f2db** **Correction to my comment above:** I wrote that the result "fits the split form being the trigger". I had not read @⁠IgorAntunes66's bisection: the trigger is `gpu_sparse_vram_descriptors_buffers_and_xmem` running beside the other GPU tests, and #614 removes it. Please read my numbers against that. Same machine and build as my comment above (RX 7600 XT, RDNA3, driver 32.0.31041.1004, debug, `main` at `689f2db`, no local changes). #614 is not merged, so this tree still has the sparse VRAM test as it is on the NVIDIA runs. | Configuration | Filter | Threads | Runs | Hung | sparse VRAM test | |---|---|---|---|---|---| | `XCL_DIRECT_DXIL=1` | whole lib (`cargo test -p xcl --lib --no-fail-fast`) | 4 | 10 | 0 | ok 10/10 | | `XCL_SPLIT_WAVE64=1 XCL_DIRECT_DXIL=1` | whole lib | 4 | 10 | 0 | ok 10/10 | | `XCL_SPLIT_WAVE64=1` (HLSL) | whole lib | 4 | 10 | 0 | ok 10/10 | | default, `=1` and `=all` | whole workspace | 4 | 6 | 0 | ok 6/6 | - **The split form did run with the variable.** `bench_split_wave64` (`-- --ignored --nocapture`) prints `wave64 (native)` without it, and `wave64 (split, barrier)` (64-thread groups) / `wave64 (split, counter-paired)` (256) with it. - Hang = `0x887a0006` / `DEVICE_HUNG` / device removal in the log: none in any run. No display-driver event in the System log for the whole time (no `amdkmdag` / `dxgkrnl` / 4101), and no new `LiveKernelReports`. - Every lib run gave 925 passed, 1 failed, 25 ignored. The one failure is `fuzz_validate_and_gpu_1`, seed 722 (`res[30] = 0x1, CPU 0x7fffffff`, the AMD mismatch from #1679), not a hang. - So on this card the test that hangs the RTX 5070, 5060 Ti and 3070 runs fine beside the others without #614, on both paths and in both wave64 forms. That suggests the hang needs NVIDIA (or its driver) as well as the test's dependence on earlier tests, but one card doesn't settle it. **Not tested:** #614 itself on this card; `XCL_WAVE64_SPIN=0`; other thread counts; a release build. **AI use:** Claude Code (Claude Opus 5.5) ran the tests and wrote this comment from the real output; checked by me before posting.
This discussion has been locked. Commenting is limited to contributors.
No description provided.