fn count_nvidia_gpus_from_proc() -> Option<usize>Expand description
Counts NVIDIA GPU entries in /proc/driver/nvidia/gpus/.
Returns None when the directory does not exist, is unreadable, or
contains no entries (indicating no NVIDIA driver is loaded). Returns
Some(n) with n ≥ 1 when entries are found.