pub struct PinnedBuffer {
pub ptr: *mut c_void,
pub bytes: usize,
}Fields§
§ptr: *mut c_void§bytes: usizeImplementations§
Source§impl PinnedBuffer
impl PinnedBuffer
pub fn new(bytes: usize) -> Result<Self>
Sourcepub fn device_ptr(&self) -> Result<u64>
pub fn device_ptr(&self) -> Result<u64>
Device pointer the GPU uses to address this pinned host allocation.
On GB10’s unified LPDDR (unified addressing) this equals the host
pointer numerically — the property the UMA zero-copy expert arena relies
on. cuMemAllocHost memory is portable + page-locked + device-accessible,
so no Mapped flag is required.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PinnedBuffer
impl RefUnwindSafe for PinnedBuffer
impl Unpin for PinnedBuffer
impl UnwindSafe for PinnedBuffer
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