Skip to content

Commit

Permalink
fix: detect additional NVIDIA GPUs
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
  • Loading branch information
kyteinsky committed Aug 26, 2024
1 parent 2251faa commit 9f4f329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwdetect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ -z "$accel" ]; then
echo "Detecting hardware..."

lspci_out=$(lspci)
if echo "$lspci_out" | grep -q "VGA.*NVIDIA"; then
if echo "$lspci_out" | grep -q -E "(VGA|3D).*NVIDIA"; then
accel="cuda"
else
accel="cpu"
Expand Down

0 comments on commit 9f4f329

Please sign in to comment.