mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Check python version for Navi 1 only
This commit is contained in:
parent
e0d923bdf8
commit
95d4d650d4
2
webui.sh
2
webui.sh
@ -112,10 +112,10 @@ then
|
||||
fi
|
||||
|
||||
# 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")
|
||||
case "$gpu_info" in
|
||||
*"Navi 1"*)
|
||||
pyv="$(${python_cmd} -c 'import sys; print(".".join(map(str, sys.version_info[0:2])))')"
|
||||
if [[ $(bc <<< "$pyv <= 3.10") -eq 1 ]]
|
||||
then
|
||||
export HSA_OVERRIDE_GFX_VERSION=10.3.0
|
||||
|
Loading…
Reference in New Issue
Block a user