pub struct ReduceScatterRequest<T: NcclReduceSupported> {
pub send: GpuRef<T>,
pub recv: GpuRef<T>,
pub op: ReduceOp,
pub reply: Sender<Result<(), GpuError>>,
}Expand description
ReduceScatter: each rank contributes send (length N * world_size) and receives a reduced shard of length N into
recv.
Fields§
§send: GpuRef<T>§recv: GpuRef<T>§op: ReduceOp§reply: Sender<Result<(), GpuError>>Trait Implementations§
Source§impl<T: NcclReduceSupported> CollectiveDispatch for ReduceScatterRequest<T>
impl<T: NcclReduceSupported> CollectiveDispatch for ReduceScatterRequest<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 ReduceScatterRequest<T>
impl<T> !RefUnwindSafe for ReduceScatterRequest<T>
impl<T> Send for ReduceScatterRequest<T>
impl<T> Sync for ReduceScatterRequest<T>
impl<T> Unpin for ReduceScatterRequest<T>
impl<T> UnsafeUnpin for ReduceScatterRequest<T>
impl<T> !UnwindSafe for ReduceScatterRequest<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