Struct furiosa_smi_rs::Device
source · pub struct Device { /* private fields */ }
Expand description
Abstraction for a single Furiosa NPU device.
Implementations§
source§impl Device
impl Device
sourcepub fn device_info(&self) -> SmiResult<DeviceInfo>
pub fn device_info(&self) -> SmiResult<DeviceInfo>
Returns DeviceInfo
which contains information about NPU device. (e.g. arch, serial, …)
sourcepub fn device_files(&self) -> SmiResult<Vec<DeviceFile>>
pub fn device_files(&self) -> SmiResult<Vec<DeviceFile>>
List device files under this device.
sourcepub fn core_status(&self) -> SmiResult<BTreeMap<u32, CoreStatus>>
pub fn core_status(&self) -> SmiResult<BTreeMap<u32, CoreStatus>>
Examine each core of the device, whether it is available or not.
sourcepub fn device_error_info(&self) -> SmiResult<DeviceErrorInfo>
pub fn device_error_info(&self) -> SmiResult<DeviceErrorInfo>
Returns error states of the device.
sourcepub fn core_utilization(&self) -> SmiResult<CoreUtilization>
pub fn core_utilization(&self) -> SmiResult<CoreUtilization>
Returns a core utilization of the device.
sourcepub fn memory_utilization(&self) -> SmiResult<MemoryUtilization>
pub fn memory_utilization(&self) -> SmiResult<MemoryUtilization>
Returns a memory utilization of the device.
sourcepub fn device_performance_counter(&self) -> SmiResult<DevicePerformanceCounter>
pub fn device_performance_counter(&self) -> SmiResult<DevicePerformanceCounter>
Returns a performance counter of the device.
sourcepub fn power_consumption(&self) -> SmiResult<f64>
pub fn power_consumption(&self) -> SmiResult<f64>
Returns a power consumption of the device.
sourcepub fn device_temperature(&self) -> SmiResult<DeviceTemperature>
pub fn device_temperature(&self) -> SmiResult<DeviceTemperature>
Returns a temperature of the device.
sourcepub fn device_to_device_link_type(&self, target: &Device) -> SmiResult<LinkType>
pub fn device_to_device_link_type(&self, target: &Device) -> SmiResult<LinkType>
Returns a device link type between two devices.
sourcepub fn p2p_accessible(&self, target: &Device) -> SmiResult<bool>
pub fn p2p_accessible(&self, target: &Device) -> SmiResult<bool>
Returns a P2P accessibility between two devices.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)