pub struct CollectiveDispatchCtx<'a> {
pub comm: &'a Comm,
pub state: &'a Arc<DeviceState>,
pub completion: &'a Arc<dyn CompletionStrategy>,
}Expand description
Per-call context handed to a CollectiveDispatch::dispatch impl.
Carries the NCCL communicator (cudarc wraps it) plus the device
state and completion strategy.
Fields§
§comm: &'a Comm§state: &'a Arc<DeviceState>§completion: &'a Arc<dyn CompletionStrategy>Auto Trait Implementations§
impl<'a> Freeze for CollectiveDispatchCtx<'a>
impl<'a> !RefUnwindSafe for CollectiveDispatchCtx<'a>
impl<'a> !Send for CollectiveDispatchCtx<'a>
impl<'a> !Sync for CollectiveDispatchCtx<'a>
impl<'a> Unpin for CollectiveDispatchCtx<'a>
impl<'a> UnsafeUnpin for CollectiveDispatchCtx<'a>
impl<'a> !UnwindSafe for CollectiveDispatchCtx<'a>
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