Skip to main content

max_par

Function max_par 

Source
pub fn max_par(
    mp: &Metapipeline,
    buffer_words: &[usize],
    ag_stages: &[usize],
    t: &PlasticineTarget,
) -> Result<usize, Unplaceable>
Expand description

The widest unroll factor whose replicated allocation fits t by CAPACITY (at least 1 when one instance fits) — PCUs, PMUs, and the perimeter DRAM ports (rows × 2 sides × vector_links per direction, ISCA’17 §3.4–3.5) — before routing is considered.