CircuitExec

Struct CircuitExec 

Source
pub struct CircuitExec {
    pub decode: Program,
    pub decode_plan: FusionPlan,
    pub multi_seq: Vec<(Program, FusionPlan)>,
    pub verify: Vec<(Program, FusionPlan)>,
    pub draft: Option<Arc<DraftPrograms>>,
    pub routes: Vec<RoutedProgram>,
    pub gdn_pitch: Vec<Option<(usize, usize)>>,
    pub verify_batch: Option<VerifyBatch>,
    pub rules_digest: String,
    pub fusions: Fusions,
    /* private fields */
}
Expand description

2026-09-28: A built executor: the decode program and the workspace it runs in.

Fields§

§decode: Program

2026-09-28: Decode at one row.

§decode_plan: FusionPlan

2026-09-28: The plan decode was compiled from.

§multi_seq: Vec<(Program, FusionPlan)>

2026-09-28: Multi-sequence decode, one program per padded width, ascending; each with the plan it was compiled from.

§verify: Vec<(Program, FusionPlan)>

2026-09-29: The single-sequence MTP verify, one program per K, ascending.

§draft: Option<Arc<DraftPrograms>>

2026-09-29: The MTP draft head’s single-row step and (2026-09-30) its n-row ones, which the head runs itself (DraftRunner).

§routes: Vec<RoutedProgram>

2026-09-30: The runtime routes’ arms, beside the primary program of each mode and row count they apply to (routes).

§gdn_pitch: Vec<Option<(usize, usize)>>

2026-09-30: Per layer, the (h, conv) slot pitch of its GDN state; None elsewhere.

§verify_batch: Option<VerifyBatch>

2026-09-30: The batched MTP verify’s programs, compiled per row table.

§rules_digest: String

2026-09-28: SHA-256 of the FUSIONS.toml the plan was chosen from.

§fusions: Fusions

2026-09-28: Which rules the build allowed.

Implementations§

Source§

impl CircuitExec

Source

pub fn build(b: Boot<'_>) -> Result<Self>

2026-09-28: Build the executor.

Source

pub fn multi_seq_program(&self, rows: u64) -> Option<&Program>

2026-09-28: The multi-sequence program for rows padded rows, if one was compiled.

Source

pub fn multi_seq_step( &self, rows: u64, gdn: &[Vec<GdnState>], ) -> Result<&Program>

2026-09-30: The program a multi-sequence step of rows padded rows runs, given its GDN states: the arm of the first runtime route whose condition holds, else the primary one.

Source

pub fn draft_runner(&self) -> Option<Arc<dyn DraftRunner>>

2026-09-29: The draft head’s program, if one was compiled.

Source

pub fn verify_program(&self, k: u64) -> Option<&Program>

2026-09-29: The verify program for k rows, if one was compiled.

Source

pub fn plans_digest(&self) -> String

2026-09-28: One digest over every compiled plan, in order (decode, then the multi-sequence widths ascending, then the verify widths, the draft step and, 2026-09-30, the runtime routes’ arms): what a record of this forward discloses.

Source

pub fn workspace_bytes(&self) -> u64

2026-09-28: Bytes of the workspace.

Source

pub fn free(self, gpu: &dyn GpuBackend) -> Result<()>

2026-09-28: Free the workspace. The caller must first destroy every graph that captured a program of this executor.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,