-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Want fallback on thread creation failure #525
Comments
Thank for the suggestion. I will implement this feature. |
Any news on this feature? |
@groutr , I didn't implement it yet. |
I merged the patch, which raises a signal when pthread_create fails. Is it enough for this feature request? |
I'm afraid the patch is making situation worse. When raise(SIGINT) is called, a signal handler is called back. Since this is a BLAS library, it is often the case that it is Application authors therefore must make sure that they have installed Furthermore, if application authors are aware that they |
Revisiting this (and associated PR #668), wouldn't a better error behaviour be to
A caller could probably still query the number of threads actually created and raise a signal if desired, |
is there any workaround for the moment ? |
Depends on your use case, trivially you could build OpenBLAS single-threaded. |
It seems that openblas just dies when pthread_create fails. It should instead continue execution with the threads already created, or at least it should fall back on the single-thread mode. pthread_create often fails on a many-core machine if an application is launched in parallel.
The text was updated successfully, but these errors were encountered: