pub struct GpuInfo {
pub has_nvidia_gpu: bool,
pub cuda_version: Option<String>,
pub has_metal: bool,
pub has_vulkan: bool,
pub vulkan_headers: bool,
pub vulkan_glslc: bool,
pub vulkan_spirv_headers: 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).
has_vulkan: boolVulkan runtime available (AMD, Intel, NVIDIA via Mesa/drivers).
vulkan_headers: boolVulkan development headers installed (vulkan/vulkan.h).
vulkan_glslc: boolSPIR-V shader compiler (glslc) available.
vulkan_spirv_headers: boolSPIR-V headers installed (spirv/unified1/spirv.hpp).
Required by llama.cpp’s ggml-vulkan.cpp at build time. Ships
as a separate package on Linux (e.g. spirv-headers) and is
bundled in the LunarG Vulkan SDK on Windows.
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