Skip to content
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

BLAS : Program is Terminated. Because you tried to allocate too many memory regions #1069

Open
yyz845935161 opened this issue Dec 21, 2023 · 6 comments

Comments

@yyz845935161
Copy link

Describe the bug
image
BLAS : Program is Terminated. Because you tried to allocate too many memory regions

Desktop (please complete the following information):

  • OS: usage of OpenFace with Docker
@pablotanner
Copy link

@yyz845935161 Were you able to fix this?

@kendrew06
Copy link

kendrew06 commented Apr 9, 2024 via email

@brmarkus
Copy link

brmarkus commented Apr 9, 2024

@yyz845935161 @pablotanner can you confirm you are operating in a server environment, using one (or many CPUs) with a high number of CPU cores?

Can you try the following ideas in from these issues:

Can you try to reduce the number of threads with the environment variable export OMP_NUM_THREADS=1; if that helps, start to increase the number of threads.

@pablotanner
Copy link

@brmarkus Thanks for the reply! I found a similar issue where export OPENBLAS_NUM_THREADS=10 was suggested (guessing it's the same as your solution), which ended up working fine 😄

But yes, I was working on a Podman container which was running on a server with 512 CPU cores.

@brmarkus
Copy link

brmarkus commented Apr 9, 2024

Have you found a sweet-spot for the number of threads, to make as many as possible CPU cores available under the "too many memory regions" constrain?

@pablotanner
Copy link

@brmarkus I think it depends on what you're trying to run, I was doing feature extraction which was working fine with 10 threads,
but after adding some parameters in the CLI I was forced to increase it to 12 threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants