pub struct LocalCollective;Expand description
A world of one rank: every collective returns its input.
Trait Implementations§
Source§impl Clone for LocalCollective
impl Clone for LocalCollective
Source§impl Collective for LocalCollective
impl Collective for LocalCollective
fn rank(&self) -> usize
fn world_size(&self) -> usize
Source§fn allreduce_sum_f64(&mut self, _data: &mut [f64]) -> Result<()>
fn allreduce_sum_f64(&mut self, _data: &mut [f64]) -> Result<()>
Elementwise sum across ranks; every rank ends with the sum.
fn allreduce_sum_i64(&mut self, _data: &mut [i64]) -> Result<()>
impl Copy for LocalCollective
Source§impl Debug for LocalCollective
impl Debug for LocalCollective
Auto Trait Implementations§
impl Forget for LocalCollective
impl Freeze for LocalCollective
impl Move for LocalCollective
impl RefUnwindSafe for LocalCollective
impl Send for LocalCollective
impl Sync for LocalCollective
impl Unpin for LocalCollective
impl UnsafeUnpin for LocalCollective
impl UnwindSafe for LocalCollective
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> 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