pub struct Context<'comm> { /* private fields */ }Implementations§
Source§impl<'comm> Context<'comm>
impl<'comm> Context<'comm>
pub fn create( communicator: &'comm Communicator, local_device_id: i32, stream: StreamBinding, ) -> Result<Self>
pub fn cuda_context(&self) -> &Arc<CudaContext>
pub fn bind(&self) -> Result<()>
pub fn local_device_id(&self) -> i32
pub fn stream(&self) -> &StreamBinding
pub fn as_raw(&self) -> cutensorMpHandle_t
Trait Implementations§
impl Send for Context<'_>
Auto Trait Implementations§
impl<'comm> Freeze for Context<'comm>
impl<'comm> RefUnwindSafe for Context<'comm>
impl<'comm> Sync for Context<'comm>
impl<'comm> Unpin for Context<'comm>
impl<'comm> UnsafeUnpin for Context<'comm>
impl<'comm> UnwindSafe for Context<'comm>
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