-
Notifications
You must be signed in to change notification settings - Fork 39
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
Activate report grid memory consumption #1020
base: dev
Are you sure you want to change the base?
Conversation
We have this function, why not use it?
Suggestion from Markus: implement a similar memory report functionality for fsgrid. Not today. |
Example output:
So let's discuss if we want more info (value and rank of local vs. remote cells' min and max capacity?), and in what format/ordering. And also, this should list explicitly that we're talking of the spatial cells here, especially if/when we extend this to also report fsgrid memory usage. |
…w places in grid.cpp.
@@ -753,13 +753,26 @@ void shrink_to_fit_grid_data(dccrg::Dccrg<SpatialCell,dccrg::Cartesian_Geometry> | |||
} | |||
} | |||
|
|||
std::vector<CellID> get_all_remote_cells_on_process_boundary(dccrg::Dccrg<SpatialCell,dccrg::Cartesian_Geometry>& mpiGrid) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as per DCCRG neighborhoods, this can go away
@@ -816,7 +831,7 @@ void report_grid_memory_consumption(dccrg::Dccrg<SpatialCell,dccrg::Cartesian_Ge | |||
*/ | |||
void deallocateRemoteCellBlocks(dccrg::Dccrg<SpatialCell,dccrg::Cartesian_Geometry>& mpiGrid) { | |||
const std::vector<uint64_t> incoming_cells | |||
= mpiGrid.get_remote_cells_on_process_boundary(VLASOV_SOLVER_NEIGHBORHOOD_ID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and by passing no neighborhood to mpiGrid.get_remote_cells_on_process_boundary()
it should return for the base neighborhood i.e. all
Just for laughs? How long has this not been used? Not like I just spent a number of weeks looking into memory consumption...........