6750bb3c74ae79803f538d30cc09cb7c4e33fd0a
92
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
6750bb3c74 |
validation: run plain kernel cases through the runtime's public API
The engine candidate's Vulkan executor runs a kernel case of buffers (device buffer arrays included), threadgroup memory, function constants and linked functions, dispatched by threads or threadgroups and observing a buffer, through metal2vulkan-runtime as a consumer runs it (engine::runs_through_runtime decides it from the case's structure; platform::execute_runtime runs it): Instance, the loader's first device of the kind, Device with the default options, the library and function from the row's AIR with the case's constants and linked functions, one compute pipeline state, one Shared buffer per binding as the oracle makes it (a bound buffer padded to its declared size), one compute encoder, one dispatch, the bounded wait and the readback. Only on the native backend, in the stated leg and without a profile restriction; every other case keeps the executor's own context until its family's landing. The device worker enables VK_LAYER_KHRONOS_validation for the run through the loader's and the layer's variables (core and synchronization validation, every message, one log per process); a device with no active validation tool fails the run, and so does any logged message. The pipeline state's make is held to 500 MiB of peak live allocations (worker::alloc::bounded: an allocation past it ends the process with exit 87 and a stderr line) and 20 s; the driver's creation to the case's bound; every pipeline is made before the submission (prepare_dispatch). The row keeps what the runtime answers: the state's precision notes and the runtime fingerprint (engine::runtime_fingerprint: the product, SEMANTICS_VERSION and the runtime crate's sources, METAL2VULKAN_RUNTIME_CRATE_FINGERPRINT from build.rs). spv_sha256, the status, the census module's subgroup shape, containment and artifact are absent (Option, serde default); the index's staleness accepts the runtime fingerprint as this build's. ReductionOrder: the comparison keeps the note's per-operation allowance. The census strategies of a runtime row are the simdgroup float sums and products the case's AIR calls (check::interface::float_reductions, from the entry's module and each linked module), under the names the translator's strategy census gives them, so ComparisonClass::derive bounds the same operations with the same reorder table as before; a note no such operation explains (a simdgroup matrix's) stays unbounded, as before. ENGINE_EXECUTOR_ABI v185: rows of these cases record another environment and census. |
||
|
|
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. |
||
|
|
233fae4b20 |
Docs: the translator's Device comes from Device::from_queries
The translator's Device has one constructor, Device::from_queries; the Device::new its docs named is gone. Each mention in the translator's comments and in docs/VALIDATION.md now names from_queries. Three passages contrasted the two constructors over a `half` color output: under Device::new a device enabling storageInputOutput16 received it as a 16-bit `half` (StageIo::half_outputs). The stage plan declares no output 16-bit (lower/stage_io/plan.rs: `let half = false`), so every device receives the output widened to `float`, as docs/API.md section 9 already says. The stage_io docs and the two blend precision notes in pipeline/artifact.rs say so, and the M3 Max measurements of the 16-bit form, which no device now takes, are gone from those notes. VALIDATION.md's golden-table paragraph named the old runtime's path; it now says the table compiles through Device::from_queries. Comments and docs only; rewrapped paragraphs move only line breaks. |
||
|
|
c120b74608 |
replay player: a noted buffer's address in written bytes moves with the buffer
What: once the stream notes a buffer escaped (m2v.bufferEscaped), the player no longer stops at a written word whose value lies in that buffer's recorded range (PlayError::NotedWord, now deleted). It moves the word with AddressMap::move_noted to AddressMap::relocated(value), the address the play gave the innermost live range the value lies in plus the same offset, the same move an address argument gets. This happens after the census counts and before the bytes reach the backend, on all five write paths: - set*Bytes data; - a copied buffer's contents; - m2v.write; - the m2v.copyFromGuestRam pieces; - the m2v.privateBytes bytes before a dispatch. A new stream count, noted_words, counts the words moved. The census counts are still taken from the bytes as the stream holds them. Why: the runtime backend makes objects where it has room, so a pointer the program wrote into memory held the recorded address and pointed at nothing in the play. The stop ended every replay of a stream whose buffers escape (one of reims's plays stopped at frame 216). Every live range has the address the backend made its object at; a make without one already stops at the make. So every noted word can be placed, and the stop has no case left. A pointer into memory no live range holds cannot be told from data and plays as recorded, as before. This runs on every backend and device; nothing is keyed by identity. Docs: REPLAY-STREAM.md section 5 (written words and the escape note) and section 10 (the stream counts and the addresses line), VALIDATION.md, and command-replay's addresses line, which gains noted_words. Tests: - Unit (mock backend), a_word_into_a_buffer_noted_escaped_moves_with_it. After the note, a word in an m2v.write and a word in setBytes data each move to the mock's base plus their offset, and are counted as noted. The same word written before the note, and a word into a buffer with no note, play as written. - lavapipe, a_noted_buffer_s_address_in_written_bytes_moves_and_a_kernel_follows_it. A block at a recorded address holds a data buffer noted escaped (kind 0) and a buffer whose written word is the data buffer's recorded address plus 16. The fixture kernel ab_address (out[i] = held.p[i]) follows the moved word, and out holds the data words from the fifth on, exactly. - Negative: the two tests on development's tip without the move. The play stops with NotedWord. How verified: the lane's compile gate with the validation suite on lavapipe, and the negative job. |
||
|
|
9a1c8fe6dc |
metal2vulkan-rt takes the runtime's name: metal2vulkan-runtime, published
The cutover's last mechanical step. The old runtime is deleted, so its name is free: the crate moves to crates/metal2vulkan-runtime, its package is metal2vulkan-runtime and its library metal2vulkan_runtime, and every reference in the tree follows (sources, tests, scripts, CI, generated tables and docs). It is now a published crate, as AGENTS.md said it would be once it took the name: version 0.2.0 with the other two, the translator pinned exactly (=0.2.0, as the translator pins the AIR front end), documentation, keywords and categories, and copies of the repository's four license files, which the published-crates test now holds equal to the root's for three crates. CI packages it with the others. Prose that said it was unpublished, or counted two published crates, says three. AGENTS.md: facts only. The crate table row, the published-crates and version sentences, and the paragraph on the old runtime, whose name the runtime now carries (listed for the owner). Made by one script run on this tip. Verified by the job named in the landing note. |
||
|
|
4d3daeace8 |
Docs: the runtime is metal2vulkan-rt; HOWTO's sections on the deleted runtime give way to rt's README
metal2vulkan-runtime is deleted, so the user-facing docs name metal2vulkan-rt as the runtime:
- README.md: the crate table's runtime row is metal2vulkan-rt (not published yet); two published
crates; the git dependency and both README links name it; the runtime needs a Vulkan 1.3 device
with its README's floor; the sentence on the deleted runtime's repro bundles goes.
- CONTRIBUTING.md: the layout lists metal2vulkan-rt and metal2vulkan-conformance; the gate drops
`-p metal2vulkan-runtime` and gains the conformance suite's line, as AGENTS.md's gate has it;
two published crates for the signatures and the license copies; the refusal check reads the
runtime's refusal enums (the deleted runtime's `Problem` is gone).
- docs/VALIDATION.md: the gate as CONTRIBUTING's; "the new runtime" is the runtime in the matrix
rules and the command replay (the record keys and `harness --runtime new` keep their names).
- docs/HOWTO.md: the sections on the deleted runtime's shader cache, host memory (no-copy
buffers, unmapping, copied host buffers, guest RAM) and exported memory described its API
alone; each is now a pointer to rt's README (The cache directory, Imported blocks, Exported
blocks and Exported surfaces), stating only what that README states. Section 4 loses the
deleted runtime's repro bundles; section 8 loses its pipeline names, its start-up checks, its
suspend-time measurements of its own calls and its exit-handler probe, keeping the driver facts.
- docs/ARCHITECTURE.md and the CI workflow's comment name the runtime as metal2vulkan-rt.
Left for the translator's commit (part 2): FAST-PATHS.md and the DevicePolicy text in README,
CONTRIBUTING and VALIDATION's golden-table paragraph ("The old runtime's translations do not
move"), which follows the matrix's old-path rule.
Verified: the compile job is named in the hand-off.
|
||
|
|
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. |
||
|
|
8871d40bdf |
Validation: delete the old runtime's lane, parity harness, player backend and old-only tools
The old runtime goes at the cutover, and validation's old-runtime-only parts go with it: - runtime_lane/ (the old runtime's device tests) and the Metal predication probe that pinned its streams. Its one rt-based module, the replay player's rt device tests, moves to replay/rt_replay.rs with its three old-runtime comparisons cut (the census test on both runtimes goes; its rt half is its own test) and a pipeline cache directory of its own in the scratch root. - parity/ (Metal programs compared with the old runtime alone) and its Metal records under corpus/observations/parity. - The player's old backend (replay/old_runtime): command-replay always plays on the new runtime, and `--runtime` is gone. - corpus-draw-ab and format-scout (old-runtime-only tools), scripts/making-bench (corpus-draw-ab's bench), and the eleven public fixtures only the deleted sources used. - The nextest overrides of runtime_lane tests, the queue-plan test group and the few-channels profile; the matrix's device-test filter now names replay::rt_replay. - VALIDATION.md, REPLAY-STREAM.md and validation's README lose the lines of what went. The candidate executor's runtime path, and validation's dependency on metal2vulkan-runtime, go in the next commit. |
||
|
|
1de18aa609 |
Tests: the stream device tests of the old runtime's queue plan run at most four at a time
What: .config/nextest.toml's default profile puts the validation crate's
runtime_lane::replay_streams tests, and the three runtime_lane::rt_replay tests that play
on the old runtime too (a_private_shown_texture_is_checked_through_a_copy,
a_tiled_texture_takes_its_buffer_s_bytes_and_levels_at_first_use,
the_address_census_is_the_same_on_both_runtimes), in a test group, queue-plan, of
max-threads 4. These are the tests of the GPU legs' filter (DEVICE_TEST_FILTER in
scripts/matrix/matrix) that open a lane device of the old runtime's queue plan (at_plan).
docs/VALIDATION.md's paragraph on a GPU of few channels says so. The few-channels profile
stays: the lane's other at_plan tests lie outside the group, so a whole lane run on such a
GPU still takes it.
Why: the RTX 2080's GPU leg (NVIDIA 620.70.06) failed 3 runs of 3 at
|
||
|
|
6e010b843f |
rt lock budget: a test that counts nothing says so, and the matrix shows its leg as not counted
A lock-budget test on a node that names no M2V_LOCK_EVENT returned early and passed, printing a
LOCKS-UNMEASURED line the matrix's filter dropped with the rest of a passing test's output. The
gem10 and um870 legs passed that way at
|
||
|
|
6de7e37ba5 |
replay judge: a finished rt play prints its judged totals, held equal to the base
The replay player prints, on the new runtime, the matrix's judged metrics of a play: one `M2V-MATRIX metric replay-rt/STEM/RANGE/NAME N` record per metric, `N` the play's executed total (`Report::total`) of submissions, passes, barriers less `texture_clear_barriers`, bytes copied and pipelines created, and of the new textures zeroed, the clears and the zero-initialized ones as one count and their bytes as one. The split between a clear and a zero-initialized texture follows where the pool places it and may differ between two plays of one stream, so the two are judged summed, and the barrier after an upload's clears is left out of the barriers. A play that did not finish its range (it stopped, or ended before frame F's present where it plays to F) or whose backend skipped anything prints none (`judged_records`). The matrix's rule holds a `replay-` metric equal to the base's, failing a change either way, and fails a leg that lacks a record its base has: a short play does not pass (`EQUAL_METRICS`). The counters' docs say the split may differ between two runs of one program; VALIDATION.md and REPLAY-STREAM.md say what the judge does. Tests: the judged totals on the fake backend (the net barriers, the summed zeroings, a counter not reported as 0, no other counter, the range in the key), a short play, a stopped one and a skipping one printing nothing, and the rule's equality and missing-record cases in test_results.py. Verified: cargo fmt; `python3 -m unittest discover -s scripts/matrix` (84 tests, OK). The Rust build, clippy and tests run in the checks dispatched at this commit. |
||
|
|
2fe8ac55c1 |
matrix: a host-time row past its limit by less than old's own move is VOID for the round
The frozen arm's second rule, beside FROZEN_DRIFT (the planner's ruling of 2026-11-19, reading
(a)): a row judged by its host time, and not by re-timed pairs, whose excess over its limit
(ratio over limit, less 1) is smaller than its own old time's move from the base in the round
is VOID, since the old runtime's drift alone could carry it there. GPU-time rows and rows judged
by their re-timed pairs are never voided by it. Neither rule makes a row red; the paired re-time
judges a red row.
harness_budget parks such a row as VOID with its excess and the move; the report's table reads
VOID for it (over_lines, through excess_voids); each leg's lines name the rows each rule voided
(print_leg). docs/VALIDATION.md states the rule.
The venue-wide reading was withdrawn: the frozen arm's largest moves sit on cold creation rows
(create_4KiB/device_first +88% on one leg of
|
||
|
|
7cda47f536 |
matrix: an owned row fails only 3% past its owned ratio; a one-pass outlier is timed again
An open record in status.tsv now names the ratio its row was owned at (the new `owned` column,
filled for the existing entries from the matrix note of
|
||
|
|
b28b4975b5 |
matrix: the GPU legs run the replay player's stream device tests; status rows lose closed owners
The GPU legs' archive held metal2vulkan-rt alone, so the replay player's stream device tests (metal2vulkan-validation's runtime_lane::replay_streams, 17 on the old runtime, and runtime_lane::rt_replay, 24 on the new) ran on lavapipe only. A break in the player or a runtime's stream path that only a GPU shows waited for a lane's play of a recorded stream to find it, as the old arm's pin stop did. The archive now holds the validation crate too, and a leg runs the runtime's tests and those two modules (DEVICE_TEST_FILTER). The Windows leg is unchanged until the validation crate is shown to build there. status.tsv, by the planner's ruling of 2026-11-18: - 10de:1e87 frame_5cb is a gap row: the runtime guide's known gaps carry it (crates/metal2vulkan-rt/README.md, NVIDIA's latency per submission). - 8086:a7a0 frame_5cb and 10de:2204 create_state/first are within their limits; their closed lanes' names are cleared (a row gets an owner when it goes over). - identity's rows wait for their card's native table, the guest-visible test; "Iris swing unresolved" was stale. Verified: see the check job named in the landing message (unit tests of the matrix script, the archive built with both packages under --cfg m2v_gpu, the filter's selection listed, and the selected tests run on a GPU). |
||
|
|
d2834389c7 |
replay: written words play as recorded on both runtimes; a census counts the address-looking ones
The player rewrote every 8-byte word of written bytes whose value lay in a live recorded range. On a stream recorded before the escape note a word's value cannot tell an address from data, and on u4 that rewrote two 32-bit indices of an index array into an address of the play, which a kernel later read through out of bounds (the rewrite-off control played u4 whole with no fault). Now no written word moves on its value, on either runtime: - The address map's word pass is a census that writes nothing (AddressMap::census). It counts address_looking_words (aligned 8-byte words in a live range) and misaligned_address_words in the same bytes as before: writes, copied contents, guest-RAM copies and Private bytes before a dispatch into objects that answered a gpuAddress, and set*Bytes data. Both are stream-fixed, equal on both runtimes. - What moves are typed address arguments (tag 8), through the map: relocated_words now counts only those that moved, so it is zero on the old runtime, whose ranges are at their recorded addresses. - unrelocated_writes is deleted: no written word is relocated anywhere, so it meant nothing. - A Private range's bytes after a dispatch are compared as recorded. - The report's relocation line becomes "addresses address_looking_words=N misaligned_address_words=N address_arguments=N relocated_words=N differing_ids=N: written words play as recorded; the stream predates the escape note". Tests: - unit: written words play as recorded and are counted; a typed address argument moves with its object (and one in no range stays); guest-RAM copies and copied contents play as recorded; the census counts by alignment. - device, rt: a data word in a live range plays as written (sha check); the census is the same on the old and new runtimes (and the old pinned both objects). - The rt granule test read the runtime's addresses through relocated words; it now checks the places line's slack (each place spans its length rounded up to its recorded granule). docs/REPLAY-STREAM.md sections 5 and 10 and docs/VALIDATION.md say the new form. The escape note (m2v.bufferEscaped) and the stop on a word into a noted buffer follow in their own commit. Verification: the replay checks (clippy in three configurations, replay unit tests, the replay device tests on lavapipe, rustdoc) run as a potluck job on this commit. |
||
|
|
4cb685e075 |
matrix: frame rows on a node whose CPU clock follows the load are judged by instructions per frame
On the Ryzen 7 7840HS nodes the cores' mean clock tracked the frame rows' pass time (r = -0.88 over twelve passes of one build on the Radeon 780M, job m3-max-49287), so the host time of a frame row measures the clock its passes found, and the legs there read VOID or venue unstable on it. The planner's ruling: on such a node the frame rows of every card it hosts are judged by the new runtime's instructions per frame, their time kept as a cross-GPU outlier check. results.CLOCK_FOLLOWS_LOAD lists the CPU by potluck's cpu_model fact, which the leg's note now keeps (`cpu`). There, harness_budget names a frame row's time and judges nothing on it (the instructions gate judges it; a latency from idle row by its workload's count), the leg re-times none of them (RETIME_SELECT's skipre, results.retime_skip), base_spread leaves them out, and over_rows lists only their counts. time_outliers is unchanged and still judges their time across GPUs. The verdict line names the rule that judged each row. docs/VALIDATION.md states it. Verified: PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s scripts/matrix, 70 tests OK (new: the budget, re-time, spread and over-table reading on and off the listed CPU; the verdict line's rules; the harness job's skip pattern). |
||
|
|
e04254de14 |
matrix: a timing leg names its old runtime's own spread, and is timed again past 10%
The planner's rule for timing legs: each prints the BASE arm's own spread across its passes; past 10% the leg is VOID and is timed once more at another time, and a leg VOID twice is reported as "venue unstable", never as a red row. In a matrix harness leg the base arm is the old runtime, and the rows it times more than once in a leg are the re-timed ones: its main run and each re-timed pair's (RETIME_PAIRS). results.base_spread takes, of each such row, the old runtime's largest time over its smallest, less 1, on the time the row is judged on (its GPU time where gpu_judged), and the largest of the rows; a creation row's first samples are cold, spread by nature and judged cold against cold, so none counts; with no row re-timed it is n/a and voids nothing. Past BASE_SPREAD (10%), harness_budget names every problem the leg's times would raise VOID and parks it, and the problems of its records and counts stand; the over table reads VOID on each of the leg's times. The matrix (Run.timed_again) times such a leg's harness once more, after the node's other jobs (the Windows host's right after its own), and judges that timing. The leg's line names its base spread and what came of a first timing; a leg VOID in both reads `venue unstable`, verdict UNSTABLE, which the run counts apart and which does not fail it. A node's last job is now the last one it actually runs, the re-timing included, so the tree and the carry's mirror are tidied after it. Verified: the matrix's Python tests, new ones: the spread on time and on GPU time, n/a with no re-timed row, a cold first sample never counting; a leg past it failing on its records alone and the same row failing within it; the verdict line's spread, n/a and UNSTABLE; the over table's VOID; and a node's harness timed once more after its other jobs, once only, its last job the tidying one. In the job named in the landing message. |
||
|
|
7e33975f58 |
matrix: NVIDIA's first take of 64 MiB is judged on the new runtime's own part
The planner's ruling on create_64MiB/first_take on NVIDIA's legs: the gate changes, not the
ceilings. From the next round on the row is judged on the new runtime's own part, its first take
less the time inside the driver's calls the same process recorded, against the old runtime's whole
first take, each the median of the five creation processes; the driver's part and the whole ratio
are shown beside it, with the gap's name. An own part past the row's limit (1.03 times its floor,
the parity every row gets) fails the leg as a regression of its own.
The driver's part is `first_allocation_total`, the new runtime's `vkAllocateMemory` time on the
harness's thread in the same take, kept from every process already (FIRST_KEEP). rt counts no
`vkMapMemory` time, so the map stays in the own part, the stricter reading. On
|
||
|
|
5849a7f029 |
matrix: each runtime's creation rows run in a process of their own, cold against cold
The planner's rule: a cold first sample is compared cold against cold. The creation rows ran in five processes that each timed both runtimes, the new runtime first, so the driver's process-wide setup fell on the new runtime's first pipeline and the old runtime's first samples came after it, warm. Measured on the Iris Xe (job 48650, ms01 alone, both runtimes from the harness at cb25e3a83e, five processes each): the old runtime's create_state/first was 5265.8 us behind the new runtime in one process and 16732.8 us in a process of its own (0.315x); device_first 0.167x, first_call 0.099x. The one-process ratio new/old 1.302 at first was a cold-against-warm ratio; cold against cold it is 0.410. Of the two forms the planner allowed, each runtime's own fresh process is the cheaper: the harness does not change, and the extra five processes a leg runs take about a second each (create_state's processes on the Iris ran in under one second). The other form, one unrelated pipeline before either runtime in a shared process, would need harness code and leaves the first samples process-warm, not cold. So each of the five rounds now runs `--runtime new` and `--runtime old` in processes of their own, each on a fresh driver cache and store, the order alternating from round to round (new first in rounds 1, 3 and 5); the first round's two outputs are kept whole, the later rounds' first samples as before. The records, their names and the budget's medians do not change. Verified: the matrix's Python tests in the job named in the landing message (the harness-runs test now pins the processes and their order). |
||
|
|
6605f18ddf |
harness, matrix: the frames' commit-to-complete row is gone after its one round
The planner's frame ruling showed the frames' old figure, their last command buffer's
commit-to-complete time (`<row>/commit_to_complete`), beside the new throughput row for one round,
unjudged, then deleted. The round at
|
||
|
|
ca92b2aa9e |
harness: a compute state row's first dispatches 64x1x1, the streams' commonest size; one thread beside it
The create_state row's first dispatched one thread (1x1x1), a size of few dispatches: 3.9% of the compute dispatches in the discrete replay recordings (from 3 to 5 kernels) and at most 0.5% in the unified ones, by identity's census of every stream's threadsPerThreadgroup. A runtime that compiles its pipeline for the dispatch's size (the old runtime) compiled the first at 1x1x1, where a program's first dispatch runs at its own size. The first now dispatches one threadgroup of FIRST_THREADGROUP, 64x1x1: the commonest size over the five streams of record, 24.1% of their compute dispatches (41.7% of the unified recordings', 7.1% of the discrete ones', where 128x1x1 leads with 39.3%; 128x1x1 is 23.3% overall). Each thread's 16 bytes are checked. Today's form stays beside it, shown and never judged: another content's first (the kernel with other constants) dispatched as one thread, create_state/first_one_thread (CreateReport::one_thread_first_us; results.SHOWN_FIRST). The name has no digits so the matrix's FIRST_KEEP keeps it from every creation process, which a results test holds. The warm-up stays at one thread. docs/VALIDATION.md and the crate doc say it; the authored device test asserts the compute row has the one-thread first. |
||
|
|
f1f846e636 |
rt docs: the consumer's own drivers in the guide, the validation ladder and the surface table
`Instance::with_drivers` and `Error::NoDirectDriverLoading` are public: the runtime's guide says what the call does, what it refuses and what it leaves to the consumer (loading the library and keeping it loaded); docs/VALIDATION.md says how a job runs the device tests through it (`M2V_DIRECT_DRIVER`) and what shows the path ran; the signature table takes the two records (scripts/api-signatures/signatures.py --bless). docs/REFUSALS.md regenerated unchanged: the variant refuses nothing Metal accepts, it says the host's loader lacks an extension. Verified: the generators' output; the build and the tests in the jobs named in the landing message. |
||
|
|
d3bfe3815d |
harness, matrix: a frame row is its throughput, and its latency from idle a row of its own
The planner's metric for the frame rows. A frame row's time was its runs' last command buffer's commit-to-complete time with two runs in flight, which mixes the time a frame adds with how long it waits behind the one before. Now `frame` and `frame_5cb` (Plan::frames) carry two figures, each the steady time (best window of ten) of the harness's own completed-handler times: - THROUGHPUT, the row of record (matrix_time): two runs in flight, from one run's last completed handler to the next's. The pairs around the waits that read the gauges after runs 100 and 200 (GAUGE_RUNS) are left out, as an untimed run sits between them. - LATENCY FROM IDLE, the row `<row>_from_idle` (FROM_IDLE): as many runs again after the timed ones, one in flight, each committed once the one before it completed, from just before its first commit to its last completed handler. The completed handlers now report the time of their commit and of their own run against one origin (Completions, Handled), so the commit-to-complete times, the throughput and the latency come from one record. The frames' commit-to-complete time is still printed, as `<row>/commit_to_complete`, which the matrix shows and does not judge (SHOWN_ROWS) for one round. Each latency row takes the ceiling and floor its workload's row has (listed_row), in the budget, the over table and the re-time selection, and is re-timed through its workload's runs. Other workloads are unchanged, long_4cb's commit-to-complete time included. The shape follows core's one-run-in-flight probe (3eaec97076), without its environment gate. Verified: test_results (a new test: a latency row past its workload's ceiling and the budget, the commit-to-complete row shown and never judged, the over table and the re-time selection choosing the latency rows); the harness's unit tests gain the throughput and latency arithmetic (the gauge pairs left out) and matrix_time's frames case; the harness gate job named in the landing message runs clippy, rustdoc, the unit tests and the authored workloads on lavapipe. |
||
|
|
02eaf89136 |
matrix: the report ends with one table of every row over its limit, with its status
Two legs of eleven passed and every red was known, so the reds were no longer read. The report (`matrix run` and `matrix show`) now ends with one table: every harness row over its limit on every leg (results.over_rows, the rows harness_budget fails or names as its card's variance), with its kind (GPU time, host time, or count for the instructions gate), its ratio and limit, the frozen arm's verdict (VOID, stands, rebased, no base) and its status. The status comes from scripts/matrix/status.tsv, one typed entry per card and row (a `*` in the row matches any run): an open record with its owner and first round, whose age the table counts in rounds; a known gap with the place it was ruled; or a note alone. A row with neither reads NEW in the first round it is over (not over in its leg's base) and UNOWNED after; a CARD_VARIANCE row reads as its card's known gap. The table changes no verdict: the red rule waits for the planner's ruling. Seeded from the rulings so far: NVIDIA create_64MiB/first_take, a known gap (the 2080 and the 3090); create_64MiB on AMD, a note that it is no known gap and is unjudged until the first interleaved round; the Iris Xe's GPU-time rows, a note of one time-boxed investigation after that round; the Iris row_cells, identity's open record (first over at |
||
|
|
65aac391c2 |
matrix: the frozen arm compares only rounds of one harness, one old runtime and one shape
The noise meter read the old runtime's move between two rounds as noise even where the harness or the old runtime changed between them ( |
||
|
|
3027cf9b68 |
matrix: each creation process times both runtimes, the new runtime first
The creation rows ran in five processes per runtime, all of the old runtime's before the new runtime's, so a node or clock that moved between them moved one runtime's samples alone, an order effect. Each of the five processes now times both runtimes, `--runtime new,old --only 'create_*'`, on its own fresh driver cache and store: a creation's first sample on the new runtime is cold, and the old runtime's follows it on the same cache. FIRST_KEEP takes each sample's runtime from its line. The median of five per runtime and every row, ceiling and floor stay. Verified: test_matrix's harness-run test (five `new,old` creation processes, both runtimes' samples kept once each) and test_results' creation test (FIRST_KEEP keeps the old runtime's sample beside the new's and drops a GPU line); the Linux and Windows job scripts pass `bash -n`. |
||
|
|
abf3d4133d |
matrix: both runtimes' rows are timed in one process, their passes alternating
Two cards showed the noise the old runtime's frozen arm measures: the Iris Xe's frame moved 2.8x between rounds, the UHD 630's about 2x between passes of one process. The leg timed each runtime in a process of its own, one after the other, so a clock or a co-runner that moved between them moved one runtime's times and not the other's. Now one process times both, `harness --runtime new,old`: each workload runs on the new runtime, then on the old, so their passes alternate on the GPU and the node as they are at that moment. The new runtime runs first in each workload, so its first uses, the judged cold ones, compile before the old runtime's of the same workload, as cold as in a process of its own. The process is the leg's one suite, `harness`; a failure still names its runtime (`M2V-FAILED harness-<runtime>/<row>`). The creation rows keep their five fresh processes per runtime, now alternating old and new; rows over their limits are re-timed alone as before. No row, ceiling or floor changes, and the deterministic records are untouched. The frozen arm's column (FROZEN_DRIFT) stays the check on it. Verified: test_matrix's new test runs the leg's timing script against a stand-in harness: one `new,old` process, the new runtime's warm run, the creation processes alternating, one suite whose records hold both runtimes' rows once each. The Linux and Windows job scripts render and pass `bash -n`. |
||
|
|
06b940f810 |
matrix: the frozen arm is the noise meter: a row whose old time moved past 10% on the base is VOID
The old runtime takes regression fixes only, so its time of a harness row moves between rounds
with the node, the driver and the harness, not with the change under test. Each leg now compares,
per row, the old runtime's time the row is judged on (its GPU p50 where gpu_judged, the median of
the five processes for a creation row's first sample, else its time) with the same time in the
leg's base, the previous round. Past FROZEN_DRIFT (10%) either way, harness_budget names the row
VOID and judges nothing from it: its comparison comes from a re-time in one process with both
runtimes interleaved. The report (run and show) shows the move on every row the base has, and a
line per leg naming the void rows; show computes it from the notes, so a round already noted is
read with it.
Verified: test_results (47 tests, a new one for the void rule, the GPU and median-of-five forms,
no base, and the column). `matrix show 140714ceae` against its base
|
||
|
|
99ec109264 |
harness: each creation row's first is a fresh object's on a device that has made one of its kind
A creation row's first sample was the first of its kind in a fresh process, so it held the device's own first use (its first recorder, submission, upload, staging region, stamp pool) together with the object's. A guest keeps one device for the machine's life, so what a device pays once never reaches it. The planner ruled that every first row is judged on a new object's first use on a warm device. Each creation row now makes a warm-up of its kind first, made and used as the first is and kept until the first is done, then the timed first on a fresh object: - Shared and Private buffers: a buffer of the same length, kept, so the first takes memory the warm-up did not give back (a new 16 MiB Private block on rt's harness placement); the next take still follows the first's release. - compute states: a state of another authored kernel (lcg_step, bound as signed_zero_products is), created and dispatched once, its word checked; - render states: a state of another fragment function (sampled_fragment) with the row's vertex function and attachment. The warm-up's time is its own record, `<row>/device_first`. The matrix shows it with the ratio of its medians and never judges it (results.SHOWN_FIRST now names each shown sample with its reason). time_states takes the first as its caller timed it; its other form had no caller left. Tests: a host-buffer device shows the buffer row's order (the warm-up alone, the first and the next beside it, the timed ones alone); the matrix shows a warm-up and judges the first it comes before; the device test checks every row records its warm-up. |
||
|
|
0228641d79 |
rt: the encoders and a segment's begin borrow the core; the lock budget's bound is 0.25, and a node naming the event must measure it
The planner's rulings on the lock budget and the alternations: - The bound is one value on every device, 0.25 locked instructions per added command, for draws, bound draws and dispatches: a site of rt's that runs per command adds 1 or more, and the drivers' own growth stays far below it (measured: Iris Xe 0.0195 / 0.1425 / 0.0285 at most, RX 7900 XTX 0.0000 / 0.0015 / 0.0050, RTX 2080 0.0005 / 0.0000 / 0.0175). - Each budget test prints its measurement as a matrix record, `locks lock_budget/<kind>`, per million added commands (none below 0), beside its LOCKS line. The matrix fails a GPU leg missing any of the three where the node's setup names M2V_LOCK_EVENT (results.LOCK_BUDGET, names_lock_event, lock_budget_missing; keyed on the setup, not on a card), for a commit that has the budget; elsewhere the budget prints LOCKS-UNMEASURED and passes. The note carries the three values per leg. docs/VALIDATION.md's records table has the kind. - Building::begin borrows the device's core where it took an Arc<Core> it dropped after the start timestamp; the compute and render encoders hold an uncounted borrow of the recording's core (kept::Uncounted, the kept handle's pattern for an Arc), valid while the encoder holds the recording, which it does until it ends. Two locked instructions fewer per encoder and one pair fewer per segment. Verified: scripts/matrix's unittest suite (47 tests, a new one for the event and the missing records). |
||
|
|
0afc54c573 |
rt tests: every instance runs under the validation layer, its log checked
Every instance rt's device tests open goes through one helper, crate::tests::validation. It enables VK_LAYER_KHRONOS_validation for its own test process through the loader's and the layer's own variables (VK_INSTANCE_LAYERS; report flags error,warn, debug action log, one log file per process). It checks that every device of the cfg's kind lists an active validation tool (vkGetPhysicalDeviceToolProperties), so a run whose loader found no layer fails. Once the instance is gone, it reads the log, prints each line with the test's name and fails on any message. The 41 sites that called Instance::new go through it; the exit-handler test reads its child's log, since the child's instance never drops. One test makes a deliberately invalid call (a buffer of size 0, refused by the layer) and checks that its log holds exactly VUID-VkBufferCreateInfo-size-00912. The product keeps no layer code and no variable read. Its one change is a visibility: Instance's shared state is pub(crate), so the helper waits, bounded, on a weak handle of it until the instance is gone, and only then reads the log. scripts/validation-layer makes the layer's directory, one version (1.4.363.0) on every leg, as a carry: Linux's copied from a node whose pacman package is that version and unaltered, Windows's from MSYS2's clang64 packages checked against the package database's SHA-256, and macOS's from a Homebrew install at that version. scripts/matrix carries it to every job that runs rt's device tests (GPU legs, lavapipe, the Windows host), points VK_LAYER_PATH at it, and puts the layer's version in the leg's note. A job without the layer says so and points the loader at none. The harness's timing jobs run without it. Verified: the matrix's unit tests (48, two new ones run the layer's shell for real) and the layer carry made. Builds and legs follow. |
||
|
|
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. |
||
|
|
8b428fe5ed |
matrix: a compute creation row's call alone is shown beside its first use, never judged
The cold-creation split (probe a3318b088f, m3-max-45806/45807/45809/45810) found the old runtime returning from new_compute_pipeline_state before it makes its VkPipeline: no vkCreateComputePipelines runs inside the call, and the driver's compile comes before the first dispatch completes. rt compiles inside the call, as Metal does at newComputePipelineState. A compute creation row's `/first` sample already spans the creation, one dispatch and the wait for it (CreateReport::first_us), so that row compares like with like. The call alone was only in the table's text. The harness now also records it as `harness-<runtime>/<row>/first_call` for a compute state row. The creation processes keep it like the other first samples (FIRST_KEEP matches it as is). results.harness_budget shows it with the median of each runtime's five processes and their ratio, as "shown, not judged: the creation call alone, which old returns from before it makes its pipeline", and never judges it. One process's sample alone is not shown. `/first` and its floors are unchanged. The planner approved this form. Test: test_a_creation_call_alone_is_shown_beside_its_first_use_and_never_judged. Docs: VALIDATION.md's creation and harness budget paragraphs. Verified: nothing yet; the Python suite and the harness build are reported with this sha. |
||
|
|
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. |
||
|
|
b2e33dba6d |
matrix: a harness row with a GPU time is judged on it against the old runtime's GPU-time floor
The planner's ruling on the old-against-old GPU-p50 floors. On the XTX, whose host-time floors
reach 1.2-1.3 on the shader rows (8 runs, m3-max-45546), the same runs' GPU p50 spreads 1.004 on
simd_reduce (36.96-37.12 us, host time 44.9-55.8 us), 1.008 on narrow_ints, 1.012 on image_filter
and 1.024 on constexpr_sampling: the host time's spread is the host's, not the card's. So:
- A row with a GPU time on both runtimes is judged on its GPU p50, new over old, against the old
runtime's GPU-time floor on that leg (the new scripts/matrix/gpu-floors.tsv), with its host
times shown beside it. A ceiling applies to the time its row is judged on.
- The frame and burst rows (WALL_ROWS) stay on their host time and its floor, with the
instructions gate: their GPU time spans the gaps between their command buffers and spreads as
widely on several GPUs (1.68 on the Iris Xe's frame_5cb, 1.43 on the UHD 630's
burst_160_shared). gpu-floors.tsv lists no such row.
- CARD_VARIANCE names rows whose GPU time varies on the card itself: the XTX's sampling (GPU p50
16.3-20.3 us over the 8 runs; 1.264 in the earlier 4-run set, m3-max-45424) and
constant_managed (66.8-69.2 or 74.4 us). They are judged like any other row, never fail a leg,
and are named on its line as the card's variance.
- A re-timed run keeps the row's GPU time too (RETIME_KEEP, harness-retime-gpu/), and the re-time
selection chooses by the same measure (RETIME_SELECT with GPULIMITS and WALLRE), so a row judged
on its GPU time is re-timed and judged on its re-timed GPU pairs.
gpu-floors.tsv comes from the runs behind floors.tsv, no new job: the harness of
|
||
|
|
813dd5cfd7 |
matrix: jobs sized from whole builds' peaks, and a job short of RAM runs again with twice its room up to the default
The UHD leg of matrix
|
||
|
|
56efbd0e13 |
matrix: the floors measured with the mean statistic on seven legs; the seeded-floor stopgap deleted
scripts/matrix/floors.tsv held floors seeded from old-runtime runs under the nearest-rank
statistic, some of them the old runtime's paired completions read as a fast run (alu 22.066 on
the 780M leg, 19.640 on the Iris). Measured again with the harness of
|
||
|
|
5abbd52c0e |
matrix: the memory pool's blocks gauge fails only on a rise between iterations 100 and 200
The matrix at
|
||
|
|
5422cf1825 | matrix: every row's GPU p50 beside its time; rows passing only on a seeded floor over 1.10 named | ||
|
|
de2ce035e9 |
matrix: creation rows timed alone in five processes, per-row floors, an A B B A re-time
The planner's timing rule for the matrix's harness legs: - The harness takes `--skip NAME,...`, and a name ending in `*` in `--only` or `--skip` names every workload it starts. A name that names no workload is an error. - Each runtime's harness run skips the creation rows (`--skip 'create_*'`); they then run alone (`--only 'create_*'`) in five processes per runtime, each with a fresh driver cache and store, so no row before them moves their times. The first process's records are kept whole, its device's gauges at drop renamed to harness-<runtime>/creates/device/... so every key is recorded once; the later processes keep only the creation rows' first samples, as harness-first/<row>/<n>/<runtime> (parked records). - A creation row's first sample (/first, /first_take, /next_take, /first_allocation_total) is judged by the ratio of the medians of its five processes; a single first sample is never red. - A row's limit is 1.03 times the greater of its ceiling and its floor: the widest ratio between two of the old runtime's own runs of the row on that GPU (scripts/matrix/floors.tsv, seeded from store2's noise table's "widest" column; 1002:1900 has no column there, so its floors are 1). Ceilings are unchanged. - A row past its limit is re-timed once, A B B A (two pairs), and fails only if the median of the pairs' ratios is past the limit too. Deterministic counts are untouched. docs/VALIDATION.md describes the new runs and rule. Verified: scripts/matrix/test_results.py, 33 tests OK locally (new: a row within its floor passes, past it but back within on its re-time passes, past both fails; first samples by the median of five, never one alone; the creation processes' sed programs record each key once; the floors table reads). The generated harness_runs shell passes bash -n for a Linux and the Windows leg. The harness's selection tests and lint run in the check job. |
||
|
|
8fa569e62d |
harness, matrix: each runtime keeps its pipelines in a store of its own, fresh for the matrix's main run and warm for its warm run, so create_state and the first uses compare like for like
The old runtime's shader cache defaulted to the per-user ~/.cache/metal2vulkan, which every earlier run on the node had filled, while the new runtime's harness device kept no store: create_state's first state and the first-use rows timed old warm against rt cold (jobs 44170, 44171: old's first on the 2080 2.9-3.2 ms on its warm cache, 8.9-9.7 ms on a fresh one). - old::system_default and rt::system_default take the store (None: the runtime's default, for the tests). - The command takes --store DIRECTORY: each session keeps its pipelines in <DIRECTORY>/<place>-<runtime>; without it, a directory made for the run under the OS temp directory and removed when it ends. Each runtime's line and each create_state row say "store fresh" or "store warm, N files". - The matrix gives each runtime's main run a fresh empty store beside its fresh driver cache, and its warm run the same store; a re-timed row's runs take the harness's own fresh store. - VALIDATION.md and the harness docs say so. Verified: the matrix's harness script, rendered and run against a stand-in harness, passes a fresh --store to each runtime's main run (cygpath'd on Windows); the build, clippy and the authored tests in the check job. |
||
|
|
e0f76d7836 |
harness: a multi-command-buffer row is judged by its last command buffer's commit-to-complete time, and each command buffer's lateness is a column
The planner's ruling on long_4cb's red: rt reports the command buffers committed while an earlier one runs complete together, at the group's last end, which the owner accepted. The mean over a run's places counted that lateness: on the 2080, long_4cb's #2-#4 came at 96.2-97.3 ms where the old runtime's came at 71.7, 83.7 and 95.6 ms, while the last's own (96.6-97.2 against 95.6-95.8 ms) is not late (jobs 44196, 44197). The rule holds for every row of several command buffers, so frame_5cb's too. - run::matrix_time is the steady time of each run's last command buffer's commit-to-complete time. - The harness's completed handler is given its lateness, from the command buffer's GPUEndTime to the handler's start on the runtime's host clock (rt::host_time, the old runtime's host_time); Report::late_us holds it by place, and the table prints late_us_p50 and late_us_p99 beside the c2c columns, with a line by place. It is no record: no ceiling until the first host-time matrix shows it on every GPU. - The rt README's queue known gaps carry the measured lateness; VALIDATION.md and the harness docs say the last command buffer's time. Verified: the matrix_time unit test asserts the last place's time where the mean differs; the check job builds and runs it. |
||
|
|
32d511d17d |
harness, matrix: long_4cb runs one size on both runtimes: --size gives a sized row its size, the matrix passes the first runtime's to the later runs, and a row run at two sizes fails uncompared
A workload whose size follows the device (long_4cb) was sized by whichever runtime ran it first in
its process. The matrix times each runtime in its own process, so each sized it from its own base
time, and they could run different work: the RX 550's long_4cb ran at different sizes on the two
runtimes at
|
||
|
|
b96e61afa3 |
docs: VALIDATION.md's matrix says a harness time is host time and a ceiling is only ruled
The `time` record kind is what a program waits on, timed on the host (commit-to-complete where the workload times it, else the wall time a run adds), since the harness's matrix_time change on this branch; the harness budget lists no ceiling now, and one is given only by a ruling after the work on its row. The doc said GPU time and measured-ratio ceilings. Verified: the text only; python3 scripts/matrix/test_results.py, 28 OK on this branch. |
||
|
|
76ddb7ed45 |
matrix: a harness row over its budget is re-timed in its leg, three alternating pairs, judged by the median
The matrix at
|
||
|
|
eea1ef870e |
matrix: harness first uses compile cold on a fresh driver cache, and warm on a second run
The matrix at |
||
|
|
fe9dd3d6da |
matrix: a listed row's ceiling has parity's 3% allowance; a row the old runtime failed is named and not compared
Two follow-ups to the harness budget.
The allowance. A ceiling is the row's ratio when it was listed, so run-to-run spread put rows just
past it: over the runs one commit before the seeds (08ff6ed59c), five rows came 0.1 to 3% past
their ceilings. A listed row now fails its leg only past its ceiling times HARNESS_BUDGET, the same
3% allowance parity gets. The ceilings stay the measured ratios and only go down.
Old-runtime failures. The old runtime is frozen and its regressions are parked, but a workload it
failed (on the UHD 630 at
|
||
|
|
bbf8fbb29a |
matrix: the harness budget, new over old per row on each GPU at most 1.03, with the rows over it held to ceilings
results.harness_budget compares the two runtimes within one leg. For every harness row timed on both runtimes in the leg (harness-new/<row> and harness-old/<row>), the new runtime's time over the old's is at most HARNESS_BUDGET, 1.03. HARNESS_CEILINGS lists the rows over it, per GPU, each with its ratio as its ceiling. A listed row past its ceiling fails its leg, and a listed row within it is named on the leg's line (with the parked items), so an open row can neither hide nor grow. A fix lowers its row's ceiling, and a row within 1.03 is named as leaving the list. This rule is separate from TIME_OUTLIER and PARKED_RECORDS, which judge a time against its base commit's across GPUs and park the old runtime's outliers. The budget reads the old runtime's times as its reference. It ends with the cutover, with the old runtime. A time recorded more than once has no single value to judge: twice in one suite, where parse_suite keeps the first and now lists the key in `duplicated`, or once each by two suites, where leg_records keeps the later. Such a row is a problem of the budget's own, named and not compared, beside the record problem the leg already has. The matrix's harness suite now runs one job per GPU. Each job holds its node alone (--exclusive) and times that one GPU. Before, one exclusive job per node timed the node's GPUs in turn. docs/VALIDATION.md says both. Ceilings: one run per GPU of the harness's full set, both runtimes, as the matrix runs it, two passes, each run an exclusive job timing one GPU, at development |
||
|
|
b206c48b2a |
matrix: only a subject that opens with the phrase lets the old path move
a17eb26a6b's matrix run did not report OLD PATH MOVED although its golden test counted 7260 cells under a changed profile fingerprint (the stage-bound change): the check commit's own message quotes "old-runtime regression fix", and the rule looked for the phrase anywhere in a message since the last bless. It now takes only a subject that starts with it, as each fix's does. Tests: scripts/matrix/test_results.py, 17 pass; the old-path test now also feeds a message that quotes the phrase in its body and expects the problem to stand. |
||
|
|
37cc7ac829 |
matrix: harness counts compare under one harness; six old-runtime lavapipe flakes parked
The |