Check numactl before using ipexrun

This commit is contained in:
Disty0
2023-05-26 23:12:00 +03:00
parent e04867997e
commit 46d7d2f01b
+1 -1
View File
@@ -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 "$@"