gpu profile: read MoltenVK's late timestamps again instead of dropping them; vk_gpu_profile runs alone (RT-GPU-PROFILE-NOT-READY) #2942

Closed
github-bot wants to merge 2 commits from github-bot/gh-2942 into main AGit
Owner

@⁠Tauwni on GitHub · 2026-12-01 20:07 UTC · original
Tauwni:fix/gpu-profile-not-ready-wait → main · +77 −8 · 4 files · 2 commits · closed without merging

Claimed in the coordination issue as: RT-GPU-PROFILE-NOT-READY (#2570)

What and why

LEONIDA_GPU_PROFILE (runtime/src/vulkan_gpu_profile.h) reads a submission's timestamps once, without waiting, when the fence dispatcher sees the submission's timeline-semaphore value. On an Apple M3 with MoltenVK 1.4.2, vkGetQueryPoolResults can still answer VK_NOT_READY at that point. Every timestamp of that submission was then dropped (unread), and vk_gpu_profile failed on entries.size() == 3.

MEASURED with a temporary fprintf of the return code: rc=1 used=7, which is VK_NOT_READY for all 7 timestamps of the test's submission. The real profile loses whole submissions on MoltenVK the same way, not only the test.

#2758 made the test skip its checks when a paravirtual GPU resolves no timestamps, on the guess that it was the CI VM. The same thing happens on real Apple hardware, and the cause is this read.

Changes:

  1. runtime/src/vulkan_gpu_profile.h resolve(): on VK_NOT_READY, read again every 1 ms for up to about 50 ms.
    • Not VK_QUERY_RESULT_WAIT_BIT: FenceWaitDispatcher also runs pending callbacks for a submission that may not have finished, when the context is marked lost (worker_threw, a failed vkQueueWaitIdle) or the queue is stopping. A wait there could block the resolve thread and shutdown's join(). READ IN CODE (vulkan_backend.h, FenceWaitDispatcher).
    • The retry runs before mutex_ is taken, on the profile's own resolve thread, so it never blocks submits.
  2. runtime/CMakeLists.txt: vk_gpu_profile gets RUN_SERIAL TRUE. Its check that cs heavy takes over twice cs light per call times the GPU, which a parallel ctest shares.
    • MEASURED once: light 1.28 ms/call for 300 turns vs heavy 2.33 ms for 40000, with all 7 timestamps read.
    • CI already runs ctest serially, so this only changes parallel local runs.
  3. Comments: the file header, runtime/README.md's LEONIDA_GPU_PROFILE row and the test's comment now say this. The header's "read on the fence thread" is corrected to the profile's resolve thread.

Tested

All MEASURED on an Apple M3 (Mac15,13), macOS 27.0, MoltenVK 1.4.2 (Homebrew), Release build, main 93ffc4821 (the branch is now rebased on 99a29d10e, no conflict).

Red/green, only vulkan_gpu_profile.h swapped. Same build, vk_gpu_profile_test run 150 times on its own while a parallel ctest of all the other tests loops beside it:

vulkan_gpu_profile.h pass no timestamps (entries.size() == 3) other failure
main 144 6 0
this PR 150 0 0

Full ctest -j8, 159 tests:

  • main: vk_gpu_profile failed in 3 of 56 runs (two without timestamps, one on the heavy/light ratio).
  • This PR: 0 failures in 40 + 20 runs.

Other checks:

  • tests/test_ctest_registration.py, tests/test_runtime_paths.py and tests/test_docs_*.py pass.
  • python -I scripts/check_no_game_data.py is clean.

This is a flake, not a deterministic failure, so there is no single test that is always red on main. The red side is the 6/150 above.

Not run by the author at first: Windows, Linux, AMD/NVIDIA, the paravirtual macOS runner. (Updated after review: since then, Linux on RTX 4070 SUPER and RADV by merzleckeier (comment), and Windows 10 on an AMD RX 9060 XT at 93b95ef87; the paravirtual macOS runner is still not run.) On a driver that never answers VK_NOT_READY after the semaphore, the change adds nothing but one comparison.

GPUs tested: Apple M3 (8-core GPU), MoltenVK 1.4.2, macOS 27.0

AI-assisted: yes — Claude Opus 5.5 (Claude Code) wrote and measured the change. A separate read-only Claude Opus 5.5 reviewer agent audited the diff before this PR. Its findings were applied:

  • the bounded retry instead of WAIT_BIT;
  • consistent failure rates;
  • "semaphore", not "fence";
  • one read lambda.

Not checked by a second human yet.

Follow-up, not in this PR (also posted as finding: in #2570): runtime/src/vulkan_gpu_labels.h:162 reads its label timestamps once after the fence, with no retry, and may drop them the same way on MoltenVK.

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

Residual cost (added after review)

  • A driver that answers VK_NOT_READY for the whole budget costs ~50 ms per submission on the profile's single resolve thread (51 reads, 1 ms sleeps), so at worst ~20 submissions/s are resolved and the queue grows. ~52.7 ms MEASURED on Linux by merzleckeier (comment).
  • On Windows a 1 ms sleep can round up to the timer tick, so the worst case may be longer there. ASSUMED, not measured.
  • At shutdown, a batch already taken by the resolver is finished, so a lost device that keeps answering VK_NOT_READY could delay join() by ~50 ms per record in that batch. READ IN CODE.
  • Opt-in diagnostic (LEONIDA_GPU_PROFILE=1), so acceptable. Skipping the retry once the resolver is stopping would be a small follow-up.
  • Since 93b95ef87: vk_gpu_profile_test has a deterministic sub-case for the retry: VK_NOT_READY twice, then VK_SUCCESS, 3 reads, no WAIT_BIT. It is red with the retry disabled and green with it.
**@⁠Tauwni** on GitHub · 2026-12-01 20:07 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2942) `Tauwni:fix/gpu-profile-not-ready-wait` → `main` · +77 −8 · 4 files · 2 commits · closed without merging Claimed in the coordination issue as: RT-GPU-PROFILE-NOT-READY (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570) ### What and why `LEONIDA_GPU_PROFILE` (`runtime/src/vulkan_gpu_profile.h`) reads a submission's timestamps once, without waiting, when the fence dispatcher sees the submission's timeline-semaphore value. On an Apple M3 with MoltenVK 1.4.2, `vkGetQueryPoolResults` can still answer `VK_NOT_READY` at that point. Every timestamp of that submission was then dropped (`unread`), and `vk_gpu_profile` failed on `entries.size() == 3`. MEASURED with a temporary `fprintf` of the return code: `rc=1 used=7`, which is `VK_NOT_READY` for all 7 timestamps of the test's submission. The real profile loses whole submissions on MoltenVK the same way, not only the test. #2758 made the test skip its checks when a *paravirtual* GPU resolves no timestamps, on the guess that it was the CI VM. The same thing happens on real Apple hardware, and the cause is this read. Changes: 1. **`runtime/src/vulkan_gpu_profile.h` `resolve()`**: on `VK_NOT_READY`, read again every 1 ms for up to about 50 ms. - Not `VK_QUERY_RESULT_WAIT_BIT`: `FenceWaitDispatcher` also runs pending callbacks for a submission that may not have finished, when the context is marked lost (`worker_threw`, a failed `vkQueueWaitIdle`) or the queue is stopping. A wait there could block the resolve thread and shutdown's `join()`. READ IN CODE (`vulkan_backend.h`, `FenceWaitDispatcher`). - The retry runs before `mutex_` is taken, on the profile's own resolve thread, so it never blocks submits. 2. **`runtime/CMakeLists.txt`**: `vk_gpu_profile` gets `RUN_SERIAL TRUE`. Its check that `cs heavy` takes over twice `cs light` per call times the GPU, which a parallel ctest shares. - MEASURED once: light 1.28 ms/call for 300 turns vs heavy 2.33 ms for 40000, with all 7 timestamps read. - CI already runs ctest serially, so this only changes parallel local runs. 3. **Comments**: the file header, `runtime/README.md`'s `LEONIDA_GPU_PROFILE` row and the test's comment now say this. The header's "read on the fence thread" is corrected to the profile's resolve thread. ### Tested All MEASURED on an Apple M3 (Mac15,13), macOS 27.0, MoltenVK 1.4.2 (Homebrew), Release build, `main` `93ffc4821` (the branch is now rebased on `99a29d10e`, no conflict). **Red/green, only `vulkan_gpu_profile.h` swapped.** Same build, `vk_gpu_profile_test` run 150 times on its own while a parallel ctest of all the other tests loops beside it: | `vulkan_gpu_profile.h` | pass | no timestamps (`entries.size() == 3`) | other failure | |---|---|---|---| | `main` | 144 | 6 | 0 | | this PR | 150 | 0 | 0 | **Full `ctest -j8`, 159 tests:** - `main`: `vk_gpu_profile` failed in 3 of 56 runs (two without timestamps, one on the heavy/light ratio). - This PR: 0 failures in 40 + 20 runs. **Other checks:** - `tests/test_ctest_registration.py`, `tests/test_runtime_paths.py` and `tests/test_docs_*.py` pass. - `python -I scripts/check_no_game_data.py` is clean. This is a flake, not a deterministic failure, so there is no single test that is always red on `main`. The red side is the 6/150 above. **Not run by the author at first:** Windows, Linux, AMD/NVIDIA, the paravirtual macOS runner. *(Updated after review: since then, Linux on RTX 4070 SUPER and RADV by merzleckeier ([comment](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/2942)), and Windows 10 on an AMD RX 9060 XT at `93b95ef87`; the paravirtual macOS runner is still not run.)* On a driver that never answers `VK_NOT_READY` after the semaphore, the change adds nothing but one comparison. GPUs tested: Apple M3 (8-core GPU), MoltenVK 1.4.2, macOS 27.0 AI-assisted: yes — Claude Opus 5.5 (Claude Code) wrote and measured the change. A separate read-only Claude Opus 5.5 reviewer agent audited the diff before this PR. Its findings were applied: - the bounded retry instead of `WAIT_BIT`; - consistent failure rates; - "semaphore", not "fence"; - one read lambda. Not checked by a second human yet. Follow-up, not in this PR (also posted as `finding:` in #2570): `runtime/src/vulkan_gpu_labels.h:162` reads its label timestamps once after the fence, with no retry, and may drop them the same way on MoltenVK. ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) ### Residual cost (added after review) - A driver that answers `VK_NOT_READY` for the whole budget costs ~50 ms per submission on the profile's single resolve thread (51 reads, 1 ms sleeps), so at worst ~20 submissions/s are resolved and the queue grows. ~52.7 ms MEASURED on Linux by merzleckeier ([comment](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/2942)). - On Windows a 1 ms sleep can round up to the timer tick, so the worst case may be longer there. ASSUMED, not measured. - At shutdown, a batch already taken by the resolver is finished, so a lost device that keeps answering `VK_NOT_READY` could delay `join()` by ~50 ms per record in that batch. READ IN CODE. - Opt-in diagnostic (`LEONIDA_GPU_PROFILE=1`), so acceptable. Skipping the retry once the resolver is stopping would be a small follow-up. - Since `93b95ef87`: `vk_gpu_profile_test` has a deterministic sub-case for the retry: `VK_NOT_READY` twice, then `VK_SUCCESS`, 3 reads, no `WAIT_BIT`. It is red with the retry disabled and green with it.
resolve() read the timestamps once, without waiting, when the submission's
semaphore value was reached. On an Apple M3 (MoltenVK 1.4.2)
vkGetQueryPoolResults can still answer VK_NOT_READY then, so every timestamp
of the submission was dropped, and vk_gpu_profile_test failed on
entries.size() == 3 (6 of 150 runs under a parallel ctest). It now reads
again, every 1 ms for up to about 50 ms. Not VK_QUERY_RESULT_WAIT_BIT: the
fence dispatcher also runs the callback for a submission that may not have
finished (a device marked lost, a stopping queue), where a wait could hang.

The test's check that heavy takes over twice light per call times the GPU,
which a parallel ctest shares: it now runs with RUN_SERIAL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:11:16 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-01 20:40 UTC · original

Native Linux check of the bounded timestamp retry on 28df9fe5 merged into 66c79286f. The unmodified ctest -V -R ^vk_gpu_profile$ passed 12/12 with zero validation errors and no skips, three runs per tree on each of RTX 4070 SUPER and Radeon RADV (Ryzen 7800X3D). The generated CTest configuration also showed RUN_SERIAL only with the PR.

I then wrapped the first submission’s query function and ran each case three times per adapter and tree. The compute and graphics work still ran on the selected GPU.

  • Normal query passed first time on both trees.
  • Injecting three VK_NOT_READY results lost the submission on main after one call. The PR read all seven real timestamps and reported three entries on attempt 4 in all six runs.
  • Persistent VK_NOT_READY gave one unread submission on both trees. The PR stopped after 51 calls, 52.724–52.843 ms after the first call, against one on main.
  • An injected VK_ERROR_DEVICE_LOST stopped after one call on both trees. Every recorded query used the 64-bit flag with the wait bit clear.

The latter two cases intentionally fail the fixture’s existing three-entry assertion. This measures the retry mechanics with injected statuses on Linux. A natural MoltenVK delay and physical device loss were outside this check.

MEASURED with OpenAI Codex and a separate read-only review.

**@⁠merzleckeier** on GitHub · 2026-12-01 20:40 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2942#issuecomment-7325091251) Native Linux check of the bounded timestamp retry on `28df9fe5` merged into `66c79286f`. The unmodified `ctest -V -R ^vk_gpu_profile$` passed 12/12 with zero validation errors and no skips, three runs per tree on each of RTX 4070 SUPER and Radeon RADV (Ryzen 7800X3D). The generated CTest configuration also showed `RUN_SERIAL` only with the PR. I then wrapped the first submission’s query function and ran each case three times per adapter and tree. The compute and graphics work still ran on the selected GPU. - Normal query passed first time on both trees. - Injecting three `VK_NOT_READY` results lost the submission on main after one call. The PR read all seven real timestamps and reported three entries on attempt 4 in all six runs. - Persistent `VK_NOT_READY` gave one unread submission on both trees. The PR stopped after 51 calls, 52.724–52.843 ms after the first call, against one on main. - An injected `VK_ERROR_DEVICE_LOST` stopped after one call on both trees. Every recorded query used the 64-bit flag with the wait bit clear. The latter two cases intentionally fail the fixture’s existing three-entry assertion. This measures the retry mechanics with injected statuses on Linux. A natural MoltenVK delay and physical device loss were outside this check. MEASURED with OpenAI Codex and a separate read-only review.
Author
Owner

@⁠KelboLive on GitHub · 2026-12-01 21:28 UTC · original · reviewed

Correct and safe: the retry only runs on VK_NOT_READY, stays on the dedicated resolve thread outside mutex_, cannot outlive or overlap the recording's pool (the pool is recycled only after resolve() returns), and is a no-op on drivers that answer immediately. On this card the whole vk_gpu_profile test passes with unread 0 and 7 timestamps, and RUN_SERIAL TRUE is actually in the generated CTestTestfile.cmake.

One gap before merge: the new guard is untested. Replacing tries < 50 with tries < 0 still passes vk_gpu_profile on NVIDIA, because both the synthetic FakeTs and the real device return VK_SUCCESS first time. Please add a deterministic sub-case in vk_gpu_profile_test.cpp — a get_results that returns VK_NOT_READY twice, then SUCCESS — asserting unread == 0 and that the stamps are counted. Without it, only the out-of-tree MoltenVK run and merzleckeier's injection exercise the retry.

Two small things: runtime/README.md:462 still says "the read on the fence thread" while the header now says "the profile's resolve thread" — make them agree. And now is sampled before the retry (:253) but used for busy_ns/last_done (:292-295), so busy time is stamped slightly early; moving the sample after the loop removes the skew.

Worth stating the residual cost: ~50 ms per stubborn record on the single resolve thread, so if a driver answered NOT_READY for the whole budget, throughput drops to ~20/s and queued recordings (each holding a query pool) would accumulate — fine for an opt-in diagnostic, but it should be known.

Note: runtime/ is being deprecated in favour of the Rust runtimes, so please confirm with the maintainers that this diagnostic tool is still wanted before investing further.

**@⁠KelboLive** on GitHub · 2026-12-01 21:28 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2942#pullrequestreview-6140473301) · **reviewed** Correct and safe: the retry only runs on `VK_NOT_READY`, stays on the dedicated resolve thread outside `mutex_`, cannot outlive or overlap the recording's pool (the pool is recycled only after `resolve()` returns), and is a no-op on drivers that answer immediately. On this card the whole `vk_gpu_profile` test passes with `unread 0` and 7 timestamps, and `RUN_SERIAL TRUE` is actually in the generated `CTestTestfile.cmake`. One gap before merge: **the new guard is untested**. Replacing `tries < 50` with `tries < 0` still passes `vk_gpu_profile` on NVIDIA, because both the synthetic `FakeTs` and the real device return `VK_SUCCESS` first time. Please add a deterministic sub-case in `vk_gpu_profile_test.cpp` — a `get_results` that returns `VK_NOT_READY` twice, then `SUCCESS` — asserting `unread == 0` and that the stamps are counted. Without it, only the out-of-tree MoltenVK run and merzleckeier's injection exercise the retry. Two small things: `runtime/README.md:462` still says "the read on the fence thread" while the header now says "the profile's resolve thread" — make them agree. And `now` is sampled before the retry (`:253`) but used for `busy_ns`/`last_done` (`:292-295`), so busy time is stamped slightly early; moving the sample after the loop removes the skew. Worth stating the residual cost: ~50 ms per stubborn record on the single resolve thread, so if a driver answered `NOT_READY` for the whole budget, throughput drops to ~20/s and queued recordings (each holding a query pool) would accumulate — fine for an opt-in diagnostic, but it should be known. Note: `runtime/` is being deprecated in favour of the Rust runtimes, so please confirm with the maintainers that this diagnostic tool is still wanted before investing further.
- vk_gpu_profile_test: a fake vkGetQueryPoolResults answers VK_NOT_READY twice,
  then VK_SUCCESS; the check wants 3 reads, no WAIT_BIT, unread 0, 3 stamps.
  Red with the retry disabled (tries < 0), green with it.
- runtime/README.md: the row says the profile's resolve thread, as the header.
- vulkan_gpu_profile.h: one line on why now is sampled before the retry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠Tauwni on GitHub · 2026-12-02 00:10 UTC · original

@⁠KelboLive thanks for the careful read. Pushed 93b95ef87; point by point:

  1. Untested retry: added. vk_gpu_profile_test.cpp has a new sub-case with a fake vkGetQueryPoolResults that answers VK_NOT_READY twice, then VK_SUCCESS. It asserts 3 reads, VK_QUERY_RESULT_WAIT_BIT never set, submissions == 1, unread == 0, stamps == 3 and the 0.1 ms pipeline time. MEASURED on Windows 10 / RX 9060 XT (driver 32.0.23033.1002), ctest -R "^vk_gpu_profile$":

    • at 93b95ef87: passes 3/3 and prints late-timestamp retry unit check: OK (3 reads);
    • same tree with the retry disabled (tries < 50 → tries < 0, local only): fails 3/3 at line 473: FakeLate::calls() == 3 && !FakeLate::waited().

    So the guard is now exercised in-tree. The sub-case sleeps about 2 ms: READ IN CODE (vulkan_gpu_profile.h:269, 2 × 1 ms).

  2. README vs header: fixed. runtime/README.md now says "the read on the profile's resolve thread", as the header does.

  3. now before the retry: kept on purpose. now stands for when the completion was seen, as LEONIDA_GPU_LATENCY measures it. Sampled after the loop, up to ~50 ms of our own sleep would go into busy_ns and push last_done later, which adds skew rather than removing it. READ IN CODE (vulkan_gpu_profile.h:255 sample, :268-271 retry, :296-297 busy_ns/last_done). There is now a one-line comment saying so above the sample.

  4. Residual cost: stated in the description, under "Residual cost":

    • ~50 ms per stubborn record on the single resolve thread, so ~20 records/s at worst, with the queue growing;
    • possibly worse on Windows, where a 1 ms sleep can round up to the timer tick (not measured);
    • at shutdown, a batch already taken by the resolver is finished, so join() could wait that long per record.

Other checks at 93b95ef87, MEASURED: tests/test_ctest_registration.py and the 13 tests/test_docs_*.py pass (14 files, scripts/run_standalone_tests.py), and check_no_game_data.py passes on the three changed files (1 run). On this AMD card, the real-device part reads all 7 timestamps (MEASURED, 3/3), so it shows no regression only. Whether the retry fired there was not measured. The MoltenVK run of the new head is pending, on an Apple M3.

Deprecation: agreed. docs/testing.md says the C++ runtime/ is deprecated in favour of d3d12/ and the Rust Vulkan runtime, and runtime.yml no longer runs on pull requests. A related runtime/ PR, #2680, was closed for that reason. Maintainers: is this fix to an opt-in diagnostic still wanted? If not, I'll close it.

Verdict: NOT READY until a maintainer confirms runtime/ changes are still wanted. The review points are addressed, and the retry has a red/green test on this machine.

Checked by a separate reviewer agent on the same machine (numbers recomputed from the raw logs, ctest rerun 1/1); not by a second human yet. AI-assisted: yes (Claude Code).

**@⁠Tauwni** on GitHub · 2026-12-02 00:10 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2942#issuecomment-7330231851) @⁠KelboLive thanks for the careful read. Pushed `93b95ef87`; point by point: 1. **Untested retry: added.** `vk_gpu_profile_test.cpp` has a new sub-case with a fake `vkGetQueryPoolResults` that answers `VK_NOT_READY` twice, then `VK_SUCCESS`. It asserts 3 reads, `VK_QUERY_RESULT_WAIT_BIT` never set, `submissions == 1`, `unread == 0`, `stamps == 3` and the 0.1 ms pipeline time. MEASURED on Windows 10 / RX 9060 XT (driver 32.0.23033.1002), `ctest -R "^vk_gpu_profile$"`: - at `93b95ef87`: passes 3/3 and prints `late-timestamp retry unit check: OK (3 reads)`; - same tree with the retry disabled (`tries < 50` → `tries < 0`, local only): fails 3/3 at `line 473: FakeLate::calls() == 3 && !FakeLate::waited()`. So the guard is now exercised in-tree. The sub-case sleeps about 2 ms: READ IN CODE (`vulkan_gpu_profile.h:269`, 2 × 1 ms). 2. **README vs header: fixed.** `runtime/README.md` now says "the read on the profile's resolve thread", as the header does. 3. **`now` before the retry: kept on purpose.** `now` stands for when the completion was seen, as `LEONIDA_GPU_LATENCY` measures it. Sampled after the loop, up to ~50 ms of our own sleep would go into `busy_ns` and push `last_done` later, which adds skew rather than removing it. READ IN CODE (`vulkan_gpu_profile.h:255` sample, `:268-271` retry, `:296-297` `busy_ns`/`last_done`). There is now a one-line comment saying so above the sample. 4. **Residual cost: stated in the description**, under "Residual cost": - ~50 ms per stubborn record on the single resolve thread, so ~20 records/s at worst, with the queue growing; - possibly worse on Windows, where a 1 ms sleep can round up to the timer tick (not measured); - at shutdown, a batch already taken by the resolver is finished, so `join()` could wait that long per record. Other checks at `93b95ef87`, MEASURED: `tests/test_ctest_registration.py` and the 13 `tests/test_docs_*.py` pass (14 files, `scripts/run_standalone_tests.py`), and `check_no_game_data.py` passes on the three changed files (1 run). On this AMD card, the real-device part reads all 7 timestamps (MEASURED, 3/3), so it shows no regression only. Whether the retry fired there was not measured. The MoltenVK run of the new head is pending, on an Apple M3. **Deprecation:** agreed. `docs/testing.md` says the C++ `runtime/` is deprecated in favour of `d3d12/` and the Rust Vulkan runtime, and `runtime.yml` no longer runs on pull requests. A related `runtime/` PR, #2680, was closed for that reason. Maintainers: is this fix to an opt-in diagnostic still wanted? If not, I'll close it. Verdict: NOT READY until a maintainer confirms `runtime/` changes are still wanted. The review points are addressed, and the retry has a red/green test on this machine. Checked by a separate reviewer agent on the same machine (numbers recomputed from the raw logs, ctest rerun 1/1); not by a second human yet. AI-assisted: yes (Claude Code).
Author
Owner

@⁠Tauwni on GitHub · 2026-12-02 00:21 UTC · original

Mac check of 93b95ef87: vk_gpu_profile passes on an Apple M3 with MoltenVK 1.4.2.

MEASURED, Release build, head checked to be 93b95ef87:

Machine Run Result
Apple M3, macOS 26.5.1, MoltenVK 1.4.2 (Homebrew) ctest -R "^vk_gpu_profile$", alone, 3 runs 3 / 3 pass. Each prints late-timestamp retry unit check: OK (3 reads) and queue: 1 submissions, 7 timestamps
same vk_gpu_profile_test 150 times while ctest -j7 -E "^vk_gpu_profile$" loops alongside 150 / 150 pass, 0 with no timestamps

For comparison, in an earlier run of the same harness, the build with main's version of the header had 6 of 150 runs with no timestamps.

READ IN CODE: the test fails unless the queue has 1 submission, 7 timestamps, 0 unread and 0 dropped, so each pass also means 0 unread.

Only vk_gpu_profile was run at this head.

Not checked by a second agent or human yet.
AI-assisted: yes (Claude Code)

**@⁠Tauwni** on GitHub · 2026-12-02 00:21 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2942#issuecomment-7330449771) Mac check of 93b95ef87: `vk_gpu_profile` passes on an Apple M3 with MoltenVK 1.4.2. MEASURED, Release build, head checked to be `93b95ef87`: | Machine | Run | Result | |---|---|---| | Apple M3, macOS 26.5.1, MoltenVK 1.4.2 (Homebrew) | `ctest -R "^vk_gpu_profile$"`, alone, 3 runs | 3 / 3 pass. Each prints `late-timestamp retry unit check: OK (3 reads)` and `queue: 1 submissions, 7 timestamps` | | same | `vk_gpu_profile_test` 150 times while `ctest -j7 -E "^vk_gpu_profile$"` loops alongside | 150 / 150 pass, 0 with no timestamps | For comparison, in an earlier run of the same harness, the build with `main`'s version of the header had 6 of 150 runs with no timestamps. READ IN CODE: the test fails unless the queue has 1 submission, 7 timestamps, 0 unread and 0 dropped, so each pass also means 0 unread. Only `vk_gpu_profile` was run at this head. Not checked by a second agent or human yet. AI-assisted: yes (Claude Code)
github-bot closed this pull request 2026-12-02 00:46:34 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-12-02 00:44 UTC · original

Thank you for the careful work and verification on MoltenVK timestamp handling and standalone test execution. The legacy C++/Vulkan runtime/ directory is now frozen and deprecated as active development focuses on the d3d12/ and clean-room Rust vulkan/ tracks, so we are closing open legacy runtime/ PRs. We really appreciate the effort that went into this.

**@⁠aslan2142** on GitHub · 2026-12-02 00:44 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2942#issuecomment-7330912052) Thank you for the careful work and verification on MoltenVK timestamp handling and standalone test execution. The legacy C++/Vulkan runtime/ directory is now frozen and deprecated as active development focuses on the d3d12/ and clean-room Rust vulkan/ tracks, so we are closing open legacy runtime/ PRs. We really appreciate the effort that went into this.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!2942
No description provided.