pub struct HardwareInfo {
pub accelerators: Vec<AcceleratorInfo>,
pub jax_available: bool,
pub jax_version: Option<String>,
pub jax_device_count: Option<usize>,
pub tpu_devices: usize,
pub gpu_devices: usize,
}Expand description
Special hardware device information.
Detects accelerators generically — GPUs (nvidia-smi, rocm-smi, /dev/dri), TPUs (/dev/accel*), and JAX availability. Reports what exists, not what was expected.
Fields§
§accelerators: Vec<AcceleratorInfo>Detected accelerator devices (any kind). Empty vec = no accelerators found.
jax_available: boolWhether the jax Python package is importable.
jax_version: Option<String>JAX version string (e.g. "0.4.25"), if available.
jax_device_count: Option<usize>Number of JAX-visible devices, if available.
tpu_devices: usize§gpu_devices: usizeTrait Implementations§
Source§impl Clone for HardwareInfo
impl Clone for HardwareInfo
Source§fn clone(&self) -> HardwareInfo
fn clone(&self) -> HardwareInfo
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 HardwareInfo
impl Debug for HardwareInfo
Source§impl<'de> Deserialize<'de> for HardwareInfo
impl<'de> Deserialize<'de> for HardwareInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HardwareInfo
impl RefUnwindSafe for HardwareInfo
impl Send for HardwareInfo
impl Sync for HardwareInfo
impl Unpin for HardwareInfo
impl UnsafeUnpin for HardwareInfo
impl UnwindSafe for HardwareInfo
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