You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OneDAL: When build with OpenBLAS with OpenMP backend and running DBScan, it throws memory related error as follows: OpenBLAS warning: precompiled NUM_THREADS exceeded, adding auxiliary array for thread metadata. To avoid this warning, please rebuild your copy of OpenBLAS with a larger NUM_THREADS setting or set the environment variable OPENBLAS_NUM_THREADS to 32 or lower BLAS : Bad memory unallocation! : 576 0xff4e09000000
OpenBLAS Build Command (OneDAL):make USE_OPENMP=1
Scikit-learn: When build with OpenBLAS with NUM_PARALLEL>=30 (I am trying to modify OpenBLAS and it requires to use NUM_PARALLEL=30) and using KMeans it throws similar memory related error as above
I suspect this is happening because of how locks are used around buffer allocation and de-allocation in memory.c. I am not able to find the exact cause and would love to have some help from the community in resolving it.
The text was updated successfully, but these errors were encountered:
I addressed something similar in #4233 (0.3.25), but ideally you would not end up in this situation at all, so this has seen limited testing (earlier versions of OpenBLAS would have simply given up there).
Does the message go away if you remove the && !defined(USE_OPENMP) from the various #ifdefs that govern locking in blas_memory_free() - around line 3150 of file driver/others/memory.c ? OpenMP on its own may not guarantee thread safety at that point (or not in all implementations), though it would be nice for performance if it did. (Having a reproducer that does not depend on something as big as Scikit-learn or OneDAL would probably help too)
OneDAL: When build with OpenBLAS with OpenMP backend and running DBScan, it throws memory related error as follows:
OpenBLAS warning: precompiled NUM_THREADS exceeded, adding auxiliary array for thread metadata. To avoid this warning, please rebuild your copy of OpenBLAS with a larger NUM_THREADS setting or set the environment variable OPENBLAS_NUM_THREADS to 32 or lower BLAS : Bad memory unallocation! : 576 0xff4e09000000
OpenBLAS Build Command (OneDAL):
make USE_OPENMP=1
Scikit-learn: When build with OpenBLAS with
NUM_PARALLEL>=30
(I am trying to modify OpenBLAS and it requires to use NUM_PARALLEL=30) and using KMeans it throws similar memory related error as aboveOpenBLAS Build Command (Scikit-learn):
make USE_OPENMP=1 NUM_PARALLEL=30
I suspect this is happening because of how locks are used around buffer allocation and de-allocation in memory.c. I am not able to find the exact cause and would love to have some help from the community in resolving it.
The text was updated successfully, but these errors were encountered: