#[repr(i32)]pub enum CollectiveOperation {
kALL_REDUCE = 0,
kALL_GATHER = 1,
kBROADCAST = 2,
kREDUCE = 3,
kREDUCE_SCATTER = 4,
kALL_TO_ALL = 5,
kGATHER = 6,
kSCATTER = 7,
}Expand description
CollectiveOperation
Enumerates the collective operations that may be performed by a DistCollective layer.
See [IDistCollectiveLayer]
Variants§
kALL_REDUCE = 0
< All reduce.
kALL_GATHER = 1
< All gather.
kBROADCAST = 2
< Broadcast.
kREDUCE = 3
< Reduce.
kREDUCE_SCATTER = 4
< Reduce scatter.
kALL_TO_ALL = 5
< All-to-all exchange.
kGATHER = 6
< Gather to root.
kSCATTER = 7
< Scatter from root.
Trait Implementations§
Source§impl Clone for CollectiveOperation
impl Clone for CollectiveOperation
Source§fn clone(&self) -> CollectiveOperation
fn clone(&self) -> CollectiveOperation
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 moreimpl Eq for CollectiveOperation
Source§impl ExternType for CollectiveOperation
impl ExternType for CollectiveOperation
Source§impl From<CollectiveOperation> for CollectiveOperation
impl From<CollectiveOperation> for CollectiveOperation
Source§fn from(value: CollectiveOperation) -> Self
fn from(value: CollectiveOperation) -> Self
Converts to this type from the input type.
Source§impl Hash for CollectiveOperation
impl Hash for CollectiveOperation
Source§impl Into<CollectiveOperation> for CollectiveOperation
impl Into<CollectiveOperation> for CollectiveOperation
Source§fn into(self) -> CollectiveOperation
fn into(self) -> CollectiveOperation
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for CollectiveOperation
impl PartialEq for CollectiveOperation
Source§fn eq(&self, other: &CollectiveOperation) -> bool
fn eq(&self, other: &CollectiveOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CollectiveOperation
impl UniquePtrTarget for CollectiveOperation
impl VectorElement for CollectiveOperation
impl WeakPtrTarget for CollectiveOperation
Auto Trait Implementations§
impl Freeze for CollectiveOperation
impl RefUnwindSafe for CollectiveOperation
impl Send for CollectiveOperation
impl Sync for CollectiveOperation
impl Unpin for CollectiveOperation
impl UnsafeUnpin for CollectiveOperation
impl UnwindSafe for CollectiveOperation
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