pub struct StackPolicy {Show 16 fields
pub mode: Mode,
pub timing: Timing,
pub require_validation: bool,
pub tolerance: Tolerance,
pub warmups: usize,
pub samples: usize,
pub max_candidates: usize,
pub budget: Duration,
pub min_speedup: f64,
pub max_relative_mad: f64,
pub workspace_limit: Option<u64>,
pub capacity: usize,
pub max_parallel_tunes: usize,
pub ttl: Duration,
pub regression_pairs: usize,
pub regression_ratio: f64,
}Fields§
§mode: Mode§timing: Timing§require_validation: bool§tolerance: Tolerance§warmups: usize§samples: usizeOdd sample count. Each non-reference sample is paired with a fresh reference measurement.
max_candidates: usize§budget: DurationA soft deadline checked BETWEEN completed trials; running kernels are never interrupted.
min_speedup: f64§max_relative_mad: f64Maximum median absolute deviation of paired ratios divided by their median.
workspace_limit: Option<u64>§capacity: usize§max_parallel_tunes: usize§ttl: Duration§regression_pairs: usize§regression_ratio: f64Implementations§
Source§impl StackPolicy
impl StackPolicy
pub fn validate(&self) -> Result<(), TuneFailure>
Sourcepub fn accuracy_key(&self) -> String
pub fn accuracy_key(&self) -> String
Mode is intentionally excluded: an offline Explore cache is usable by CacheOnly.
Trait Implementations§
Source§impl Clone for StackPolicy
impl Clone for StackPolicy
Source§fn clone(&self) -> StackPolicy
fn clone(&self) -> StackPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StackPolicy
impl Debug for StackPolicy
Source§impl Default for StackPolicy
impl Default for StackPolicy
Source§fn default() -> StackPolicy
fn default() -> StackPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StackPolicy
impl RefUnwindSafe for StackPolicy
impl Send for StackPolicy
impl Sync for StackPolicy
impl Unpin for StackPolicy
impl UnsafeUnpin for StackPolicy
impl UnwindSafe for StackPolicy
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