numpy OpenBLAS set maximum number of threads
问题 I am using numpy and my model involves intensive matrix-matrix multiplication. To speed up, I use OpenBLAS multi-threaded library to parallelize the numpy.dot function. My setting is as follows, OS : CentOS 6.2 server #CPUs = 12, #MEM = 96GB python version: Python2.7.6 numpy : numpy 1.8.0 OpenBLAS + IntelMKL $ OMP_NUM_THREADS=8 python test_mul.py code, of which I took from https://gist.github.com/osdf/ test_mul.py : import numpy import sys import timeit try: import numpy.core._dotblas print