Repository navigation
Conversation
|
Tested 5aef9eb (based on main f847748) on Windows 11 build 26300, MSVC 19.44, Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0: pass. No stall on NVIDIA or Intel, which adds two vendors next to your RDNA4 runs.
The watchdog line gives both counters as described, so a stall on the 780M should show which side stopped. AI-assisted (Claude Code). No game files. |
|
Independent TEST-840 check on PR head 5aef9eb: Windows, MSVC 19.44, Ninja RelWithDebInfo, NVIDIA GeForce RTX 3060 (driver 621.01). Built |
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head merged with main 4c52ce2, MSVC 14.51):
Only these two tests were built and run, not the full ctest. No concerns. |
|
Tested 5aef9eb on Windows 11, Visual Studio 2026, RelWithDebInfo, AMD Windows 26.11.2: pass on two AMD GPUs.
The hang itself didn't reproduce here either, on the same 26.11.2 driver: 50/50 runs of |
|
TEST-840 reproduces on an RDNA3 dGPU with this PR's watchdog: AMD Radeon RX 7600 (Navi 33, discrete), AMD driver 26.11.2 (LLPC, Vulkan 1.4.359), Windows 11 Pro 26200.9457, MSVC 19.44.35230, Ninja RelWithDebInfo.
Watchdog lines of the 8 stalls, all
So on this card it is not iGPU-only, and it needs concurrency: no sequential run stalled, while a third of the parallel ones did. Also: I can rerun with other settings on this card if that helps whoever takes the race ( |
|
Tested Control: a stall on the worker side. The watchdog test and @ricardotanaka's stalls both stop in Two small suggestions, based on @ricardotanaka's RX 7600 data:
AI-assisted (Claude Code). |
|
Tested
PR head as-is, no game files. AI-assisted. |
|
Tested
AI-assisted run (Claude). No game files involved. |
|
@Parakeet-Wheat, timing on the same RX 7600 (AMD 26.11.2, Windows 11 26200.9457): the extra time is after the report, at exit. This round:
One caveat: stdout is a pipe here, so the test's earlier lines only arrive with the watchdog's So the 35–40 s go after |
|
Tested Windows 11 (26200), MSVC 14.50 (VS 2026), Ninja RelWithDebInfo. Two GPUs: Ryzen 7 9700X iGPU (RDNA2, AMD 32.0.21042.62) and RTX 3070 (NVIDIA 610.74), picked with
Not checked: a real stall (none occurred), so the two counters were only seen in the forced-stall run; the whole AI-assisted; measured on my PC. |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Static review (no Vulkan build/GPU here): the The watchdog ( Nits: Approve. AI-assisted review, no game files, no GPU. |
|
Thanks @ricardotanaka for the RX 7600 numbers (the race is real on an RDNA3 dGPU, and only under concurrency) and @Parakeet-Wheat for the two suggestions; both are in, pushed 9e9f97e:
Tested on Windows 11 build 26300, MSVC 19.44, AMD RX 9060 XT (driver 32.0.32029.2010): @ricardotanaka, if you rerun your 24 with this head, the exit time after the report is what to look at. AI-assisted (Claude Code). No game files. |
|
Retested Worker-side stall control, rerun on this head (worker sleeps at round 50, default 60 s watchdog): Exit code 3. The run took about 62.5 s from start to its last output, which is the 60 s watchdog, the 1 s second read and start-up. So the new line names the stalled side correctly in the case your own run didn't cover (yours was the AI-assisted (Claude Code). |
…3 says where and ends (TEST-840) On an AMD Windows 26.11.2 iGPU about half the runs of vk_presenter_sync never left step 3 (concurrent present + queue.execute + tracker mutations), spinning at full CPU, and ctest had no timeout on the target, so one run stalled the whole suite. This does not fix the race; it makes the stall visible and bounded: - Step 3 has a watchdog thread. If the step has not finished after LEONIDA_PRESENTER_SYNC_WATCHDOG_S seconds (default 60) the test prints how many of the 40 presents are done and how many rounds the worker ran, and exits with 3. - vk_presenter_sync gets TIMEOUT 180 in ctest as the backstop. - vk_presenter_sync_watchdog tests the watchdog: LEONIDA_PRESENTER_SYNC_STALL=1 makes step 3 stall on purpose and the test must report it within 2 s (it fails against the old test source). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…atchdog with TerminateProcess (review) - After the watchdog line the test waits one second and prints the presents done and the worker rounds again, saying whether the worker is still looping, so one stalled run tells present() from the worker side. - The test ends with TerminateProcess(GetCurrentProcess(), 3) instead of std::_Exit(3): _Exit ends in ExitProcess, which runs every DLL's DLL_PROCESS_DETACH, the driver's included, and stalled runs on an RX 7600 took 35 to 40 s more to exit after the report. The exit code stays 3 and the watchdog test still matches the same line. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
9e9f97e to
8bd8cd3
Compare
|
pushed 8bd8cd3: rebased on main ec34b54 (it conflicted with #3551's new step 4; the only conflict was the header comment, both kept, no code change). Rebuilt on Windows 11 / RX 9060 XT (MSVC, Release): AI-assisted (Claude Code). |
|
Tested 8bd8cd3 on RTX 5070, driver 616.86, Windows 10.0.26200: pass. Built |
Claim: #3796 (comment) (TEST-840, the first half: "give it a timeout")
AI-assisted (Claude Code). Tested on Windows 11 build 26300, MSVC 19.44, AMD Radeon RX 9060 XT (driver 32.0.32029.2010 = AMD 26.11.2, Vulkan 1.4.359). No game files.
What this does, and what it does not
TEST-840: on a Radeon 780M under AMD 26.11.2,
vk_presenter_synchangs about half the time in step 3, at full CPU, andctesthad no timeout on the target, so one run stalled the suite (finding by @damagdpixl on #3574).It does not fix the race. I could not reproduce it on an RDNA4 dGPU with the same driver family: 12 sequential runs and 24 runs in 4 parallel processes (36 in all) all passed in about 0.5 s, so I have no stall to look at. The item says "an RDNA3 iGPU reproduces it"; whoever has one is better placed to find the race, and this PR gives them the data to start from.
Change
runtime/test/vk_presenter_sync_test.cpp: step 3 has a watchdog thread. If the step has not finished afterLEONIDA_PRESENTER_SYNC_WATCHDOG_Sseconds (default 60; a normal run takes about half a second) it printspresenter sync: step 3 did not finish in N s: K of 40 presents done, R worker rounds, worker failed: 0/1and exits with 3, instead of spinning until killed. The two counters say whether the stall is inpresent()(K stops below 40) or in the worker'squeue.execute()loop (R stops growing between two reports).runtime/CMakeLists.txt:vk_presenter_syncgetsTIMEOUT 180as the backstop (the reporter measured one passingctestrun at 49 s on another driver, so it is not set tight).vk_presenter_sync_watchdogtests the watchdog itself:LEONIDA_PRESENTER_SYNC_STALL=1makes step 3 sleep, and the test must print the line above within 2 s (PASS_REGULAR_EXPRESSION). Without the change to the test source it fails (Required regular expression not found), because the old test ignores the variable and finishes normally.Tested
ctest -R vk_presenter_sync:vk_presenter_sync0.4 s andvk_presenter_sync_watchdog2.4 s, 2/2 pass. The watchdog run printedstep 3 did not finish in 2 s: 0 of 40 presents done, 37339 worker rounds, worker failed: 0.vk_presenter_sync_watchdogfails as described above.GetEnvironmentVariableA, as other tests do).🤖 Generated with Claude Code