Spaces:
Runtime error
Runtime error
Commit
·
f0c2c24
1
Parent(s):
9edb8b6
Update GPU detection method in check_gpu.sh
Browse files- check_gpu.sh +1 -1
check_gpu.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
if
|
| 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
|