pub struct AllReduceRequest<T: NcclReduceSupported> {
pub tensor: GpuRef<T>,
pub op: ReduceOp,
pub reply: Sender<Result<(), GpuError>>,
}Expand description
In-place all-reduce on a single tensor on this actor’s device.
The world actor coordinates group_start/group_end across
ranks via separate BeginGroup / EndGroup messages.
Fields§
§tensor: GpuRef<T>§op: ReduceOp§reply: Sender<Result<(), GpuError>>Trait Implementations§
Source§impl<T: NcclReduceSupported> CollectiveDispatch for AllReduceRequest<T>
impl<T: NcclReduceSupported> CollectiveDispatch for AllReduceRequest<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 AllReduceRequest<T>
impl<T> !RefUnwindSafe for AllReduceRequest<T>
impl<T> Send for AllReduceRequest<T>
impl<T> Sync for AllReduceRequest<T>
impl<T> Unpin for AllReduceRequest<T>
impl<T> UnsafeUnpin for AllReduceRequest<T>
impl<T> !UnwindSafe for AllReduceRequest<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