pub struct LoweringPlan { /* private fields */ }Expand description
A completely admitted lowering bound to one canonical Tensor executor.
Construction performs all provider, geometry, shape, allocation, and
accuracy checks and creates every local-coordinate Tensor. Calling
execute never selects a different executor.
Implementations§
Source§impl LoweringPlan
impl LoweringPlan
Sourcepub fn preflight(
cx: &mut Cx,
problem: &InterferenceProblem,
plane: SamplingPlane,
budget: PhaseBudget,
profile: TileProfile,
) -> Result<Self, LoweringError>
pub fn preflight( cx: &mut Cx, problem: &InterferenceProblem, plane: SamplingPlane, budget: PhaseBudget, profile: TileProfile, ) -> Result<Self, LoweringError>
Preflights a complete request against the active environment executor.
When the environment has no active executor, the canonical CPU executor is captured. No Tensor request is submitted by this constructor.
Sourcepub fn executor_card(&self) -> &TensorExecutorCard
pub fn executor_card(&self) -> &TensorExecutorCard
Returns the captured executor descriptor.
Sourcepub fn max_phase_estimate(&self) -> SourcePhaseEstimate
pub fn max_phase_estimate(&self) -> SourcePhaseEstimate
Returns the maximum estimate across every source and tile.
Sourcepub fn phase_budget(&self) -> PhaseBudget
pub fn phase_budget(&self) -> PhaseBudget
Returns the admitted residual-phase and predicted-error limits.
Sourcepub fn source_constants(
&self,
tile_index: usize,
) -> Option<&[SourceTileConstants]>
pub fn source_constants( &self, tile_index: usize, ) -> Option<&[SourceTileConstants]>
Returns the prepared source constants for one tile.
Sourcepub fn execute(&self, cx: &mut Cx) -> Result<Vec<LoweredTile>, LoweringError>
pub fn execute(&self, cx: &mut Cx) -> Result<Vec<LoweredTile>, LoweringError>
Executes every prepared tile through the captured executor.
Provider errors after accepted work are returned as execution failures; this method never restarts a tile on another executor.