Эх сурвалжийг харах

Check python version for Navi 1 only

DGdev91 2 жил өмнө
parent
commit
95d4d650d4
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      webui.sh

+ 1 - 1
webui.sh

@@ -112,10 +112,10 @@ then
 fi
 fi
 
 
 # Check prerequisites
 # Check prerequisites
-pyv="$(${python_cmd} -c 'import sys; print(".".join(map(str, sys.version_info[0:2])))')"
 gpu_info=$(lspci 2>/dev/null | grep -E "VGA|Display")
 gpu_info=$(lspci 2>/dev/null | grep -E "VGA|Display")
 case "$gpu_info" in
 case "$gpu_info" in
     *"Navi 1"*) 
     *"Navi 1"*) 
+        pyv="$(${python_cmd} -c 'import sys; print(".".join(map(str, sys.version_info[0:2])))')"
         if [[ $(bc <<< "$pyv <= 3.10") -eq 1 ]] 
         if [[ $(bc <<< "$pyv <= 3.10") -eq 1 ]] 
         then
         then
             export HSA_OVERRIDE_GFX_VERSION=10.3.0
             export HSA_OVERRIDE_GFX_VERSION=10.3.0