pub struct HardwareInfo {
pub tpu_devices: usize,
pub gpu_devices: usize,
pub jax_available: bool,
pub jax_version: Option<String>,
pub jax_device_count: Option<usize>,
}Expand description
Special hardware device information.
Detects TPU accelerators (/dev/accel*), NVIDIA GPUs (nvidia-smi),
and JAX availability (Python import check).
Fields§
§tpu_devices: usizeNumber of TPU accelerator devices detected.
gpu_devices: usizeNumber of NVIDIA GPU devices detected.
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.
Trait 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