#[repr(u32)]pub enum cusolverMathMode_t {
CUSOLVER_DEFAULT_MATH = 1,
CUSOLVER_FP32_EMULATED_BF16X9_MATH = 2,
CUSOLVER_FP64_EMULATED_FIXEDPOINT_MATH = 4,
CUSOLVER_FP32_FP64_EMULATED_MATH = 6,
}Expand description
The cusolverMathMode_t type is used in cusolverDnSetMathMode to choose compute precision modes as defined in the following table:
The following combinations of cusolverMathMode_t using the bitwise OR operator are allowed:
Variants§
CUSOLVER_DEFAULT_MATH = 1
This is the default math mode. Tensor Cores will be used whenever possible.
CUSOLVER_FP32_EMULATED_BF16X9_MATH = 2
Use FP32 emulation according to the configured emulation strategy (see cusolverDnSetEmulationStrategy).
CUSOLVER_FP64_EMULATED_FIXEDPOINT_MATH = 4
Use FP64 emulation according to the configured emulation strategy (see cusolverDnSetEmulationStrategy).
CUSOLVER_FP32_FP64_EMULATED_MATH = 6
Trait Implementations§
Source§impl Clone for cusolverMathMode_t
impl Clone for cusolverMathMode_t
Source§fn clone(&self) -> cusolverMathMode_t
fn clone(&self) -> cusolverMathMode_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 cusolverMathMode_t
impl Debug for cusolverMathMode_t
Source§impl From<cusolverMathMode_t> for u32
impl From<cusolverMathMode_t> for u32
Source§fn from(enum_value: cusolverMathMode_t) -> Self
fn from(enum_value: cusolverMathMode_t) -> Self
Converts to this type from the input type.
Source§impl Hash for cusolverMathMode_t
impl Hash for cusolverMathMode_t
Source§impl Ord for cusolverMathMode_t
impl Ord for cusolverMathMode_t
Source§fn cmp(&self, other: &cusolverMathMode_t) -> Ordering
fn cmp(&self, other: &cusolverMathMode_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 cusolverMathMode_t
impl PartialEq for cusolverMathMode_t
Source§fn eq(&self, other: &cusolverMathMode_t) -> bool
fn eq(&self, other: &cusolverMathMode_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cusolverMathMode_t
impl PartialOrd for cusolverMathMode_t
Source§impl TryFrom<u32> for cusolverMathMode_t
impl TryFrom<u32> for cusolverMathMode_t
Source§type Error = TryFromPrimitiveError<cusolverMathMode_t>
type Error = TryFromPrimitiveError<cusolverMathMode_t>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for cusolverMathMode_t
impl TryFromPrimitive for cusolverMathMode_t
const NAME: &'static str = "cusolverMathMode_t"
type Primitive = u32
type Error = TryFromPrimitiveError<cusolverMathMode_t>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for cusolverMathMode_t
impl Eq for cusolverMathMode_t
impl StructuralPartialEq for cusolverMathMode_t
Auto Trait Implementations§
impl Freeze for cusolverMathMode_t
impl RefUnwindSafe for cusolverMathMode_t
impl Send for cusolverMathMode_t
impl Sync for cusolverMathMode_t
impl Unpin for cusolverMathMode_t
impl UnsafeUnpin for cusolverMathMode_t
impl UnwindSafe for cusolverMathMode_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