Skip to main content

Module gpu

Module gpu 

Source
Expand description

GPU detection and soft VRAM control — delegates probing to crate::host.

Re-exports§

pub use crate::host::GpuRecord as GpuDevice;

Enums§

GpuError

Functions§

detect_gpus
List GPUs. Order: NVIDIA, then AMD ROCm, then Apple Silicon.
primary_gpu_vram_mb
Best-effort total VRAM of the primary GPU (NVIDIA index 0, or ROCm).
soft_vram_check
Soft check: returns Ok(()) if available_mb >= required_mb, else an error message for the user.