pub struct CollectiveBarrier {
pub world_size: usize,
/* private fields */
}Expand description
Cross-rank barrier for summing f32 vectors.
Shared by TP AllReduce, FSDP Reduce-Scatter, and PP gradient exchange.
Fields§
§world_size: usizeImplementations§
Auto Trait Implementations§
impl !Freeze for CollectiveBarrier
impl RefUnwindSafe for CollectiveBarrier
impl Send for CollectiveBarrier
impl Sync for CollectiveBarrier
impl Unpin for CollectiveBarrier
impl UnsafeUnpin for CollectiveBarrier
impl UnwindSafe for CollectiveBarrier
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