pub struct MemoryOrdinalInfo {
pub ordinal: u32,
pub name: String,
pub total_bytes: u64,
pub max_bandwidth: u64,
}Expand description
A single entry of zeDeviceGetMemoryProperties output.
Each Intel GPU reports one or more memory ordinals (e.g. HBM on Ponte Vecchio, GDDR6 on Arc, system DRAM on Xe-LP). The backend picks an ordinal for device allocations based on this table.
Fields§
§ordinal: u32The ordinal index passed to zeMemAllocDevice’s descriptor.
name: StringHuman-readable memory name reported by the driver (e.g. "HBM").
total_bytes: u64Total bytes of this memory pool.
max_bandwidth: u64Peak bandwidth in bytes/sec (0 when the driver does not report it).
Trait Implementations§
Source§impl Clone for MemoryOrdinalInfo
impl Clone for MemoryOrdinalInfo
Source§fn clone(&self) -> MemoryOrdinalInfo
fn clone(&self) -> MemoryOrdinalInfo
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 moreSource§impl Debug for MemoryOrdinalInfo
impl Debug for MemoryOrdinalInfo
impl Eq for MemoryOrdinalInfo
Source§impl PartialEq for MemoryOrdinalInfo
impl PartialEq for MemoryOrdinalInfo
Source§fn eq(&self, other: &MemoryOrdinalInfo) -> bool
fn eq(&self, other: &MemoryOrdinalInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryOrdinalInfo
Auto Trait Implementations§
impl Freeze for MemoryOrdinalInfo
impl RefUnwindSafe for MemoryOrdinalInfo
impl Send for MemoryOrdinalInfo
impl Sync for MemoryOrdinalInfo
impl Unpin for MemoryOrdinalInfo
impl UnsafeUnpin for MemoryOrdinalInfo
impl UnwindSafe for MemoryOrdinalInfo
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