55 #ifndef HACC_TIMINGSTATS_H
56 #define HACC_TIMINGSTATS_H
80 MPI_Comm_rank(comm, &myrank);
81 MPI_Comm_size(comm, &nranks);
83 MPI_Allreduce(&dt, &
max, 1, MPI_DOUBLE, MPI_MAX, comm);
84 MPI_Allreduce(&dt, &
min, 1, MPI_DOUBLE, MPI_MIN, comm);
85 MPI_Allreduce(&dt, &
sum, 1, MPI_DOUBLE, MPI_SUM, comm);
90 MPI_Allreduce(&dt, &var, 1, MPI_DOUBLE, MPI_SUM, comm);
95 printf(
"%s max %.3es avg %.3es min %.3es dev %.3es\n",
96 preamble,
max, avg,
min, stdev);
int MPI_Comm
Definition: AMReX_ccse-mpi.H:47
void printTimingStats(MPI_Comm comm, const char *preamble, double dt)
Definition: TimingStats.h:73
@ min
Definition: AMReX_ParallelReduce.H:18
@ max
Definition: AMReX_ParallelReduce.H:17
@ sum
Definition: AMReX_ParallelReduce.H:19
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE GpuComplex< T > sqrt(const GpuComplex< T > &a_z) noexcept
Return the square root of a complex number.
Definition: AMReX_GpuComplex.H:373
int verbosity()
Definition: verbosity.cpp:4