The burst rows' whole-process count swung by up to 25 million instructions per run between processes on NVIDIA, all of it in the driver's own "[vkrt] Analysis" thread, while rt's own threads held steady (48-50k instructions per command buffer on the 2080, 23k on the XTX). A gate on the whole count judged the driver. rt now registers the OS id of every thread it starts in Gauges::threads, at one place: the spawn helper device::start, which the reaper, block-maker, submit and completion threads and the cache store's removal thread all start through. A thread holds its slot until it ends. The list is bounded by construction (5 slots), nothing on a commit or submit path reads it, and Device::new's paths are untouched. devtools gains ThreadInstructions (per-thread user-space counters by OS id, a thread that already ended skipped) and this_thread. The harness reads the runtime's thread ids through Device::threads before a row's timed runs, counts them with its own thread, and records own_per_run and others_per_run beside per_run. Every counter read now sits outside the timed wall span. results.py, per the planner's ruling: EXACT, the new runtime's own count at most 1.03 times its stored count (instructions.tsv now holds own counts), ratcheting down; LENIENT, named on every row, the own count at most the old runtime's whole count, old's driver share not separable since the old runtime names no threads. A whole count with no own count fails the row. The base comparison skips the harness's counts: the gate judges them. Verified: scripts/matrix/test_results.py, 42 tests OK locally. Builds and the other suites run on the check job.
798 B
798 B
| 1 | # The new runtime's user-space instructions per timed run that each frame and burst row |
|---|---|
| 2 | # (results.WALL_ROWS) is held to by the instructions gate (results.STORED_INSTRUCTIONS): its own |
| 3 | # threads' and the harness's thread's count (`own_per_run`, the threads a driver starts for itself |
| 4 | # left out), the p50 over a row's timed runs. One count per row in the `all` column where every leg's count lies within 3% |
| 5 | # of the others', else one per driver family (a GPU leg id's vendor). A count only ratchets down: |
| 6 | # a landing that lowers it by more than 1% stores the lower one, and nothing raises it without a |
| 7 | # ruling. A row with no count here is gated against the old runtime's whole count alone, and its |
| 8 | # line names it, until the counts of a matrix run are stored. |
| 9 | row all |