Skip to main content

Module gpu

Module gpu 

Source
Expand description

GPU detection and identification.

Handles parsing PCI IDs and querying the system for graphics card vendor and model information.

Structs§

GpuInfo
Information about a detected GPU.

Functions§

detect_gpus
Detects GPUs using system APIs or profiles.
improve_amd_gpu_name
Refines AMD GPU names by mapping codenames to marketing names.
lookup_pci_device
Helper to lookup PCI device name in standard system pci.ids files.
parse_system_profiler_displays
Parses the output of system_profiler SPDisplaysDataType on macOS.
parse_vram_str
Parses VRAM string (e.g. “8 GB”, “1536 MB”) into bytes.
parse_wmi_videocontroller
Parses the output of wmic path win32_VideoController or PowerShell CIM query for GPU information.