Skip to content
Snippets Groups Projects
Commit 499c98fb authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

fixed timingtree reduce for non mpi builds and single process runs

parent 5e60704d
No related merge requests found
...@@ -190,6 +190,7 @@ enum ReduceType ...@@ -190,6 +190,7 @@ enum ReduceType
template< typename TP > // Timing policy template< typename TP > // Timing policy
void reduceInplace( TimingNode<TP>& tn, ReduceType rt = REDUCE_TOTAL, int targetRank = 0 ) void reduceInplace( TimingNode<TP>& tn, ReduceType rt = REDUCE_TOTAL, int targetRank = 0 )
{ {
if (mpi::MPIManager::instance()->numProcesses() == 1) return;
if (tn.tree_.empty()) return; if (tn.tree_.empty()) return;
std::vector<double> min; std::vector<double> min;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment