StabilityMatrix
StabilityMatrix copied to clipboard
[Linux] Run lspci with sudo / add manual GPU type override
Proposal
As I understand, StabilityMatrix tries to run nvidia-smi and then defaults to lspci in order to detect GPU on Linux. The problem is that on some distributions lspci requires root permissions, so the only way to be fine with AMD GPU is to edit visudo like that:
username ALL=(ALL) NOPASSWD: /sbin/lspci
and create a lspci wrapper script somewhere into /usr/local/bin:
#!/bin/sh
exec sudo /sbin/lspci "$@"
Please consider adding manual GPU override ability (or at least post info about GPU detection process in README).