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

numpy.core._exceptions._ArrayMemoryError: Unable to allocate 2.86 TiB for an array with shape (886662, 886662) and data type float32 #165

Open
lfdelzam opened this issue Jun 10, 2024 · 0 comments

Comments

@lfdelzam
Copy link

Hi, thanks for a great binning program. I have been using semibin2 successfully until yesterday. It crashed (HPC, 1TB RAM), printing out the following message:

INFO Start binning.
Traceback (most recent call last):
File "miniconda3/envs/semibin2_env/bin/SemiBin2", line 10, in
sys.exit(main2())
^^^^^^^
File "miniconda3/envs/semibin2_env/lib/python3.12/site-packages/SemiBin/main.py", line 1481, in main2
single_easy_binning(
File "miniconda3/envs/semibin2_env/lib/python3.12/site-packages/SemiBin/main.py", line 1192, in single_easy_binning
binning(**binning_kwargs)
File "miniconda3/envs/semibin2_env/lib/python3.12/site-packages/SemiBin/main.py", line 1100, in binning
cluster(
File "miniconda3/envs/semibin2_env/lib/python3.12/site-packages/SemiBin/cluster.py", line 280, in cluster
embedding, contig_labels = run_embed_infomap(logger, model, data,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "miniconda3/envs/semibin2_env/lib/python3.12/site-packages/SemiBin/cluster.py", line 155, in run_embed_infomap
kl = cal_kl(depth[:,2k], depth[:, 2k + 1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "miniconda3/envs/semibin2_env/lib/python3.12/site-packages/SemiBin/cluster.py", line 54, in cal_kl
res = ne.evaluate(
^^^^^^^^^^^^
File "miniconda3/envs/semibin2_env/lib/python3.12/site-packages/numexpr/necompiler.py", line 975, in evaluate
return re_evaluate(local_dict=local_dict, global_dict=global_dict, _frame_depth=_frame_depth)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "miniconda3/envs/semibin2_env/lib/python3.12/site-packages/numexpr/necompiler.py", line 1007, in re_evaluate
return compiled_ex(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 2.86 TiB for an array with shape (886662, 886662) and data type float32

Any tip about how to solve it?
Thanks in advance.

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

1 participant