Files
dockerfiles/numpy-mp/docker-entrypoint.sh
2020-01-13 15:02:40 +08:00

9 lines
231 B
Bash
Executable File

#!/bin/sh
if [ -n "$OMP_NUM_THREADS" ]; then
echo "Warning: Manual set of \"OMP_NUM_THREADS=$OMP_NUM_THREADS\" may be not better than the calculated value by script!"
else
source /usr/local/bin/set-num-threads.sh
fi
exec "$@"