Fix MPI code in paje trace

This commit is contained in:
Matthias Hochsteger 2024-05-16 09:18:07 +02:00
parent fece35b830
commit f2ea9cde4c

View File

@ -7,6 +7,7 @@
#include "archive.hpp" // for Demangle
#include "paje_trace.hpp"
#include "ng_mpi.hpp"
#include "profiler.hpp"
#include "mpi_wrapper.hpp"
@ -71,9 +72,12 @@ namespace ngcore
// sync start time when running in parallel
#ifdef PARALLEL
if(MPI_Loaded())
{
NgMPI_Comm comm(NG_MPI_COMM_WORLD);
for([[maybe_unused]] auto i : Range(5))
comm.Barrier();
}
#endif // PARALLEL
start_time = GetTimeCounter();