davanstrien HF staff commited on
Commit
f0c2c24
1 Parent(s): 9edb8b6

Update GPU detection method in check_gpu.sh

Browse files
Files changed (1) hide show
  1. check_gpu.sh +1 -1
check_gpu.sh CHANGED
@@ -1,6 +1,6 @@
1
  #!/bin/bash
2
 
3
- if lspci | grep -i nvidia; then
4
  exit 0
5
  else
6
  exit 1
 
1
  #!/bin/bash
2
 
3
+ if command -v nvidia-smi &> /dev/null && nvidia-smi -L; then
4
  exit 0
5
  else
6
  exit 1