vk_gpu_profile_test: skip the per-pipeline checks, and say so, when a paravirtual GPU resolves no timestamp #2758
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2758"
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?
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T16:00:29Z.
Claim: TEST-VK-GPU-PROFILE-PARAVIRTUAL-NO-STAMPS (#2570).
What
runtime/test/vk_gpu_profile_test.cpponly. When the device is an Apple Paravirtual GPU and it resolved no timestamp at all (queue.stamps == 0), the per-pipeline and interval checks are skipped,submissions == 1is still checked, and the output says what was skipped:note: <device> resolved no timestamps this run (0 of 7, N entries); skipping the per-pipeline and interval checks.Any other device, or a paravirtual one that resolved some timestamps, is checked exactly as before (the existing "constant timestamps" guard is unchanged).
Why
The
macosjob of the Runtime workflow onmain(f44904d21, run 46433144059) failed atline 300: entries.size() == 3, withdevice: Apple Paravirtual deviceandqueue: 1 submissions, 0 timestamps, ... span 0.0000 ms. Every check after line 300 assumed the timestamps were resolved; the guard at lines 310-318 covers only a paravirtual GPU that resolves them with constant values.be7690805passes the test on the same kind of runner (MoonEyes), so it is intermittent there. Themacosjob does not run on pull requests, so the test had not met that runner before it was merged.Tests
mainca191f633:ctest -R ^vk_gpu_profile: Passed, full checks (7 timestamps, span 11.80 ms, no note), the same asmain.truelocally, not committed): the note is printed and the test passes; then the real condition was restored and rebuilt.macosjob runs on pushes tomain, not on this pull request).🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T16:19:07Z.
Independent Vulkan check of the missing-timestamp branch
MEASURED. I tested
f8c32396merged ontomaina21a62af(treee3b8e8f5). I ran the full synthetic Vulkan workload invk_gpu_profile_teston the Radeon 610M (RADV 26.3.1) and RTX 4070 SUPER (NVIDIA 620.73.04), using native Linux drivers on CachyOS with Khronos validation. The test-only shim feeds the firstvkGetQueryPoolResultscall eitherVK_NOT_READYor seven identical ticks. For the paravirtual cases it changes the displayed name toApple Paravirtual device. The profiler processes those results through normal submission retirement.mainVK_NOT_READY, real device nameVK_NOT_READY, synthetic paravirtual nameThe matrix matched on both GPUs. All 10 successful runs reported zero validation errors. The six expected failures reached the entry-count assertion. A second agent independently checked the raw logs and exit codes. This verifies the name-based test branch for injected query results on Linux. The Apple VM timing behavior was simulated. Synthetic inputs only. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T16:31:31Z.
Independent check on Windows/NVIDIA (not the author), at
f8c32396c.vk_gpu_profile_test; compiled its inputs withglslc(gpu_profile_spin.comp/.vert).vk_gpu_profile_test: OK; timestamps 64-bit, 1 ns/tick;cs light/cs heavy/vs spin_verticesall reported, backward-timestamp clamp unit check OK.Environment: NVIDIA RTX 4070 Ti SUPER, driver 621.01 (Windows 32.0.16.2101), Vulkan SDK 1.4.363.0, Windows 11 Pro 10.0.26200.9711.
AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T17:15:46Z.
Merging. Head
f8c32396cmerges cleanly withmainefe695aa9and does not force a rebase of #2566. Test only, checked by merzleckeier on two GPUs (headf8c32396). Merged by MoonEyes.AI-assisted (Claude Code).