Memory profiling: how to get more details on total usage? #4467
-
When I enable AMReX-based profiling with
I'm assuming this is showing me usage on the first and last MPI rank? Is there a way to print this information for all ranks? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, it's not the first and last MPI rank. It's the ranks that use the least and most memory. If you want to print for all ranks, you can call |
Beta Was this translation helpful? Give feedback.
No, it's not the first and last MPI rank. It's the ranks that use the least and most memory. If you want to print for all ranks, you can call
amrex::Arena::PrintUsageToFiles (std::string const& filename, std::string const& message);
. Each process will have a file named$filename.$rank
that contains the memory information and optional message provided by the user.