From 46d7d2f01bd7e565eb5c8f72e0733f9e9d5814f7 Mon Sep 17 00:00:00 2001 From: Disty0 Date: Fri, 26 May 2023 23:12:00 +0300 Subject: [PATCH] Check numactl before using ipexrun --- webui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.sh b/webui.sh index 2119e4890..d35908cca 100755 --- a/webui.sh +++ b/webui.sh @@ -91,7 +91,7 @@ if [[ ! -z "${ACCELERATE}" ]] && [ ${ACCELERATE}="True" ] && [ -x "$(command -v then echo "Accelerating launch.py..." exec accelerate launch --num_cpu_threads_per_process=6 launch.py "$@" -elif [[ -z "${first_launch}" ]] && [ -x "$(command -v ipexrun)" ] && [[ "$@" == *"--use-ipex"* ]] +elif [[ -z "${first_launch}" ]] && [ -x "$(command -v ipexrun)" ] && [ -x "$(command -v numactl)" ] && [[ "$@" == *"--use-ipex"* ]] then echo "Ipexrun'ning launch.py..." exec ipexrun launch.py "$@"