77ec1b3bb69cdfb61dd4d44c55ea2539dcebbc75
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
88a5a8d641 |
matrix: the golden table and the runtime without the old-runtime wording
The golden hash table compiles through Device::from_queries (docs/ VALIDATION.md already says so), not Device::new, so the matrix's comments and its problem message say that. The gate keeps its behaviour under its own name: results.golden_table_moved (was old_path_moved), GOLDEN_FIX (was OLD_PATH_FIX), and the leg's problem "GOLDEN TABLE MOVED" (was "OLD PATH MOVED"), with VALIDATION.md's line and the test following. The "new runtime" of results.py's and instructions.tsv's comments is now the runtime. Unchanged, because readers depend on them: the exemption phrase "old-runtime regression fix" (matched in the subjects of commits since the table's last bless), and the record keys harness-new/, harness-new-warm/, harness-gpu-new/ and harness-alone/<row>/<pair>/new, which the harness prints from its --runtime value and which the 60 stored notes under refs/notes/matrix hold: a base's records are compared key by key, so renamed keys would compare nothing against every stored base. |
||
|
|
5d725aeec7 |
Delete metal2vulkan-runtime, with every test and script that read it
The cutover deletes the old runtime: crates/metal2vulkan-runtime and its workspace member go. Nothing in the workspace depends on it any more: the harness and conformance lost their old arms, and validation dropped its dependency in its own commit. Adapted in this commit, so no gate reads the deleted tree: - CI and scripts/linux-gate-ci: the crate's per-feature clippy group, its `-p` in the Windows clippy and the test step, and its private-doc-links row go. Packaging needs no edit: the workspace's published crates are now metal2vulkan and metal2vulkan-air. - The published-crates test lists those two; devtools' carried trees and the five nextest groups of the old crate's tests go. - scripts/api-signatures: the crate leaves CRATES, FLOORS and the header, its self-test trees name rt (read by the same rules), and the table is re-blessed (the old crate's 4555 rows go); api_signatures.rs pins the three crates left. - scripts/refusal-surface: the old crate's tree and its sections go (RuntimeGap, AppleOnly, Problem and the problem enums it forwards to), with their 87 reach rows, the `--delegations` verb and the test that counted the old Problem's delegations; docs/REFUSALS.md is regenerated. The basis check now holds rt's refusal enums alone, which it already required. - scripts/api-cost-coverage goes: it measured only the old crate's surface. - feature_vocabulary.rs: the old crate's two enable tables go; the Khronos and validation tables stay held to the vocabulary. - The conformance coverage generator's by-hand roots read rt instead of the old crate, and docs/CONFORMANCE-COVERAGE.md is regenerated (MTLResourceOptions' row, which only the old crate modelled, gives way to rt's MTLCommandBufferError). - scripts/matrix: the harness times the new runtime alone (`--runtime new`), so the rules that judged it against the old one go: the new-over-old budget with its floors (floors.tsv, gpu-floors.tsv), ceilings, card variance and status table (status.tsv), the frozen arm, the base spread and the timing once more it set off, the re-timed pairs, the five creation rounds and the old runtime's parked tests and records. A harness row's time is judged as a cross-GPU outlier, with its alone runs as before, and the frame and burst rows by their stored instruction counts; the creation rows run once, in their own process. docs/VALIDATION.md's matrix section says these rules. Checked locally (python, no build): signatures.py --check and --selftest, refusal_surface.py --check, --selftest and --missing-basis, coverage.py --check and --selftest, and scripts/matrix's 49 tests pass. The compile gate (fmt, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Windows clippy for gnullvm and msvc, workspace Rustdoc, packaging, the touched crates' suites on the host and on lavapipe) runs on this sha as potluck jobs that the landing note names. |
||
|
|
eb16d34f15 |
matrix: the instructions gate judges the new runtime's own threads, a driver's left beside
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. |
||
|
|
d2e5edbd60 |
harness and matrix: record the whole process's instructions per run and gate the frame and burst rows on them
The harness now counts each timed run's user-space instructions across the whole process. The counts repeat run to run where the times do not: rt's p50 spread across processes was 0.16 to 0.27%. The matrix gates the frame and burst rows (WALL_ROWS) on those counts, beside the host-time judgement and floors they keep under the GPU-p50 rule. devtools: ProcessInstructions opens one user-space instructions counter per core type with inherit set, so every thread started after it opens counts: the runtimes' and the drivers' threads too. The harness opens it first thing in main, before any device starts a thread, and each timed run records the counted delta. A node that refuses perf_event_open, and every non-Linux host, records none. harness: each row whose runs were not sized prints `M2V-MATRIX instructions harness-<runtime>/<row>/per_run <p50>`. matrix: a frame or burst row with a count on both runtimes passes the instructions gate as well as its time's limit: - it fails when rt's count is over old's; - it fails when rt's count is past 1.03 times the stored count in scripts/matrix/instructions.tsv (one column per driver family, `all` where the legs agree within 3%); - it is named when its count is more than 1% under the stored count, which then ratchets down; - it is named when no count is stored, and is then gated against old alone. The single-kernel rows stay judged on their GPU p50 as before, and every row's count is shown beside its times. The old runtime's harness counts are parked from the per-record instructions-versus-base check, like its times. instructions.tsv starts empty: a matrix run's counts seed it. VALIDATION.md describes the time rules and the gate in one paragraph. Verified: scripts/matrix tests (python3 -m unittest discover, 45 OK) on this Mac, over this rule and the GPU-p50 rule together. Before the rebase, check m3-max-45591 on msi (at c597bb3603) passed clippy x4, nextest for devtools, harness and rt (118 passed, with the process counter's test), and the release harness build. Count job m3-max-45641 on the 2080's node recorded the per_run count of every row on both runtimes except long_4cb, which is sized. |