kopia lustrzana https://github.com/OpenDroneMap/WebODM
Fix indentation
rodzic
29ac754cc1
commit
a47a5de210
14
webodm.sh
14
webodm.sh
|
@ -186,13 +186,13 @@ detect_gpus(){
|
|||
return
|
||||
fi
|
||||
NVIDIA_DEVICE=$(nvidia-smi -L | grep "GPU 0:" | awk -F ': ' '{print $2}' | awk -F '(' '{print $1}')
|
||||
#IF the NVIDIA_DEVICE has the word NVIDIA in it, then enable NVIDIA
|
||||
if [[ $NVIDIA_DEVICE == *"NVIDIA"* ]]; then
|
||||
echo "GPU_NVIDIA has been found"
|
||||
export GPU_NVIDIA=true
|
||||
set -e
|
||||
return
|
||||
fi
|
||||
#IF the NVIDIA_DEVICE has the word NVIDIA in it, then enable NVIDIA
|
||||
if [[ $NVIDIA_DEVICE == *"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"
|
||||
|
|
Ładowanie…
Reference in New Issue