pub struct AllToAllRequest<T: NcclReduceSupported> {
pub send: GpuRef<T>,
pub recv: GpuRef<T>,
pub count: usize,
pub reply: Sender<Result<(), GpuError>>,
}Expand description
Symmetric AllToAll: each rank sends an equal-sized shard of length
count to every peer. send carries world_size * count
elements; recv likewise.
Fields§
§send: GpuRef<T>§recv: GpuRef<T>§count: usize§reply: Sender<Result<(), GpuError>>Trait Implementations§
Source§impl<T: NcclReduceSupported> CollectiveDispatch for AllToAllRequest<T>
impl<T: NcclReduceSupported> CollectiveDispatch for AllToAllRequest<T>
fn dtype_kind(&self) -> DispatchDType
fn device_id(&self) -> Option<u32>
fn dispatch(self: Box<Self>, ctx: &CollectiveDispatchCtx<'_>)
Auto Trait Implementations§
impl<T> Freeze for AllToAllRequest<T>
impl<T> !RefUnwindSafe for AllToAllRequest<T>
impl<T> Send for AllToAllRequest<T>
impl<T> Sync for AllToAllRequest<T>
impl<T> Unpin for AllToAllRequest<T>
impl<T> UnsafeUnpin for AllToAllRequest<T>
impl<T> !UnwindSafe for AllToAllRequest<T>
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