pub struct DeviceStatus {
pub ordinal: i32,
pub name: String,
pub total_memory: usize,
pub active_tasks: u32,
pub compute_capability: (u32, u32),
pub sm_count: u32,
pub is_available: bool,
}Expand description
Snapshot of a device’s current status within the pool.
Fields§
§ordinal: i32Device ordinal (0-based).
name: StringHuman-readable device name.
total_memory: usizeTotal device memory in bytes.
active_tasks: u32Number of tasks currently active on this device.
compute_capability: (u32, u32)Compute capability as (major, minor).
sm_count: u32Number of streaming multiprocessors.
is_available: boolWhether the device is available for new work.
Trait Implementations§
Source§impl Clone for DeviceStatus
impl Clone for DeviceStatus
Source§fn clone(&self) -> DeviceStatus
fn clone(&self) -> DeviceStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceStatus
impl RefUnwindSafe for DeviceStatus
impl Send for DeviceStatus
impl Sync for DeviceStatus
impl Unpin for DeviceStatus
impl UnsafeUnpin for DeviceStatus
impl UnwindSafe for DeviceStatus
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