Skip to content
Snippets Groups Projects
Commit 1521f64a authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Improve slightly memory output for clarity in parallel

parent a47fcfb9
No related branches found
No related tags found
1 merge request!175Print execution statistics at the end of execution
......@@ -54,6 +54,7 @@ ExecutionStatManager::_printMaxResidentMemory() const
std::cout << "Memory: " << rang::style::bold << Memory{parallel::allReduceSum(memory.value())}.prettyPrint()
<< rang::style::reset;
if (parallel::size() > 1) {
std::cout << " (over " << parallel::size() << " processes)";
std::cout << " Avg: " << rang::style::bold
<< Memory{parallel::allReduceSum(memory.value()) / parallel::size()}.prettyPrint() << rang::style::reset;
std::cout << " Min: " << rang::style::bold << Memory{parallel::allReduceMin(memory.value())}.prettyPrint()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment