pub struct SendRequest<T: NcclReduceSupported> {
pub data: GpuRef<T>,
pub peer: i32,
pub reply: Sender<Result<(), GpuError>>,
}Expand description
Send data to rank peer. Per NCCL, must be paired with a
matching RecvRequest on the peer inside the same group call.
Fields§
§data: GpuRef<T>§peer: i32§reply: Sender<Result<(), GpuError>>Trait Implementations§
Source§impl<T: NcclReduceSupported> CollectiveDispatch for SendRequest<T>
impl<T: NcclReduceSupported> CollectiveDispatch for SendRequest<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 SendRequest<T>
impl<T> !RefUnwindSafe for SendRequest<T>
impl<T> Send for SendRequest<T>
impl<T> Sync for SendRequest<T>
impl<T> Unpin for SendRequest<T>
impl<T> UnsafeUnpin for SendRequest<T>
impl<T> !UnwindSafe for SendRequest<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