comm -communicator the barrier takes place over
Synopsis
void PLogEventBarrierBegin(int e,PetscObject o1,PetscObject o2,PetscObject o3,
PetscObject o4,MPI_Comm comm)
Notes
This is for logging the amount of time spent in a barrier for an
eventthat requires synchronization.
Example of Usage
PLogEventBarrierBegin(VEC_NormBarrier,0,0,0,0,comm);
MPI_Allreduce()
PLogEventBarrierEnd(VEC_NormBarrier,0,0,0,0,comm);
Additional Notes
Synchronization events always come in pairs; for example, VEC_NormBarrier
andVEC_NormComm = VEC_NormBarrier +
1
See Also
PLogEventRegister(), PLogEventEnd(), PLogFlops(), PLogEventBegin(),
PLogEventBarrierEnd()
Keywords
log, event, begin, barrier
Location: include/petsclog.h
Logging Index
Table of Contents