Docs: the split-wave64 exchange spins by default, since PR #798 #1262
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1262
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1262"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Rj45n on GitHub · 2026-11-24 13:58 UTC · original
Rj45n:docs/wave64-spin-default→main· +9 −4 · 1 files · 1 commits · openPR #798 (
066ae5b, "Recompiler: default split-wave64 exchange to bounded spin") made the counter variant the default for every group and made XCL_WAVE64_SPIN=0 the way back to group barriers. The note still described the state before it, in three places and in the opposite direction:emit.rs,x64_spin, reads the variable asmap_or(true, |v| v.trim() != "0"): unset means spin. Its own doc comment says so, andtests.rsreads it the same way.This matters beyond tidiness. As written, the note tells a reader on a wave32 GPU that the bounded wait (2^20 polls, then
xcl_x_deadand half-local values) is off for their one-wave groups, when it is on for every group. That is the first thing one would want to rule out when reading a load-sensitive failure in this family, such as #847.The old sentence "the test suite passes with it too" is dropped rather than carried over to the other direction: on an RTX 5070 Ti,
cargo test -p xcl --lib gpu::recomp -- --test-threads=4is not stable in either mode (four runs each: 0, 6, 5, 0 failures with the default and 1, 7, 1, 7 with XCL_WAVE64_SPIN=0). The failures are the family of #343 plus DXGI_ERROR_DEVICE_REMOVED collateral, and they do not separate by the variable, so the note should not claim an outcome either way.Documentation only; the emitter is unchanged.
Assisted-by: Claude Code (Claude Opus 5)
What is in it
Tested
cargo test --workspace -- --test-threads=4: N passed, N failed, N ignored (SKIPPED GPU tests: …)Regression run
main:
PR:
Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 14:05 UTC · original
Docs-only change; verified the claims against the tree: the split-wave64 exchange does spin by default since #798 merged (
docs/wave64-on-wave32.mdnow matches the code). No tests applicable.@Rj45n on GitHub · 2026-11-24 15:18 UTC · original
Thank you — both of these are useful, and the second one reproduces here.
On the vram filter run. That matches what I see: gpu_sparse_vram_descriptors_buffers_and_xmem is the one failure, it is not one of the tests this PR touches (it takes neither TEST_LOCK nor VRAM_TEST_LOCK), and it is the subject of #343. I have eight runs of gpu::recomp on an RTX 5070 Ti where it is the first failure in every failing run: 6 of 8 at --test-threads=4, and in half of those the device is then lost (DXGI_ERROR_DEVICE_REMOVED, 0x887A0005) and three to five further GPU tests fail with it. So one root cause can be reported as up to seven failures. Numbers are in #343 rather than here.
On the access violation — reproduced, on a different card, with a thread boundary. cargo test -p xcl --lib d3d12x on unmodified main (
930e8b4), RTX 5070 Ti 16 GB (driver 621.01), Windows 11 Pro 10.0.26300, Rust 1.98.1 MSVC, debug profile, 24 logical CPUs:--test-threads result
1 131 passed, 0 failed, 1 ignored (2/2 runs)
2 131 passed, 0 failed, 1 ignored (2/2 runs)
4 131 passed, 0 failed, 1 ignored (2/2 runs)
8 exit code: 0xc0000005, STATUS_ACCESS_VIOLATION (2/2 runs)
16 0xc0000005 (2/2 runs)
default (24) 0xc0000005 (3/3 runs)
The whole test binary dies; it is not a test reporting a failure. So this is not specific to your RTX 3060 Ti, and it is not specific to this branch — it is on bare main, and it is why the project's prescribed --test-threads=4 does not show it.
One observation I would not over-read: in all three default-parallelism runs the last line printed before the fault is the same family,
xcl: D3D12.X: Wait64BitValueX at 0x… >= 0x677 bridged to GPU queue.Wait
(waiter=q0/ty0, prod=qNone/tySome(2); wait-before-signal, after_write64=false)
Output is buffered, so the last line printed is not the faulting site, and I have no stack. It is a hint about where to point a debugger, nothing more.
Why it is not what this PR hardens. A 0xc0000005 takes the process down, so no mutex is left poisoned — there is nothing for a recovering guard to recover. The two are independent: this PR removes the cascade after a Rust panic under the d3d12x test locks, which is what turns the #718 flake into three reported failures. The access violation needs its own fix, and its own issue — it is a runtime bug on main, not a test-lock question. I will open one with the table above unless you would rather file it, since you saw it first; say the word either way.
Not tested: AMD, Linux / Wine, release profile, any retail title (no Xbox GDK files here, so no scripts/smoke.ps1), and I have not caught a stack for the fault.
AI use: Claude Code with Claude Opus 5 ran the thread-count matrix and drafted this; I checked each figure against the logs before posting.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.