pub struct BroadcastRequest<T: NcclReduceSupported> {
pub data: GpuRef<T>,
pub root: usize,
pub reply: Sender<Result<(), GpuError>>,
}Expand description
In-place broadcast: every rank’s data buffer is overwritten with
the contents of data on the rank whose comm.rank() == root.
Fields§
§data: GpuRef<T>§root: usize§reply: Sender<Result<(), GpuError>>Trait Implementations§
Source§impl<T: NcclReduceSupported> CollectiveDispatch for BroadcastRequest<T>
impl<T: NcclReduceSupported> CollectiveDispatch for BroadcastRequest<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 BroadcastRequest<T>
impl<T> !RefUnwindSafe for BroadcastRequest<T>
impl<T> Send for BroadcastRequest<T>
impl<T> Sync for BroadcastRequest<T>
impl<T> Unpin for BroadcastRequest<T>
impl<T> UnsafeUnpin for BroadcastRequest<T>
impl<T> !UnwindSafe for BroadcastRequest<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