#[repr(u32)]pub enum MathMode {
Default = 1,
Fp32EmulatedBf16x9 = 2,
}Expand description
Compute precision mode selected by set_math_mode.
The following combinations of MathMode using the bitwise OR operator are allowed.
Math mode selection for cuSOLVER operations.
Variants§
Default = 1
Default math mode. Tensor Cores are used whenever possible.
Fp32EmulatedBf16x9 = 2
Use FP32 emulation according to the configured emulation strategy (see set_emulation_strategy).
Trait Implementations§
Source§impl From<MathMode> for cusolverMathMode_t
impl From<MathMode> for cusolverMathMode_t
Source§impl From<cusolverMathMode_t> for MathMode
impl From<cusolverMathMode_t> for MathMode
Source§fn from(value: cusolverMathMode_t) -> Self
fn from(value: cusolverMathMode_t) -> Self
Converts to this type from the input type.
Source§impl TryFromPrimitive for MathMode
impl TryFromPrimitive for MathMode
impl Copy for MathMode
impl Eq for MathMode
impl StructuralPartialEq for MathMode
Auto Trait Implementations§
impl Freeze for MathMode
impl RefUnwindSafe for MathMode
impl Send for MathMode
impl Sync for MathMode
impl Unpin for MathMode
impl UnsafeUnpin for MathMode
impl UnwindSafe for MathMode
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