#[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
! ! \enum CollectiveOperation ! ! \brief 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 moreSource§impl Debug for CollectiveOperation
impl Debug 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 Ord for CollectiveOperation
impl Ord for CollectiveOperation
Source§fn cmp(&self, other: &CollectiveOperation) -> Ordering
fn cmp(&self, other: &CollectiveOperation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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 ==.Source§impl PartialOrd for CollectiveOperation
impl PartialOrd for CollectiveOperation
impl Copy for CollectiveOperation
impl Eq for CollectiveOperation
impl StructuralPartialEq 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