Limit number of threads in numpy

Try setting all of the following:

export MKL_NUM_THREADS=1
export NUMEXPR_NUM_THREADS=1
export OMP_NUM_THREADS=1

Sometimes it’s a bit tricky to see where exactly multithreading is introduced.

Leave a Comment