translator tests: the lockstep step-cost tests judge work and ledger, under no deadline
tests::engine_simd_lockstep::the_authored_4096_step_kernel_compiles_inside_the_budget failed
in the lavapipe leg of the b7c5a59920 round (m3-max-48393, msi, the loaded suite) with
"4096 steps inside the standard budget: Budget(Time)" after 27.0 s: 11,747,827 work units,
ledger peak 161,960,281. Its own doc says its work stands for its time (2.4 s in release on the
slowest CPU measured); the 20 s deadline of Budget::standard() is a wall-clock threshold, and a
debug build beside other jobs crossed it.
steps_cost, which all three step-cost tests use, now meters under Budget::default(): the
standard work and ledger caps (Meter::new), no deadline. The asserts on work units and the
ledger peak are unchanged. The 20 s ceiling is release-mode timing's, in an exclusive job.
Verified at this tree (m3-max-48575, msi, built as the lavapipe leg builds: --cfg m2v_cpu_icd):
clippy of the translator and validation clean; the three step-cost tests pass alone (4096
steps: 14,218,766 work units, ledger peak 207,901,502); the 4096-step test passes 3 of 3 rounds
under 48 busy loops on 24 CPUs, taking 29.5 to 32.2 s, past the 20 s the old deadline allowed.
This commit is contained in:
1 parent
695b31f1c7
commit
aedf88330e
1 file changed
+9
-7
@@ -3101,12 +3101,14 @@ target triple = "air64_v28-apple-macosx26.0.0"
|
||||
}
|
||||
|
||||
/// What compiling `grow` of [`barrier_free_steps`] for the RTX 5080 laptop profile spent under
|
||||
/// the standard budget: its work units and ledger peak, and whether it compiled. `None` where
|
||||
/// `llvm-as` is missing.
|
||||
/// the standard work and ledger caps: its work units and ledger peak, and whether it compiled.
|
||||
/// `None` where `llvm-as` is missing. The meter has no deadline: these tests judge the work and
|
||||
/// the ledger, which stand for the 20 s and 500 MiB ceilings, and the clock of a suite that runs
|
||||
/// beside other jobs says nothing of the first (a loaded debug run took more than 20 s).
|
||||
fn steps_cost(steps: usize, accs: usize, pointers: bool) -> Option<(u64, u64, Result<(), Error>)> {
|
||||
let bc = assemble_text("grow", &barrier_free_steps(steps, accs, pointers))?;
|
||||
let p = profile("nvidia-rtx5080-laptop", DevicePolicy::default()).expect("profile");
|
||||
let mut m = Meter::new(&Budget::standard());
|
||||
let mut m = Meter::new(&Budget::default());
|
||||
let compiled = compile_bitcode(
|
||||
&bc,
|
||||
EntryRef::Name("grow"),
|
||||
@@ -3155,7 +3157,7 @@ fn a_long_barrier_free_kernel_s_work_grows_with_its_blocks() {
|
||||
let Some((long, _, compiled)) = steps_cost(4096, 1, false) else {
|
||||
return;
|
||||
};
|
||||
compiled.expect("4096 steps inside the standard budget");
|
||||
compiled.expect("4096 steps inside the standard caps");
|
||||
eprintln!("BARRIER-FREE-STEPS: work {short} at 1024 steps, {long} at 4096");
|
||||
assert!(
|
||||
long <= 6 * short,
|
||||
@@ -3164,8 +3166,8 @@ fn a_long_barrier_free_kernel_s_work_grows_with_its_blocks() {
|
||||
}
|
||||
|
||||
/// The authored kernel of 4,096 steps through loaded pointers, 16 accumulators (about 258,000
|
||||
/// instructions and 12,000 blocks), compiles inside the standard budget's work and ledger bounds,
|
||||
/// which stand for the 20 s and 500 MiB ceilings. The search that tried every reached pair
|
||||
/// instructions and 12,000 blocks), compiles inside the standard work and ledger caps, which
|
||||
/// stand for the 20 s and 500 MiB ceilings. The search that tried every reached pair
|
||||
/// refused it past the work cap, and the one before refused 2,048 steps past the ledger's bound.
|
||||
///
|
||||
/// Its work stands for its time: it takes 2.4 s in a release build on the slowest CPU measured,
|
||||
@@ -3177,7 +3179,7 @@ fn the_authored_4096_step_kernel_compiles_inside_the_budget() {
|
||||
return;
|
||||
};
|
||||
eprintln!("BARRIER-FREE-STEPS: 4096 steps: {work} work units, ledger peak {peak}");
|
||||
compiled.expect("4096 steps inside the standard budget");
|
||||
compiled.expect("4096 steps inside the standard caps");
|
||||
assert!(
|
||||
work.saturating_mul(5) <= crate::budget::WORK_UNITS,
|
||||
"{work} work units for 2.4 s of the slowest CPU's lowering"
|
||||
|
||||
Reference in new issue
Block a user