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

Using int32 to reduce memory usage in large problems #1118

Open
kinnala opened this issue Apr 11, 2024 · 0 comments
Open

Using int32 to reduce memory usage in large problems #1118

kinnala opened this issue Apr 11, 2024 · 0 comments

Comments

@kinnala
Copy link
Owner

kinnala commented Apr 11, 2024

We have recently computed some test problems with close to 100 million degrees-of-freedom using scikit-fem (https://arxiv.org/abs/2404.06260), in fact, the largest case was only 85 million DOFs because we ran frequently into some out-of-memory issues on our laptops (we were using a laptop with 16 GB or 32 GB memory + cloud for MOR); these were quite often due to some index arrays in Mesh and Dofs and Basis becoming huge.

This got me thinking whether using int32 everywhere within the library would alleviate this issue. While we have pretty much used int64 everywhere, it doesn't seem to be necessary for the scale of problems that are targeted by this library. Here is a related discussion on MFEM which targets much larger problems and they are still using int32: mfem/mfem#1515

So I am thinking about introducing a configuration variable which allows changing the type of the index arrays everywhere within the library, to test the differences and potentially switch from one type to another more easily.

Any comments welcome.

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