mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 04:40:34 +05:00
Fix MPI code in paje trace
This commit is contained in:
parent
fece35b830
commit
f2ea9cde4c
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#include "archive.hpp" // for Demangle
|
#include "archive.hpp" // for Demangle
|
||||||
#include "paje_trace.hpp"
|
#include "paje_trace.hpp"
|
||||||
|
#include "ng_mpi.hpp"
|
||||||
#include "profiler.hpp"
|
#include "profiler.hpp"
|
||||||
#include "mpi_wrapper.hpp"
|
#include "mpi_wrapper.hpp"
|
||||||
|
|
||||||
@ -71,9 +72,12 @@ namespace ngcore
|
|||||||
|
|
||||||
// sync start time when running in parallel
|
// sync start time when running in parallel
|
||||||
#ifdef PARALLEL
|
#ifdef PARALLEL
|
||||||
|
if(MPI_Loaded())
|
||||||
|
{
|
||||||
NgMPI_Comm comm(NG_MPI_COMM_WORLD);
|
NgMPI_Comm comm(NG_MPI_COMM_WORLD);
|
||||||
for([[maybe_unused]] auto i : Range(5))
|
for([[maybe_unused]] auto i : Range(5))
|
||||||
comm.Barrier();
|
comm.Barrier();
|
||||||
|
}
|
||||||
#endif // PARALLEL
|
#endif // PARALLEL
|
||||||
|
|
||||||
start_time = GetTimeCounter();
|
start_time = GetTimeCounter();
|
||||||
|
Loading…
Reference in New Issue
Block a user