webodm.sh: add proper GPU non detection warning

This closes #1134
pull/1136/head
Romain Bazile 2022-02-01 22:11:30 +01:00
rodzic 70ebfc83b4
commit 27b90dfdd2
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -192,7 +192,13 @@ detect_gpus(){
# Total guess. Need to look into AMD.
if lspci | grep "VGA.*AMD"; then
export GPU_INTEL=true
export GPU_AMD=true
set -e
return
fi
if ! $GPU_NVIDIA && ! $GPU_INTEL && ! $GPU_AMD; then
echo "Warning: GPU use was requested, but no GPU has been found"
set -e
fi
else