pub fn gemm_metapipeline(
k: usize,
tile: usize,
t: &PlasticineTarget,
) -> (Metapipeline, Vec<usize>, Vec<usize>)Expand description
The per-tile GEMM metapipeline on t: load (perimeter AGs: A row-panel + B column-panel, DRAM → PMU) →
mac-reduce (a PCU: lanes-wide multiply, the log2(lanes)+1-stage reduction tree, the accumulator
fused into its last stage — ISCA’17 §3.1) → store (AG: the C tile). Returns the metapipeline, the words
on each edge ([A+B panel, C tile]) and the AG-hosted stage indices.