diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-27 16:55:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-27 16:55:02 +0000 |
commit | ba812b449534be49527b88e653a88ac1a1703d0e (patch) | |
tree | cc3d0ccbc9282661b119e759d6626baffe3796de /webui.sh | |
parent | 0666f7c597a5b4b701c91ae4ef41ffe86035fa8b (diff) | |
parent | d29fe44e467c6ecc435f561a776ead8f5116f077 (diff) | |
download | stable-diffusion-webui-gfx803-ba812b449534be49527b88e653a88ac1a1703d0e.tar.gz stable-diffusion-webui-gfx803-ba812b449534be49527b88e653a88ac1a1703d0e.tar.bz2 stable-diffusion-webui-gfx803-ba812b449534be49527b88e653a88ac1a1703d0e.zip |
Merge pull request #10718 from kernelmethod/libtcmalloc_fixes
Small fixes to prepare_tcmalloc for Debian/Ubuntu compatibility
Diffstat (limited to 'webui.sh')
-rwxr-xr-x | webui.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -190,7 +190,7 @@ fi # Try using TCMalloc on Linux prepare_tcmalloc() { if [[ "${OSTYPE}" == "linux"* ]] && [[ -z "${NO_TCMALLOC}" ]] && [[ -z "${LD_PRELOAD}" ]]; then - TCMALLOC="$(ldconfig -p | grep -Po "libtcmalloc.so.\d" | head -n 1)" + TCMALLOC="$(PATH=/usr/sbin:$PATH ldconfig -p | grep -Po "libtcmalloc(_minimal|)\.so\.\d" | head -n 1)" if [[ ! -z "${TCMALLOC}" ]]; then echo "Using TCMalloc: ${TCMALLOC}" export LD_PRELOAD="${TCMALLOC}" |