Files
metal2vulkan/docs
Anees Iqbal d07650b362 Warm passes: judge the byte budget on every device, and say what pipeline_bytes counts
What: tests::warm::a_byte_budget_stops_the_pass no longer skips its 1-byte leg when the pass
counted no driver bytes. That leg runs over a directory of its own, which holds none of the
records' driver data, so it now asserts that the pass wrote records' data (driver_saves > 0),
counted it (pipeline_bytes > 0), and stopped after the first record, on every device. A new test,
a_pass_over_its_records_own_directory_counts_only_what_it_writes, warms records over the directory
whose creations made them and asserts that the pass counts driver bytes exactly where its makings
wrote data. Where it wrote none, it asserts that a 1-byte budget stopped nothing.
WarmStatistics::pipeline_bytes, Device::warm, the runtime README and docs/HOWTO.md now say that a
making whose data the directory holds already adds nothing. Over that directory the budget binds
only where a making writes new data.

Why: the consumer read pipeline_bytes 0 on every boot of the RTX 5080, though the warm pass made
248 pipelines, and asked whether the counter is broken there (a making's keep on a thread
without the pass, or a path that never keeps). Measured with a scratch diagnostic at 1bb0b87a5a,
not committed:
- RTX 5080, a fresh directory: 23,800 bytes counted, 3 records' data written.
- The 5080 over the records' own directory: 0 bytes, 0 written, 2 unchanged, 2 found.
- M3 Max on MoltenVK 1.4.2: 13,362 bytes and 3 found respectively.
So keep() runs on the pass's thread and counts on NVIDIA too, and the consumer's 0 is the true
value. Their records come from the boot before, over the same directory, whose creations wrote
every making's data. The old test's skip branch could have hidden a broken counter; now a pass
that writes data and counts none fails.

Verified: tests::warm on the M3 (MoltenVK 1.4.2), 6 passed. The 1-byte pass over a fresh
directory counted 8,003 bytes with 1 record's data written; the pass over its own directory
counted 0 bytes, wrote 0 and found 3. cargo clippy -p metal2vulkan-runtime --all-targets
--all-features -D warnings with --cfg m2v_gpu; public rustdoc clean. The RTX 5080 run is in the
hand-over.

(cherry picked from commit 83cc2dbe6fb610c6ad59a741a7170812611cf703)
(cherry picked from commit 1d43003372f23275ceb7fcc463a34abedbeff9a7)
2026-11-03 04:54:41 -08:00
..