pub struct AutotuneBound {
pub throughput: f64,
pub threshold: f32,
pub ops_count: usize,
}Expand description
A bound for autotuning a throughput kernel, specifying the key, threshold, and number of operations.
Fields§
§throughput: f64Peak throughput of the reference kernel, in ops (or bytes) per second.
threshold: f32The threshold for this bound, over which the kernel will be considered accurate.
ops_count: usizeThe number of operations the kernel will run.
Trait Implementations§
Source§impl Clone for AutotuneBound
impl Clone for AutotuneBound
Source§fn clone(&self) -> AutotuneBound
fn clone(&self) -> AutotuneBound
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 AutotuneBound
impl Debug for AutotuneBound
Source§impl<'de> Deserialize<'de> for AutotuneBound
impl<'de> Deserialize<'de> for AutotuneBound
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AutotuneBound
Source§impl PartialEq for AutotuneBound
Bitwise comparison of the measured throughputs, so that equality is reflexive even if a
degenerate measurement ever produces a NaN, which is what makes the Eq below sound.
impl PartialEq for AutotuneBound
Bitwise comparison of the measured throughputs, so that equality is reflexive even if a
degenerate measurement ever produces a NaN, which is what makes the Eq below sound.
Source§impl Serialize for AutotuneBound
impl Serialize for AutotuneBound
Source§impl TimeBound for AutotuneBound
impl TimeBound for AutotuneBound
Source§fn time_limit(&self) -> Option<Duration>
fn time_limit(&self) -> Option<Duration>
Returns the time limit for autotune bounds.
Auto Trait Implementations§
impl Freeze for AutotuneBound
impl RefUnwindSafe for AutotuneBound
impl Send for AutotuneBound
impl Sync for AutotuneBound
impl Unpin for AutotuneBound
impl UnsafeUnpin for AutotuneBound
impl UnwindSafe for AutotuneBound
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more