upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorOreoFR <29048345+OreoFR@users.noreply.github.com>2026-11-27 02:53:48 +0100
committerOreoFR <29048345+OreoFR@users.noreply.github.com>2026-11-27 02:53:48 +0100
commitb2cccb953a4282b8b82e7f5266a0b9dc22fab68b (patch)
tree2f2632afb67e26c9c256d72e9a5ed779adeed0be /runtime/test/queue_proxy_test.cpp
parente5d1a14681fa65de2d8b49b2efeeec62370ec8ee (diff)
compile gate: probes from submissions only, a ring of recent leaves, and a held limit
Review of #2412 (nicoco23, ecox982745): - A later create leaving hid the earlier one a held probe needs: last_leave_seq_ kept one leave per kind, so when A (there when the submission entered) and then B (entered after it) left just before the submission came back, B replaced A and the probe was not counted. The recent leaves are now a ring of 64, and any leave of the kind, of a create the submission entered beside, within 500 ms before it came back counts. - Presents and idle or semaphore waits passed the gate as probes: they can take seconds on their own while the GPU is busy, so a slow present could mark a kind as holding, and quick ones could turn a kind off. SubmitTurn takes `probe` (true by default); the presents, vkQueueWaitIdle, vkDeviceWaitIdle and vkWaitSemaphores turns pass false. vkQueueSubmit and vkQueueBindSparse probe. - A kind that holds submissions was waited for with no limit, so a false verdict brought back the unbounded gate for the rest of the run. It is now waited for up to LEONIDA_COMPILE_GATE_HELD_WAIT_MS (60 s; 0: no limit), after which the creates in the driver are gone past and not waited for again. The header comment that said a false alarm "only keeps the bounded gate" is rewritten. Tests: submit_mutex_test gains both finish orders of A and B, B alone with A still there, a 2.1 s present that judges nothing, and a holding kind gone past at a 400 ms held limit. All pass (MSVC, Windows 11). The docs tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions