~/bend-docscommunity

default_kernel_cost.bend checks

raw source on the hub · import stelliferous@0.0.4.0/default_kernel_cost.bend as Default_kernel_cost

The prices of the reference machine, one thread each: scripts/toolchain_rules/planner_prices.py measures a row, a step, a copied byte and a moved cell, and scripts/toolchain_rules/wake_rounds.py checks that two wake rounds cover a measured region (rule H11).

2 imports
import Base
import ./kernel_cost.bend as Cost

Definitions

def row_ns source · line 9 · raw

F32

A multiply-add row of eight lanes of the GEMM block.

def step_ns source · line 13 · raw

F32

One scalar step of a loop.

def byte_ns source · line 17 · raw

F32

One byte a block copy writes.

def move_ns source · line 21 · raw

F32

One cell moved through a view.

def grain_ns source · line 25 · raw

F32

The least predicted work of a leaf of the Array engine.

def wake_round_ns source · line 29 · raw

F32

One round of waking workers.

def dispatch_ns source · line 33 · raw

F32

Dispatching one more task of a region, about 0.12 us at four threads.

def configuration source · line 36 · raw

0xa2af805348d03b11eb853850859654f6/kernel_cost.Configuration