#[repr(u32)]pub enum DeterministicMode {
Deterministic = 1,
AllowNonDeterministic = 2,
}Expand description
Indicates whether repeated cuSOLVER executions with the same input are required to produce bitwise-identical results.
Compared with cuBLAS atomics mode, DeterministicMode covers
non-determinism beyond atomic operations.
Use Context::set_deterministic_mode
and Context::deterministic_mode
to configure and query this setting.
Variants§
Deterministic = 1
Compute deterministic results.
AllowNonDeterministic = 2
Allow non-deterministic results.
Trait Implementations§
Source§impl Clone for DeterministicMode
impl Clone for DeterministicMode
Source§fn clone(&self) -> DeterministicMode
fn clone(&self) -> DeterministicMode
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 DeterministicMode
impl Debug for DeterministicMode
Source§impl Display for DeterministicMode
impl Display for DeterministicMode
Source§impl From<DeterministicMode> for cusolverDeterministicMode_t
impl From<DeterministicMode> for cusolverDeterministicMode_t
Source§fn from(value: DeterministicMode) -> Self
fn from(value: DeterministicMode) -> Self
Converts to this type from the input type.
Source§impl From<DeterministicMode> for u32
impl From<DeterministicMode> for u32
Source§fn from(enum_value: DeterministicMode) -> Self
fn from(enum_value: DeterministicMode) -> Self
Converts to this type from the input type.
Source§impl From<cusolverDeterministicMode_t> for DeterministicMode
impl From<cusolverDeterministicMode_t> for DeterministicMode
Source§fn from(value: cusolverDeterministicMode_t) -> Self
fn from(value: cusolverDeterministicMode_t) -> Self
Converts to this type from the input type.
Source§impl Hash for DeterministicMode
impl Hash for DeterministicMode
Source§impl PartialEq for DeterministicMode
impl PartialEq for DeterministicMode
Source§fn eq(&self, other: &DeterministicMode) -> bool
fn eq(&self, other: &DeterministicMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for DeterministicMode
impl TryFrom<u32> for DeterministicMode
Source§type Error = TryFromPrimitiveError<DeterministicMode>
type Error = TryFromPrimitiveError<DeterministicMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DeterministicMode
impl TryFromPrimitive for DeterministicMode
const NAME: &'static str = "DeterministicMode"
type Primitive = u32
type Error = TryFromPrimitiveError<DeterministicMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DeterministicMode
impl Eq for DeterministicMode
impl StructuralPartialEq for DeterministicMode
Auto Trait Implementations§
impl Freeze for DeterministicMode
impl RefUnwindSafe for DeterministicMode
impl Send for DeterministicMode
impl Sync for DeterministicMode
impl Unpin for DeterministicMode
impl UnsafeUnpin for DeterministicMode
impl UnwindSafe for DeterministicMode
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