default_kernel_cost.bend checks
raw source on the hub · import stelliferous@0.0.2.0/default_kernel_cost.bend as Default_kernel_cost
One clock assumption, 2.5 GHz (0.4 ns per cycle), prices both vector MACs and scalar operations. A 4x8 step issues four 256-bit multiplies and four adds for 32 MACs; with multiplies and adds on separate ports that is conservatively four cycles. Scalar operations counted from source are charged one cycle each: pool maxima and elementwise loops carry dependency chains, so the core's issue width is not assumed. Copy cost rounds the retained 0.090833 ns/byte upper quartile upward. See docs/design.md for instruction sources, assumptions and residuals.
2 imports
import Base import ./kernel_cost.bend as Cost
Definitions
def cycle_ns source · line 12 · raw
F32
def configuration source · line 15 · raw
0x9be3b13bf249759bc81e1958bcd1a4c0/kernel_cost.Configuration