Repository navigation
Tests: the ExecuteIndirect bind test takes the warp-test lock - #3609
fromthemoonx wants to merge 1 commit into
Conversation
|
Review (head 45ab946, diff read, not a merge-check; checks red):
Fine: test-only; the guard is the first local, so it is held until the test's lists and allocators are dropped, and taking the same AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
later_queue_completion_during_sleep_reclaims_before_wait_deadline failed 10 of 30 runs of hle::d3d12x::bind::tests:: at --test-threads=8 on main 6bfb5c5 (`result` Stopped, not Progressed), never at 1 or 2 threads. The fence-wait tests take lock_warp_tests because they count on the process-wide fenced two-pass batches (FENCED_RES / FENCED_BYTES). execute_indirect_reads_the_arguments_written_before_it does not. Once another test has hooked the device, its allocator Reset / Release go through alloc_reset / alloc_release -> console_list::allocator_reset -> release_allocator_res, which calls reclaim_fenced (backtraces of every reclaim_fenced call from that test in parallel runs; run alone it makes none). In a failing run it reclaimed while FENCED_BYTES held the waiting test's two batches: it took the later batch the test had just completed, so the test's own reclaim found nothing, its scripted clock ran to the deadline and the wait stopped. The test now takes the same lock. 60 of 60 module runs at 8 threads pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45ab946 to
756325f
Compare
|
You're right, thanks: I took backtraces of every
The comment and the commit message now name that path. The head is AI use: Claude Code (Claude Opus 5.5). |
|
Follow-up review (head 756325f, since 45ab946, diff read, not a merge-check; checks red):
New: none. Fine: the code is otherwise unchanged and test-only. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
hle::d3d12x::bind::tests::later_queue_completion_during_sleep_reclaims_before_wait_deadlinefails in parallel runs of its module: 10 of 30 runs ofhle::d3d12x::bind::tests::at--test-threads=8onmain6bfb5c5(bind.rs:10023,resultisStopped, notProgressed). It does not fail at 1 or 2 threads.The fence-wait tests take
lock_warp_testsbecause they count on the process-wide fenced two-pass batches (FENCED_RES/FENCED_BYTES).execute_indirect_reads_the_arguments_written_before_itdoes not take it. Once another test has hooked the device, its allocatorReset/Releasego throughalloc_reset/alloc_release->console_list::allocator_reset->release_allocator_res, which callsreclaim_fenced. I took backtraces of everyreclaim_fencedcall from that test in parallel runs (scratch change, not in this PR); run alone it makes none. In a failing run (an earlier scratch log of every caller) it reclaimed whileFENCED_BYTESwas 67371008, the waiting test's two batches (64 MiB + 256 KiB). It took the later batch the waiting test had just completed. The waiting test's own reclaim then found nothing, its scripted clock ran to the deadline, andwait_oldest_fenced_untilreturnedStopped.wait_oldest_fenced_reclaims_in_flight_buffer_before_refusingalso failed once in 30 module runs of the same tree with a test-only PR merged (#3511); it did not fail in the 60 runs with this change.What is in it
crates/xcl/src/hle/d3d12x/bind.rs(tests only):execute_indirect_reads_the_arguments_written_before_ittakeslock_warp_testslike the other tests that reach the fenced batches. No runtime code changes.bind.rscounts as a runtime file forpr_check.py, so this needs thetest-onlylabel instead of a smoke pair.Tested
hle::d3d12x::bind::tests:: --test-threads=8: 60 of 60 runs pass with this change (30 more on the current head756325f8, rebased ontomainf07e426d, also 30 of 30), against 20 of 30 onmain6bfb5c5(10 failures oflater_queue_completion_during_sleep_reclaims_before_wait_deadline).execute_indirect_reads_the_arguments_written_before_itstill runs here (not skipped): 1 passed.cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4on756325f8: 2904 passed, 0 failed, 51 ignored. SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same asmain.Not tested
AI use
🤖 Generated with Claude Code