Skip to content

Commit

Permalink
IPEX add DISABLE_VENV_LIBS env variable and use TCMalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Disty0 committed Jan 9, 2024
1 parent 74d0b52 commit 4cf587e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4cf587e

Please sign in to comment.