Skip to main content

Module gpu_detect

Module gpu_detect 

Source
Expand description

GPU detection for the setup wizard.

Probes the host for NVIDIA (nvidia-smi) and AMD (rocminfo) GPUs, maps driver versions to CUDA/ROCm compatibility, and detects the current run mode (AppImage, bare binary, development).

Functionsยง

detect_active_version
Read the active version string from the data directory.
detect_environment
Build full environment info snapshot.
detect_gpu
Detect GPU hardware on the host.
detect_installed_variant
Check if a backend variant is already installed in the data directory.
detect_run_mode
Detect how hyprstream is currently running.
recommend_variant
Map GPU kind to recommended variant.
variant_from_id
Map a variant ID string to a LibtorchVariant.