Skip to main content

emit_spatial_outer_test

Function emit_spatial_outer_test 

Source
pub fn emit_spatial_outer_test(
    m: usize,
    n: usize,
    p: OuterPar,
    class_name: &str,
) -> Result<String, String>
Expand description

Emit a Spatial REGRESSION-HARNESS outer product out[i][j] = a[i]·b[j] (m × n) with the structure of Spatial’s own OuterProduct app — a ts1-tile of a per outer iteration, a ts2-tile of b per inner one, the ts1 × ts2 product tile computed in SRAM and stored whole — at our shape. Host data are small residues; the harness’s PASS line means equality. Typed refusal when a tile does not divide its vector or a tile loop is wider than its tile.