mirror of
https://github.com/vladmandic/automatic
synced 2026-09-13 10:08:43 +02:00
Check numactl before using ipexrun
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user