-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
BLAS : program is terminated. because you tried to allocate too many memory regions. #689
Comments
os.environ['OPENBLAS_NUM_THREADS'] = '1' print('before threadpool_limits:') threadpool_limits(limits=1, user_api='blas') The following are The stdout: before threadpool_limits: |
Going The threadpoolctl library looks neat! thanks for sharing. However, implicit uses openmp for multithreading - and going |
I've switched over to using threadpoolctl (instead of relying on the environment variables in #692) to detect threadpool usage in blas. let me know if you're still having any problems here, |
I try to set
os.environ['OPENBLAS_NUM_THREADS'] = '1'
os.environ['GOTO_NUM_THREADS'] = '1'
os.environ['OMP_NUM_THREADS'] = '1'
but, the error info still occur
then This is how I fix the error:
from threadpoolctl import threadpool_info
from threadpoolctl import threadpool_limits
pprint(threadpool_info())
threadpool_limits(limits=1, user_api='blas')
threadpool_limits(limits=1, user_api='openmp')
The text was updated successfully, but these errors were encountered: