#[non_exhaustive]#[repr(u32)]pub enum AutotuneMode {
None = 0,
Incremental = 1,
}Expand description
Controls cuTENSOR autotuning behavior.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
Indicates no autotuning (default); the cache reduces plan-creation overhead. On a cache hit, the cached plan is reused; otherwise the plan cache is ignored.
Incremental = 1
Indicates incremental autotuning.
Each corresponding sys::cutensorCreatePlan invocation creates a plan based on a different algorithm or kernel.
PlanPreferenceAttribute::IncrementalCount defines the maximum number of kernels tested.
May choose different algorithms across plan creations, so it does not
guarantee bitwise-identical results.
Trait Implementations§
Source§impl Clone for AutotuneMode
impl Clone for AutotuneMode
Source§fn clone(&self) -> AutotuneMode
fn clone(&self) -> AutotuneMode
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 moreimpl Copy for AutotuneMode
Source§impl Debug for AutotuneMode
impl Debug for AutotuneMode
Source§impl Display for AutotuneMode
impl Display for AutotuneMode
impl Eq for AutotuneMode
Source§impl From<AutotuneMode> for u32
impl From<AutotuneMode> for u32
Source§fn from(enum_value: AutotuneMode) -> Self
fn from(enum_value: AutotuneMode) -> Self
Converts to this type from the input type.
Source§impl From<AutotuneMode> for cutensorAutotuneMode_t
impl From<AutotuneMode> for cutensorAutotuneMode_t
Source§fn from(value: AutotuneMode) -> Self
fn from(value: AutotuneMode) -> Self
Converts to this type from the input type.
Source§impl From<cutensorAutotuneMode_t> for AutotuneMode
impl From<cutensorAutotuneMode_t> for AutotuneMode
Source§fn from(value: cutensorAutotuneMode_t) -> Self
fn from(value: cutensorAutotuneMode_t) -> Self
Converts to this type from the input type.
Source§impl Hash for AutotuneMode
impl Hash for AutotuneMode
Source§impl PartialEq for AutotuneMode
impl PartialEq for AutotuneMode
Source§fn eq(&self, other: &AutotuneMode) -> bool
fn eq(&self, other: &AutotuneMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AutotuneMode
Source§impl TryFrom<u32> for AutotuneMode
impl TryFrom<u32> for AutotuneMode
Source§type Error = TryFromPrimitiveError<AutotuneMode>
type Error = TryFromPrimitiveError<AutotuneMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AutotuneMode
impl TryFromPrimitive for AutotuneMode
const NAME: &'static str = "AutotuneMode"
type Primitive = u32
type Error = TryFromPrimitiveError<AutotuneMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for AutotuneMode
impl RefUnwindSafe for AutotuneMode
impl Send for AutotuneMode
impl Sync for AutotuneMode
impl Unpin for AutotuneMode
impl UnsafeUnpin for AutotuneMode
impl UnwindSafe for AutotuneMode
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