Expand description
2026-09-26: Box-class ids, the strings a gate baseline is keyed by, and the map from a GPU’s reported name to its id.
Owner: bench hardware. Invariants:
- Every id
hardware_id_from_gpu_namereturns is inKNOWN_HARDWARE_IDS(every_id_the_sku_table_produces_is_registered).
A benchmark’s thresholds live under kernels/<hw>/<model>/BENCH.toml and are
assembled into GateBaseline.hardware. A run’s key comes from --hardware or
from a record’s fingerprint via super::Hardware::gate_key. The baseline
holds only what has been measured, so it cannot tell a registered class with no
record yet from a misspelling; KNOWN_HARDWARE_IDS can, and the resolver
gives the two different refusals.
Constants§
- KNOWN_
HARDWARE_ IDS - 2026-09-26: Every box class the engine recognises, whether or not any gate has
a record on it yet.
--hardwareis validated against it (bench_resolve.rs).
Functions§
- hardware_
id_ from_ gpu_ name - 2026-09-26: Map a GPU’s reported name onto the box class its numbers belong to:
the first whole alphanumeric token, lowercased, that
SKU_TOKENSlists. - is_
known_ hardware_ id - 2026-09-26: True when
idis inKNOWN_HARDWARE_IDS.