mirror of https://github.com/bmaltais/kohya_ss
IPEX add DISABLE_VENV_LIBS env variable and use TCMalloc
parent
74d0b523b1
commit
4cf587e26c
4
gui.sh
4
gui.sh
|
|
@ -72,7 +72,7 @@ fi
|
|||
#Set OneAPI if it's not set by the user
|
||||
if [[ "$@" == *"--use-ipex"* ]]
|
||||
then
|
||||
if [ -d "$SCRIPT_DIR/venv" ]; then
|
||||
if [ -d "$SCRIPT_DIR/venv" ] && [[ -z "${DISABLE_VENV_LIBS}" ]]; then
|
||||
export LD_LIBRARY_PATH=$(realpath "$SCRIPT_DIR/venv")/lib/:$LD_LIBRARY_PATH
|
||||
fi
|
||||
export NEOReadDebugKeys=1
|
||||
|
|
@ -82,7 +82,7 @@ then
|
|||
STARTUP_CMD=ipexrun
|
||||
if [[ -z "$STARTUP_CMD_ARGS" ]]
|
||||
then
|
||||
STARTUP_CMD_ARGS="--multi-task-manager taskset --memory-allocator jemalloc"
|
||||
STARTUP_CMD_ARGS="--multi-task-manager taskset --memory-allocator tcmalloc"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue