-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"OpenBLAS : Program will terminate because you tried to start too many threads." even though OPENBLAS_NUM_THREADS=1 (version 0.3.2) #537
Comments
What OS are you using? Is this on Mac OSX? One option is to export an environment variable (https:/TadasBaltrusaitis/OpenFace/wiki/Mac-installation#openblas-performance) before calling OpenFace. I'm trying to find a way to set the number of threads used by OpenBLAS to 1 on all operating systems (this seems to work on Windows and Ubuntu, but still has issues on Macs) Thanks, |
Hi! No, this was on CentOS 7. I've since recompiled OpenBLAS without multi-threaded support, and now everything works. It still kind of a pitty, since On occasion I'd like to use the MT ability of OpenBLAS, so I'd still be interestd in a solution. |
Have you tried OpenBLAS 0.3.3, they seem to have fixed some threading issues, but not sure if they were exactly related to the ones you encountered. |
Hi!
I am using OpenBLAS as the underlying library for numpy and sklearn. In my program, I start a Python process which starts several Python Threads (= still 1 process), and each of them starts an instance of
sklearn.svc.LinearSVC
, (which uses OpenBLAS). The environment variableOPENBLAS_NUM_THREADS
is set to 1.Using Openblas 0.2.20, I got an error on one of our machines with
Program is Terminated. Because you tried to allocate too many memory regions.
. In #539 it was recommended to rebuild the library with a largerNUM_THREADS
setting to avoid this, so I did. I upgraded to 0.3.2 when doing this. My machine has 20 threads, so I usedNUM_THREADS=128
to be on the safe side. However, now I'm getting crashes with "OpenBLAS : Program will terminate because you tried to start too many threads.", when I try to start my python program using 10 threads. Please advise what I could do to fix this?The text was updated successfully, but these errors were encountered: