pub enum WarpInstruction<D: Dialect> {
Show 17 variants
ReduceSum {
input: Variable<D>,
out: Variable<D>,
},
InclusiveSum {
input: Variable<D>,
out: Variable<D>,
},
ExclusiveSum {
input: Variable<D>,
out: Variable<D>,
},
ReduceProd {
input: Variable<D>,
out: Variable<D>,
},
InclusiveProd {
input: Variable<D>,
out: Variable<D>,
},
ExclusiveProd {
input: Variable<D>,
out: Variable<D>,
},
ReduceMax {
input: Variable<D>,
out: Variable<D>,
},
ReduceMin {
input: Variable<D>,
out: Variable<D>,
},
Elect {
out: Variable<D>,
},
All {
input: Variable<D>,
out: Variable<D>,
},
Any {
input: Variable<D>,
out: Variable<D>,
},
Ballot {
input: Variable<D>,
out: Variable<D>,
},
Broadcast {
input: Variable<D>,
id: Variable<D>,
out: Variable<D>,
},
Shuffle {
input: Variable<D>,
src_lane: Variable<D>,
out: Variable<D>,
},
ShuffleXor {
input: Variable<D>,
mask: Variable<D>,
out: Variable<D>,
},
ShuffleUp {
input: Variable<D>,
delta: Variable<D>,
out: Variable<D>,
},
ShuffleDown {
input: Variable<D>,
delta: Variable<D>,
out: Variable<D>,
},
}Variants§
ReduceSum
InclusiveSum
ExclusiveSum
ReduceProd
InclusiveProd
ExclusiveProd
ReduceMax
ReduceMin
Elect
All
Any
Ballot
Broadcast
Shuffle
ShuffleXor
ShuffleUp
ShuffleDown
Trait Implementations§
Source§impl<D: Clone + Dialect> Clone for WarpInstruction<D>
impl<D: Clone + Dialect> Clone for WarpInstruction<D>
Source§fn clone(&self) -> WarpInstruction<D>
fn clone(&self) -> WarpInstruction<D>
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 moreAuto Trait Implementations§
impl<D> Freeze for WarpInstruction<D>
impl<D> RefUnwindSafe for WarpInstruction<D>where
D: RefUnwindSafe,
impl<D> Send for WarpInstruction<D>
impl<D> Sync for WarpInstruction<D>
impl<D> Unpin for WarpInstruction<D>where
D: Unpin,
impl<D> UnwindSafe for WarpInstruction<D>where
D: UnwindSafe,
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