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

Encountering MemoryError with a distance matrix as an input, while a points cloud with the same size would work. #121

Open
gfizhu opened this issue May 6, 2021 · 0 comments

Comments

@gfizhu
Copy link

gfizhu commented May 6, 2021

Hi,
When I do calculations on a distance matrix (no points cloud available) with size 20k*20k using dgm_ripser = ripser(x, maxdim=1, distance_matrix=True)['dgms'], I encountered the error message "MemoryError: std::bad_alloc".
However, I used to feed a points cloud matrix with comparable size using dgm_ripser = ripser(x)['dgms'], and I could get a result only that I have to wait for a long time.
I'm a bit confused why a points cloud can work out, while a distance matrix with a similar size failed?
Could you help by providing any solutions?
By the way, the code is running on NVIDIA A100-PCIe-40G.
Thanks!

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