Skip to main content

Module speculation

Module speculation 

Source
Expand description

Runtime-side paired speculation races for megakernel dispatch.

The driver crate owns the backend-neutral decision math. This module owns the megakernel/runtime bridge: every candidate rewrite is measured as a conservative/speculative pair, the faster side is recorded in the shared autotune store, and the accumulated sample window is converted into the N2 adoption verdict.

Structsยง

PairedSpeculationSample
One measured conservative/speculative dispatch pair.
PairedSpeculationUpdate
Result of recording one paired race.
PairedSpeculationWindow
Accumulated paired-race window for one rewrite candidate and shape.