pub struct EnumeratedDevice {
pub ordinal: u32,
pub type_: u32,
pub vendor_id: u32,
pub device_id: u32,
pub name: String,
pub core_clock_khz: u32,
pub max_mem_alloc_size: u64,
pub num_slices: u32,
pub num_subslices_per_slice: u32,
pub num_eus_per_subslice: u32,
}Expand description
Device record flattened from ze_device_properties_t by enumerate.
Fields§
§ordinal: u32Global device ordinal across all drivers, in enumeration order.
type_: u32ze_device_type_t of the device.
vendor_id: u32PCI vendor ID.
device_id: u32PCI device ID.
name: StringDevice name, decoded from ze_device_properties_t::name.
core_clock_khz: u32Core clock in kHz, converted from coreClockRate (MHz).
max_mem_alloc_size: u64Largest single allocation in bytes.
num_slices: u32Number of slices.
num_subslices_per_slice: u32Number of subslices per slice.
num_eus_per_subslice: u32Number of execution units per subslice.
Trait Implementations§
Source§impl Clone for EnumeratedDevice
impl Clone for EnumeratedDevice
Auto Trait Implementations§
impl Freeze for EnumeratedDevice
impl RefUnwindSafe for EnumeratedDevice
impl Send for EnumeratedDevice
impl Sync for EnumeratedDevice
impl Unpin for EnumeratedDevice
impl UnsafeUnpin for EnumeratedDevice
impl UnwindSafe for EnumeratedDevice
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