BLAS : Program is Terminated. Because you tried to allocate too many memory regions.
See original GitHub issueWhen training K-nearest-neighbors (KNN) models, sometimes a rare error can occur that crashes the entire process:
BLAS : Program is Terminated. Because you tried to allocate too many memory regions.
Segmentation fault: 11
It has so far only occurred on machines with >300 GB of memory (2 confirmed instances). In both cases, the system was not low on memory and had plenty to complete the task, yet the error still occurred.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
BLAS : Program is Terminated. Because you tried to allocate ...
When training K-nearest-neighbors (KNN) models, sometimes a rare error can occur that crashes the entire process: BLAS : Program is ...
Read more >BLAS : Program is Terminated. Because you ... - Google Groups
Because you tried to allocate too many memory regions. ... I solved this problem as this post Training a Classifier Problem: BLAS :...
Read more >BLAS : Program is Terminated. Because you tried to ... - GitLab
0%BLAS : Program is Terminated. Because you tried to allocate too many memory regions. however the node has 256 GB of memory and...
Read more >"Too many memory regions" error with Dask - Stack Overflow
Short Answer. Dask and OpenBLAS are both trying to parallelize at the same time. This triggers a check in OpenBLAS which causes a...
Read more >BLAS - Program is Terminated. Because you tried to allocate ...
BLAS : Program is Terminated. Because you tried to allocate too many memory regions ... I tried different covariance_type, but nothing worked. How...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This worked for me. “BLAS stands for Basic Linear Algebra Subprograms. BLAS provides standard interfaces for linear algebra, including BLAS1 (vector-vector operations), BLAS2 (matrix-vector operations), and BLAS3 (matrix-matrix operations). As per the documentation, if your application is already multi-threaded, it will conflict with OpenBLAS multi-threading. Therefore, you must set OpenBLAS to use a single thread. So, it seems that your application is conflicting with OpenBLAS multi-threading. You need to run the followings on the command line and it should fix the error:”
https://www.discoverbits.in/2509/program-terminated-because-tried-allocate-memory-regions
Thanks for the info!
To understand how to specify custom hyperparameters, refer to the
hyperparameters
argument documentation: https://auto.gluon.ai/stable/_modules/autogluon/tabular/predictor/predictor.html#TabularPredictor.fitThe default hyperparameters are:
You would want to edit
KNN
(example to enforce using only 16 cores):Another option is to disable KNN entirely: