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 SPDisplaysDataTypeon 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_VideoControlleror PowerShell CIM query for GPU information.