Repository navigation
d3d12_compile_pool_test: the graphics-only worker wakes the general one for a PSO's held-back job (TEST-COMPILE-POOL-GRAPHICS-WAKE) - #2505
Conversation
…ne for a PSO's held-back job With LEONIDA_COMPILE_THREADS=1, a PSO's job that is not graphics waits while a graphics build of that PSO runs on the graphics-only worker. The general worker has gone back to sleep by then, so only the graphics-only worker's wake on return lets it go. Follow-up to ProjectLeonida#2233 (a test for the case its review named). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tyrannys
left a comment
There was a problem hiding this comment.
Independent verification of head a3452751d on profile M: RTX 4070 SUPER 12 GB, NVIDIA 621.01, Windows 11, Ryzen 7 9800X3D. Built on main 39f52f39c with this PR and #2507 merged; the two PRs touch different files. MSVC RelWithDebInfo.
build\RelWithDebInfo\d3d12_compile_pool_test.exe, 5 runs in a row: 5/5PASS d3d12_compile_pool.- Under load: 16 copies at once, 3 rounds (48 runs). One run failed, at
d3d12_compile_pool_test.cpp:407!pool.has_compile_waiter(). That is intest_a_checkpoint_sees_a_demand_that_started_during_it, an existing test this PR does not change. The same check (:379) also failed once onmain's copy of the test under the same load (1 of 64 runs). So it is an older flake, not this PR. The new test never failed. - Mutant, as claimed:
PipelineCompiler::runwithif (!graphics_only) wake_.notify_all();fails only the new test, at:259log.wait_finished(3, 3s), in 3 of 3 runs. Every other test in the file passes. With the source restored, all tests pass again.
Clean. Approving. No game files used.
AI-assisted (Claude Code).
|
Reviewed at head Verification
Notes (non-blocking)
Approve. AI-assisted review + local MSVC verification. |
|
#2505 | head a345275 (merged cleanly with main 33db04a) | |
Claimed in the coordination issue as TEST-COMPILE-POOL-GRAPHICS-WAKE: #1608 (comment)
Follow-up to #2233, a test for the case named in its review: with
LEONIDA_COMPILE_THREADS=1, a PSO's job that is not graphics waits while a graphics build of that PSO runs on the graphics-only worker, and must go when that build returns.What
test_the_graphics_worker_wakes_the_general_one_for_its_psos_jobinruntime/test/d3d12_compile_pool_test.cpp:Test only; no runtime change.
Tested
GPUs tested: NVIDIA GeForce GTX 1050 Ti 4 GB desktop (profile S), driver 582.66, Windows 10 19045. Every number below is MEASURED on that machine (n=1 per run unless given); no game files were used.
GTX 1050 Ti 4 GB, NVIDIA 582.66, Windows 10 19045, MSVC RelWithDebInfo:
ctest -R compile_pool: passes; the test executable 20 runs in a row: 0 failures.runtime/shims/d3d12_pipeline_compile.h,PipelineCompiler::run:wake_.notify_all()): fails at the new test and attest_a_finished_job_wakes_the_idle_workers;if (!graphics_only) wake_.notify_all();): fails at the new test only; every other test in the file passes.check_no_game_data.pyon the file,git diff --check: clean.AI-assisted: yes (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code