pub struct GpuMemory {
pub bytes_in_use: u64,
pub bytes_reserved: u64,
pub bytes_padding: u64,
pub number_allocs: u64,
}Expand description
GPU allocator state from cubecl’s memory manager (authoritative — process RSS is meaningless for unified-memory GPU accounting).
Fields§
§bytes_in_use: u64Bytes referenced by live handles.
bytes_reserved: u64Bytes reserved by the pool (in-use + cached slabs).
bytes_padding: u64Bytes lost to alignment padding.
number_allocs: u64Live allocation count.
Trait Implementations§
impl Copy for GpuMemory
Auto Trait Implementations§
impl Freeze for GpuMemory
impl RefUnwindSafe for GpuMemory
impl Send for GpuMemory
impl Sync for GpuMemory
impl Unpin for GpuMemory
impl UnsafeUnpin for GpuMemory
impl UnwindSafe for GpuMemory
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