Log GPU detection

Log GPU detection
pull/1141/head
Sebastien 2022-02-08 11:33:46 +01:00 zatwierdzone przez GitHub
rodzic 4f11cc6087
commit 31ea5ed680
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -173,18 +173,21 @@ detect_gpus(){
if [ "${platform}" = "Linux" ]; then
set +e
if lspci | grep 'NVIDIA'; then
echo "GPU_NVIDIA has been found"
export GPU_NVIDIA=true
set -e
return
fi
if lspci | grep "VGA.*NVIDIA"; then
echo "GPU_NVIDIA has been found"
export GPU_NVIDIA=true
set -e
return
fi
if lspci | grep "VGA.*Intel"; then
echo "GPU_INTEL has been found"
export GPU_INTEL=true
set -e
return
@ -192,6 +195,7 @@ detect_gpus(){
# Total guess. Need to look into AMD.
if lspci | grep "VGA.*AMD"; then
echo "GPU_AMD has been found"
export GPU_AMD=true
set -e
return