qiskit-aer
qiskit-aer copied to clipboard
Disable BLAS if many threads run
Summary
Work around BLAS fails when many threads run.
Details and comments
OpenBLAS has issues when many threads attempt to allocate memory in BLAS.
https://github.com/xianyi/OpenBLAS/issues/1882
This PR disables use of BLAS when a number of threads are more than 50. (My 76-core machine fails when OMP_NUM_THREADS is more than 56).