pub struct BatchDispatchConfig {Show 14 fields
pub workgroup_size_x: u32,
pub worker_groups: u32,
pub hit_capacity: u32,
pub timeout: Duration,
pub graph_node_count: u32,
pub graph_edge_count: u32,
pub frontier_density_bps: u16,
pub memory_pressure_bps: u16,
pub resident_device_bytes: u64,
pub device_memory_budget_bytes: u64,
pub hot_opcode_count: u32,
pub hot_window_count: u32,
pub requeue_count: u64,
pub max_priority_age: u32,
}Expand description
Immutable pipeline + launch geometry for batched megakernel scans.
Fields§
§workgroup_size_x: u32Worker lanes per workgroup.
worker_groups: u32Number of workgroups to launch for each batch.
hit_capacity: u32Maximum sparse hits retained in the output ring.
timeout: DurationPer-dispatch timeout budget.
graph_node_count: u32Optional graph-node count hint for topology selection.
graph_edge_count: u32Optional graph-edge count hint for topology selection.
frontier_density_bps: u16Optional active-frontier density in basis points.
memory_pressure_bps: u16Optional memory-pressure estimate in basis points.
resident_device_bytes: u64Additional device-resident bytes already committed for this dispatch family.
The dispatcher adds its fixed queue-state resident footprint when building the shared launch-policy request.
device_memory_budget_bytes: u64Hard device-memory budget for policy planning. Zero means unbounded.
hot_opcode_count: u32Hot opcode count observed by the caller or runtime telemetry.
hot_window_count: u32Hot window count observed by the caller or runtime telemetry.
requeue_count: u64Requeued continuation count observed by the caller or runtime telemetry.
max_priority_age: u32Maximum priority age observed by the caller or runtime telemetry.
Implementations§
Source§impl BatchDispatchConfig
impl BatchDispatchConfig
Sourcepub const fn with_graph_hints(
self,
graph_node_count: u32,
graph_edge_count: u32,
frontier_density_bps: u16,
memory_pressure_bps: u16,
) -> Self
pub const fn with_graph_hints( self, graph_node_count: u32, graph_edge_count: u32, frontier_density_bps: u16, memory_pressure_bps: u16, ) -> Self
Attach graph-topology hints used by the shared megakernel policy.
Sourcepub const fn with_device_memory_budget(
self,
resident_device_bytes: u64,
device_memory_budget_bytes: u64,
) -> Self
pub const fn with_device_memory_budget( self, resident_device_bytes: u64, device_memory_budget_bytes: u64, ) -> Self
Attach hard device-memory budget hints used by the shared launch policy.
Sourcepub const fn with_execution_hints(
self,
hot_opcode_count: u32,
hot_window_count: u32,
requeue_count: u64,
max_priority_age: u32,
) -> Self
pub const fn with_execution_hints( self, hot_opcode_count: u32, hot_window_count: u32, requeue_count: u64, max_priority_age: u32, ) -> Self
Attach execution hotness hints used by interpreter/JIT routing.
Sourcepub fn launch_recommendation(
&self,
limits: &Limits,
queue_len: u32,
) -> Result<MegakernelLaunchRecommendation, PipelineError>
pub fn launch_recommendation( &self, limits: &Limits, queue_len: u32, ) -> Result<MegakernelLaunchRecommendation, PipelineError>
Return the shared launch-policy recommendation for this batch shape.
§Errors
Returns PipelineError::Backend when adapter limits are malformed.
Trait Implementations§
Source§impl Clone for BatchDispatchConfig
impl Clone for BatchDispatchConfig
Source§fn clone(&self) -> BatchDispatchConfig
fn clone(&self) -> BatchDispatchConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BatchDispatchConfig
impl Debug for BatchDispatchConfig
Source§impl Default for BatchDispatchConfig
impl Default for BatchDispatchConfig
impl Eq for BatchDispatchConfig
Source§impl PartialEq for BatchDispatchConfig
impl PartialEq for BatchDispatchConfig
impl StructuralPartialEq for BatchDispatchConfig
Auto Trait Implementations§
impl Freeze for BatchDispatchConfig
impl RefUnwindSafe for BatchDispatchConfig
impl Send for BatchDispatchConfig
impl Sync for BatchDispatchConfig
impl Unpin for BatchDispatchConfig
impl UnsafeUnpin for BatchDispatchConfig
impl UnwindSafe for BatchDispatchConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.