aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Cholaky <waltercool@slash.cl>2023-06-02 19:01:30 +0000
committerPablo Cholaky <waltercool@slash.cl>2023-06-02 19:04:58 +0000
commit8d970a4a97147891265fd4f8cccf5719d958b125 (patch)
tree92dffeb3dff2573e22ab2a612d6ca9685483bb19
parentb6af0a3809ea869fb180633f9affcae4b199ffcf (diff)
downloadstable-diffusion-webui-gfx803-8d970a4a97147891265fd4f8cccf5719d958b125.tar.gz
stable-diffusion-webui-gfx803-8d970a4a97147891265fd4f8cccf5719d958b125.tar.bz2
stable-diffusion-webui-gfx803-8d970a4a97147891265fd4f8cccf5719d958b125.zip
Added support for workarounds on external GPU.
lspci detects VGA for main/integrated videocards and Display for external videocards. This commit should apply workarounds on computers with more than one GPU. Useful for most laptops using weak iGPU and good dGPU. Signed-off-by: Pablo Cholaky <waltercool@slash.cl>
-rwxr-xr-xwebui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui.sh b/webui.sh
index ab52ac3b..3e7c3cf3 100755
--- a/webui.sh
+++ b/webui.sh
@@ -112,7 +112,7 @@ then
fi
# Check prerequisites
-gpu_info=$(lspci 2>/dev/null | grep VGA)
+gpu_info=$(lspci 2>/dev/null | grep -E "VGA|Display")
case "$gpu_info" in
*"Navi 1"*|*"Navi 2"*) export HSA_OVERRIDE_GFX_VERSION=10.3.0
;;