pub fn emit_spatial_counted_loop_test(
lf: &LoopFabric,
class_name: &str,
params: &[i64],
gold: i64,
) -> Result<String, String>Expand description
Emit a Spatial REGRESSION-HARNESS app (class <class_name> extends SpatialTest) for the counted loop: the
sample params are its runtimeArgs, the VM’s answer gold is checked on the host, and the harness’s
PASS: true (<class_name>) line is what the toolchain ledger parses. Values are 64-bit Long: PIR’s
Tungsten codegen lowers Fix(true,64,0) to C long, so the simulation computes what the VM computes
(the ISCA’17 FU is 32-bit; a silicon run would need the narrower type).