benchmarks-mv
Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS.
Brought by drakestapleton
benchmarks-mv / src / bin / bench_verify_prereg.rs
| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | |
| 16 | //! Offline preregistration check: validates `aien-bench-prereg/1` manifests before any run. |
| 17 | //! |
| 18 | //! Usage: `bench_verify_prereg [--root <repo>] [PATH...]` (default path: `manifests/prereg`). |
| 19 | //! Prints one `path: field: reason` line per defect on stdout and exits 1 when there is any or |
| 20 | //! when no manifest was found; exits 0 when every manifest passes. Reads files only: no |
| 21 | //! network, no GPU, no live server. |
| 22 | |
| 23 | use aien_benchmarks::prereg::verify_prereg_paths; |
| 24 | use clap::Parser; |
| 25 | use std::path::PathBuf; |
| 26 | |
| 27 | #[derive(Parser)] |
| 28 | #[command(name = "bench_verify_prereg")] |
| 29 | #[command(about = "Validate aien-bench-prereg/1 preregistration manifests (offline)")] |
| 30 | struct Args { |
| 31 | /// Repository root that paths are relative to |
| 32 | #[arg(long, default_value = ".")] |
| 33 | root: PathBuf, |
| 34 | |
| 35 | /// Files or directories to check, relative to the root |
| 36 | #[arg(default_values_t = ["manifests/prereg".to_string()])] |
| 37 | paths: Vec<String>, |
| 38 | } |
| 39 | |
| 40 | fn main() { |
| 41 | let args = Args::parse(); |
| 42 | let report = verify_prereg_paths(&args.root, &args.paths); |
| 43 | for note in &report.notes { |
| 44 | eprintln!("bench_verify_prereg: {note}"); |
| 45 | } |
| 46 | for d in &report.defects { |
| 47 | println!("{d}"); |
| 48 | } |
| 49 | eprintln!( |
| 50 | "bench_verify_prereg: {} manifests, {} defects", |
| 51 | report.manifests, |
| 52 | report.defects.len() |
| 53 | ); |
| 54 | if report.manifests == 0 || !report.defects.is_empty() { |
| 55 | std::process::exit(1); |
| 56 | } |
| 57 | } |