#[repr(i32)]pub enum cutensorAlgo_t {
CUTENSOR_ALGO_DEFAULT_PATIENT = -6,
CUTENSOR_ALGO_GETT = -4,
CUTENSOR_ALGO_TGETT = -3,
CUTENSOR_ALGO_TTGT = -2,
CUTENSOR_ALGO_DEFAULT = -1,
}Expand description
Allows users to specify the algorithm to be used for performing the desired tensor operation.
Variants§
CUTENSOR_ALGO_DEFAULT_PATIENT = -6
More time-consuming than CUTENSOR_DEFAULT, but typically provides a more accurate kernel selection.
CUTENSOR_ALGO_GETT = -4
Choose the GETT algorithm (only applicable to contractions).
CUTENSOR_ALGO_TGETT = -3
Transpose (A or B) + GETT (only applicable to contractions).
CUTENSOR_ALGO_TTGT = -2
Transpose-Transpose-GEMM-Transpose (requires additional memory) (only applicable to contractions).
CUTENSOR_ALGO_DEFAULT = -1
A performance model chooses the appropriate algorithm and kernel.
Trait Implementations§
Source§impl Clone for cutensorAlgo_t
impl Clone for cutensorAlgo_t
Source§fn clone(&self) -> cutensorAlgo_t
fn clone(&self) -> cutensorAlgo_t
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 cutensorAlgo_t
impl Debug for cutensorAlgo_t
Source§impl From<cutensorAlgo_t> for i32
impl From<cutensorAlgo_t> for i32
Source§fn from(enum_value: cutensorAlgo_t) -> Self
fn from(enum_value: cutensorAlgo_t) -> Self
Converts to this type from the input type.
Source§impl Hash for cutensorAlgo_t
impl Hash for cutensorAlgo_t
Source§impl Ord for cutensorAlgo_t
impl Ord for cutensorAlgo_t
Source§fn cmp(&self, other: &cutensorAlgo_t) -> Ordering
fn cmp(&self, other: &cutensorAlgo_t) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for cutensorAlgo_t
impl PartialEq for cutensorAlgo_t
Source§fn eq(&self, other: &cutensorAlgo_t) -> bool
fn eq(&self, other: &cutensorAlgo_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cutensorAlgo_t
impl PartialOrd for cutensorAlgo_t
Source§impl TryFrom<i32> for cutensorAlgo_t
impl TryFrom<i32> for cutensorAlgo_t
Source§type Error = TryFromPrimitiveError<cutensorAlgo_t>
type Error = TryFromPrimitiveError<cutensorAlgo_t>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for cutensorAlgo_t
impl TryFromPrimitive for cutensorAlgo_t
const NAME: &'static str = "cutensorAlgo_t"
type Primitive = i32
type Error = TryFromPrimitiveError<cutensorAlgo_t>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for cutensorAlgo_t
impl Eq for cutensorAlgo_t
impl StructuralPartialEq for cutensorAlgo_t
Auto Trait Implementations§
impl Freeze for cutensorAlgo_t
impl RefUnwindSafe for cutensorAlgo_t
impl Send for cutensorAlgo_t
impl Sync for cutensorAlgo_t
impl Unpin for cutensorAlgo_t
impl UnsafeUnpin for cutensorAlgo_t
impl UnwindSafe for cutensorAlgo_t
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