harness: the binary imports count_instructions, which it calls before it makes a device

The previous commit called it through a run:: path the binary does not have in scope, so the
harness binary did not compile (check job m3-max-45575, msi).
This commit is contained in:
Anees Iqbal committed 2026-11-18 03:31:27 -08:00
1 parent d2e5edbd60
commit affea51d8a
1 file changed
+3 -2
@@ -34,7 +34,8 @@
use metal2vulkan_harness::authored::{Create, Makes};
use metal2vulkan_harness::plan::Plan;
use metal2vulkan_harness::run::{
matrix_time, percentile, run_each, steady, CreateReport, Harness, Report, Runs, Session, Warmup,
count_instructions, matrix_time, percentile, run_each, steady, CreateReport, Harness, Report,
Runs, Session, Warmup,
};
use metal2vulkan_harness::{authored, description, old, rt, Error, Failed, Result, Waits};
use std::path::{Path, PathBuf};
@@ -61,7 +62,7 @@ const USAGE: &str = "usage: harness --runtime old|new[,old|new...] [--runs N] [-
fn main() -> ExitCode {
// Before any device starts its threads, so that theirs count too.
run::count_instructions();
count_instructions();
match parse(std::env::args().skip(1)).and_then(|args| run_all(&args)) {
Ok(true) => ExitCode::SUCCESS,
Ok(false) => ExitCode::FAILURE,