B OpenNebula/one#7369: Limit Blas to use a single thread if not set otherwise (#3971)

Signed-off-by: Mirko Stojiljkovic <mstojiljkovic@opennebula.io>
This commit is contained in:
Mirko Stojiljković authored and GitHub committed 2025-12-10 11:22:39 +01:00
1 parent 6d6caf74fb
commit 9252033332
1 file changed
+6
@@ -38,4 +38,10 @@ fi
HOST_ID=$(echo "${STDIN}" | xmllint --xpath 'string(//HOST_ID)' -)
ENTITYH="host,${HOST_ID},0,/var/tmp/one_db"
export OMP_NUM_THREADS=${OMP_NUM_THREADS:-1}
export OPENBLAS_NUM_THREADS=${OPENBLAS_NUM_THREADS:-1}
export MKL_NUM_THREADS=${MKL_NUM_THREADS:-1}
export BLIS_NUM_THREADS=${BLIS_NUM_THREADS:-1}
export NUMEXPR_NUM_THREADS=${NUMEXPR_NUM_THREADS:-1}
PYTHONPATH=$PYTHON_PATH $PYTHON $PYTHON_PATH/prediction.py --entity $ENTITYH --pythonpath $PYTHON_PATH