Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add cleanup_cached_communicators method #931

Merged
merged 5 commits into from
Feb 5, 2025
Merged

Conversation

kab163
Copy link
Contributor

@kab163 kab163 commented Feb 3, 2025

Adding function to cleanup cached communicators to avoid memory leak.
If users call umpire::get_communicator_for_allocator(...) then it currently causes a memory leak. The addition of this umpire::cleanup_cached_communicators() frees that memory to avoid memory leaks.

Thanks to Burl Hall for catching this bug!

@kab163 kab163 changed the title Adding function to cleanup cached communicators to avoid memory leak Add cleanup_cached_communicators method Feb 3, 2025
github-actions and others added 2 commits February 3, 2025 23:05
@kab163
Copy link
Contributor Author

kab163 commented Feb 4, 2025

@kab163 kab163 merged commit 5bdcd0f into develop Feb 5, 2025
18 checks passed
@kab163 kab163 deleted the bugfix/kab163/fix-mpi-leak branch February 5, 2025 23:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants