Files
2020-01-13 15:18:00 +08:00

10 lines
313 B
Bash

#!/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
echo "runtime calculated and exported OMP_NUM_THREADS=${OMP_NUM_THREADS}"
fi
python3 main.py