diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-27 00:19:05 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-27 00:19:05 +0100 |
| commit | f7b2497303466eb3bcebe7fe88cde838b1f45334 (patch) | |
| tree | 895cd5ab34c01e688e453951679e00adf5fc8a2d /runtime/test/cpp_unwind_test.cpp | |
| parent | a3404f5a415a3e62f03296fec92ce36fdb774508 (diff) | |
compile gate: a verdict per kind of create, re-armed by a held submission, and the creates in the driver on a device loss
On NVIDIA 621.40 every probe beside a compute create came back in 0-12 ms,
but a run whose gate those probes had turned off lost the device 9 s later
with a submission held 7.8 s beside a mesh pipeline create, and with the
gate off a vkQueueSubmit sat 54 s in the driver beside a 56 s mesh create
before the device was lost. Graphics creates never passed the gate.
- Graphics creates (mesh included) now pass the gate (PipelineState::build
through DriverTurn), and CompileTurn carries the create's kind, name,
trigger and size. The adaptive gate keeps a verdict per kind; a probe
counts for each kind that had a create in the driver from before the
submission entered until it came back, a held one against all of them.
- A kind that is off is still timed: a submission that stays 2 s or more
beside one of its creates turns that kind back on for the rest of the run.
- No submission goes ahead, at the limit or the probe budget, while a create
of a kind that holds submissions is in the driver, and such creates are
waited for even if one went past them before the verdict.
- A create never waits behind the submission of the thread that holds the
submit lock.
- VulkanContext::mark_device_lost logs the creates in the driver (kind,
program, size, thread, how long, whether submissions wait for them) and
each kind's gate.
Tested: submit_mutex (new gate_per_kind case; held-verdict cases adjusted;
also under LEONIDA_COMPILE_GATE=1 and =0), MSVC, Windows 11.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions