Skip to content

[WIP] Adding support to collect memory usage from boxes to load balancing#6166

Open
jessdagostini wants to merge 5 commits intoBLAST-WarpX:developmentfrom
jessdagostini:memory-lb
Open

[WIP] Adding support to collect memory usage from boxes to load balancing#6166
jessdagostini wants to merge 5 commits intoBLAST-WarpX:developmentfrom
jessdagostini:memory-lb

Conversation

@jessdagostini
Copy link
Copy Markdown

This PR aims to add support for collecting memory usage of each box (considering MultiFabs and Particles) in the simulation. The goal is to use this information for the load balancing algorithms.

EZoni pushed a commit that referenced this pull request Sep 17, 2025
@ax3l ax3l self-assigned this Sep 19, 2025
@ax3l ax3l requested review from atmyers and ax3l September 19, 2025 17:19
@ax3l ax3l added component: diagnostics all types of outputs component: load balancing Load balancing strategies, optimization etc. and removed component: diagnostics all types of outputs labels Sep 20, 2025
) const
{
for (auto & element : m_mf_register ) {
const MultiFabOwner & mf_owner = element.second;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could check if mf_owner.is_alias() is true. In case it is an alias, skip the field in this calculation to avoid double counting.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed on a11263f!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: diagnostics all types of outputs component: load balancing Load balancing strategies, optimization etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants