pub struct MulticastObject { /* private fields */ }Expand description
A multicast object. Drop releases the underlying
CUmemGenericAllocationHandle via cuMemRelease.
Implementations§
Source§impl MulticastObject
impl MulticastObject
pub fn new(num_devices: u32, size_bytes: usize) -> Result<Self>
pub fn add_device(&self, device: &Device) -> Result<()>
Sourcepub fn bind_mem(
&self,
mc_offset: usize,
mem_handle: CUmemGenericAllocationHandle,
mem_offset: usize,
size: usize,
) -> Result<()>
pub fn bind_mem( &self, mc_offset: usize, mem_handle: CUmemGenericAllocationHandle, mem_offset: usize, size: usize, ) -> Result<()>
Bind a VMM allocation handle at mc_offset → (mem_handle, mem_offset, size).
Sourcepub fn bind_addr(
&self,
mc_offset: usize,
ptr: CUdeviceptr,
size: usize,
) -> Result<()>
pub fn bind_addr( &self, mc_offset: usize, ptr: CUdeviceptr, size: usize, ) -> Result<()>
Bind an already-mapped device pointer into the multicast object.
pub fn unbind( &self, device: &Device, mc_offset: usize, size: usize, ) -> Result<()>
pub fn as_raw(&self) -> CUmemGenericAllocationHandle
Trait Implementations§
Source§impl Clone for MulticastObject
impl Clone for MulticastObject
Source§fn clone(&self) -> MulticastObject
fn clone(&self) -> MulticastObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MulticastObject
impl RefUnwindSafe for MulticastObject
impl Send for MulticastObject
impl Sync for MulticastObject
impl Unpin for MulticastObject
impl UnsafeUnpin for MulticastObject
impl UnwindSafe for MulticastObject
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