Function sequant::opt::detail::roofline_op_cost¶
Defined in File cost_model.hpp
Function Documentation¶
-
inline double sequant::opt::detail::roofline_op_cost(double flops, double traffic, double machine_balance, double fast_mem_elems, double block_tiles, double block_prefactor) noexcept¶
Per-contraction roofline secondary cost (tie-break wall-time proxy).
Returns
max(flops, beta * Q), with data movementQ= max(traffic, kappa * flops / sqrt(M / c0)) combining compulsory single-pass traffic with the finite-cache (Hong-Kung) re-read bound. Withbeta(machine_balance) <= 0 this is exactlyflops(pure-flop tie-break, no behavior change).trafficis the operand+result footprint (elements),Mis fast_mem_elems,c0is block_tiles,kappais block_prefactor. See doc/dev/specs/2026-06-23-roofline-tiebreak-cost.md.