Repository navigation
Conversation
WARP is one device per process; tests on it at once now and then end the test binary with an access violation in d3d10warp.dll (fxceless#850). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B9LnuwwsEX2idaEjw7U39G
|
I checked the exact base
The PR's GitHub Actions run showed |
|
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head AI-assisted (Claude Code); no game data. |
|
Measured on another machine and card than the author's (Windows 11, RX 6950 XT, driver with
(The So the serialisation also removes the Earlier I also saw 9 crashes in AI-assisted (Claude Code); no game data. |
fxceless#875 and the per-chunk clamp Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
This is the answer to something I spent tonight failing to get, and I want to record that it is yours so nobody re-derives it: I had narrowed the crash exactly as far as your table (needs several modules on WARP at once; 0 crashes with the candidate test run alone, 20 runs; 1 in 16 with Independent numbers for your "without" column, Windows 10, software adapter, 32 whole-binary runs at four-way process load: 3 crashes. Serial: 0 in 16. So the crash tracks concurrency, not the test binary's content, which matches your filtered table. One ordering trap worth flagging loudly. Your note says with the lock That means #875 on its own turns the suite red nearly every time. #970 (or #849/#847) fixes that assertion to tolerate either legal winner. Land them as a pair — #970 first, then this — and the suite is green and crash-free. Land this alone and the crash goes away while CI goes red, which will read as "the lock broke the tests". I hit that same trap myself tonight: the 16 runs that produced my crash numbers also produced one failure of that exact assertion on current |
|
What holds up. The lock is well placed: What blocks it. By the PR's own table,
Merging this first makes the failure mode deterministic without fixing it. Smaller points.
|
For the crash in #850: the
victory-gputest binary now and then dies with an access violation when run with default threads.Where it dies. Under a small debugger loop, every second-chance access violation I looked at (the last 15) was at
d3d10warp.dll+0x8be6d, a read at0x24. Filtered runs of the test binary, crashes in 100 runs each:inplaceindirectinplace::andindirect::togetherinplaceindirectSo it needs tests of several modules on WARP at once.
victory-shader's tests already serialise for the same reason (ONE_AT_A_TIME). I have not found what in WARP goes wrong.The change. Test code only: a lock that the WARP tests in
inplace,indirect,queue2andshadowhold while they use the device.Measured, 250 runs of the whole
victory-gpulib test binary on f85101b, default threads:The "without" binary also had a retry in one
inplacetest (what #151 does), nothing else. Two things to know about the runs with the lock:warp_budget_saturates_...still fails, now in nearly every run (248 of 250; 142 without the lock). That is the order assumption Indirect test: the two groups charge the budget in either order (the test failed 5 runs in 6) #849 and Tests: the warp budget test accepts either group winning the budget race #847 fix: with the lock it runs as it does alone.queue2::tests::warp_a_fetch_behind_a_fence_holds_everything_sent_before_that_fencefailed once in 250. It isn't new: running onlyqueue2::, somequeue2test failed in 3 of 150 runs without the lock (I didn't note which) and in 0 of 150 with it. I have not looked into the cause.Limits (thanks @avt0m4t48 and @MamaLeVrai for checking):
queue2's harness leaksSecond, whose timing threads can still make fence calls after the lock is let go. The two host queue tests under opt-in diagnostics WARP and the ignored tiled-resource WARP test are outside the lock.amdxc64.dll), which f85101b: whole-suite run on an RX 6950 XT: one test fails most runs (PR #849), the lib test binary crashes now and then #850 also reports on an RX 6950 XT. My 15 were all in WARP.main, 0 in 250 with this PR; theinplacetest failed 10 times in 120 and 0 in 250 (their measurement, below).cargo xtask policypasses. Clippy's-D warningsfails onmain(#841), so I could not run it clean; I added no warnings to the test build.RX 9070 XT, driver 32.0.32029.2010, Windows 11 26200, Ryzen 7 5800X3D, run from a service session. No game data. AI-assisted (Claude Code); run on my machine.
🤖 Generated with Claude Code
https://claude.ai/code/session_01B9LnuwwsEX2idaEjw7U39G