qiskit-aer icon indicating copy to clipboard operation
qiskit-aer copied to clipboard

Disable BLAS if many threads run

Open hhorii opened this issue 1 year ago • 0 comments

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).

hhorii avatar Jul 14 '22 12:07 hhorii