pub struct GpuInfo {
pub has_nvidia_gpu: bool,
pub cuda_version: Option<String>,
pub has_metal: bool,
}Expand description
GPU hardware detection result.
Fields§
§has_nvidia_gpu: boolNVIDIA GPU hardware detected (via nvidia-smi, lspci, etc.).
cuda_version: Option<String>CUDA toolkit installed and available.
has_metal: boolOn macOS (Metal always available).
Trait Implementations§
impl Eq for GpuInfo
impl StructuralPartialEq for GpuInfo
Auto Trait Implementations§
impl Freeze for GpuInfo
impl RefUnwindSafe for GpuInfo
impl Send for GpuInfo
impl Sync for GpuInfo
impl Unpin for GpuInfo
impl UnwindSafe for GpuInfo
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