Module ids

Module ids 

Source
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:

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. --hardware is 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_TOKENS lists.
is_known_hardware_id
2026-09-26: True when id is in KNOWN_HARDWARE_IDS.