pub struct ReductionContext {
pub exec_mode: ExecMode,
pub repro_mode: ReproMode,
pub in_nogc: bool,
pub is_linalg: bool,
}Expand description
Reduction context passed to the dispatch logic.
Fields§
§exec_mode: ExecModeCurrent execution mode.
repro_mode: ReproModeReproducibility mode.
in_nogc: boolWhether we are inside a @nogc function.
is_linalg: boolWhether this is a linalg operation (matmul, etc.).
Implementations§
Source§impl ReductionContext
impl ReductionContext
Sourcepub fn default_serial() -> Self
pub fn default_serial() -> Self
Default context: serial, repro on, not in nogc, not linalg.
Sourcepub fn strict_parallel() -> Self
pub fn strict_parallel() -> Self
Context for strict parallel.
Trait Implementations§
Source§impl Clone for ReductionContext
impl Clone for ReductionContext
Source§fn clone(&self) -> ReductionContext
fn clone(&self) -> ReductionContext
Returns a duplicate of the value. Read more
1.0.0 · 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 ReductionContext
impl Debug for ReductionContext
impl Copy for ReductionContext
Auto Trait Implementations§
impl Freeze for ReductionContext
impl RefUnwindSafe for ReductionContext
impl Send for ReductionContext
impl Sync for ReductionContext
impl Unpin for ReductionContext
impl UnsafeUnpin for ReductionContext
impl UnwindSafe for ReductionContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more