pub struct SchedulingConfig {
pub max_parallelism: usize,
pub energy_budget_j: Option<f64>,
pub prefer_efficiency: bool,
pub min_parallelism: usize,
pub base_energy_per_op: f64,
}Expand description
Configuration for the scheduler
Fields§
§max_parallelism: usizeMaximum parallelism (number of operators in one step)
energy_budget_j: Option<f64>Energy budget in Joules (None = unlimited)
prefer_efficiency: boolWhether to prefer energy efficiency over speed
min_parallelism: usizeMinimum operators to run in parallel (below this, don’t bother)
base_energy_per_op: f64Energy cost per operator (baseline, in arbitrary units)
Implementations§
Source§impl SchedulingConfig
impl SchedulingConfig
Sourcepub fn high_performance(cores: usize) -> Self
pub fn high_performance(cores: usize) -> Self
Create config for high-performance mode
Sourcepub fn energy_efficient(budget_j: f64) -> Self
pub fn energy_efficient(budget_j: f64) -> Self
Create config for energy-efficient mode
Sourcepub fn thermal_constrained() -> Self
pub fn thermal_constrained() -> Self
Create config for thermal-constrained mode
Trait Implementations§
Source§impl Clone for SchedulingConfig
impl Clone for SchedulingConfig
Source§fn clone(&self) -> SchedulingConfig
fn clone(&self) -> SchedulingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchedulingConfig
impl Debug for SchedulingConfig
Auto Trait Implementations§
impl Freeze for SchedulingConfig
impl RefUnwindSafe for SchedulingConfig
impl Send for SchedulingConfig
impl Sync for SchedulingConfig
impl Unpin for SchedulingConfig
impl UnwindSafe for SchedulingConfig
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
Mutably borrows from an owned value. Read more