pub struct SmemSlotsAccumulation<A: Numeric> {
pub source: Tile,
/* private fields */
}Expand description
A cube’s shared-memory accumulator over one box, summing in A and read back as T, with a
slot of its own for each of writers writers.
A writer drains its partial with drain, which synchronizes
the cube once; once every writer has, source reads the sum. Every unit of the cube reaches
the drain, each plane with the partial it holds.
Fields§
§source: TileReads the sum of the slots back at the opened tile’s element; valid only once every writer has drained.
Implementations§
Source§impl<A: Numeric> SmemSlotsAccumulation<A>
impl<A: Numeric> SmemSlotsAccumulation<A>
Sourcepub fn drain(&self, partial: &Tile, writer: usize)
pub fn drain(&self, partial: &Tile, writer: usize)
Drain partial, an accumulator over the whole box, into writer’s slot, the cube
synchronized after. Once every writer of the cube has, the sum is in
source.
Sourcepub fn __expand_drain(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
partial: &<Tile as CubeType>::ExpandType,
writer: <usize as CubeType>::ExpandType,
)
pub fn __expand_drain( scope: &Scope, this: &<Self as CubeType>::ExpandType, partial: &<Tile as CubeType>::ExpandType, writer: <usize as CubeType>::ExpandType, )
Drain partial, an accumulator over the whole box, into writer’s slot, the cube
synchronized after. Once every writer of the cube has, the sum is in
source.
Trait Implementations§
Source§impl<A: Numeric> CubeType for SmemSlotsAccumulation<A>
impl<A: Numeric> CubeType for SmemSlotsAccumulation<A>
type ExpandType = SmemSlotsAccumulationExpand<A>
Auto Trait Implementations§
impl<A> !Send for SmemSlotsAccumulation<A>
impl<A> !Sync for SmemSlotsAccumulation<A>
impl<A> Freeze for SmemSlotsAccumulation<A>
impl<A> RefUnwindSafe for SmemSlotsAccumulation<A>
impl<A> Unpin for SmemSlotsAccumulation<A>
impl<A> UnsafeUnpin for SmemSlotsAccumulation<A>
impl<A> UnwindSafe for SmemSlotsAccumulation<A>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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