PLogEventBarrierBegin

Logs the time in a barrier before an event.

Input Parameters

e -integer associated with the event obtained from PLogEventRegister()
o1,o2,o3,o4 -objects associated with the event, or 0
comm -communicator the barrier takes place over

Synopsis

void PLogEventBarrierBegin(int e,PetscObject o1,PetscObject o2,PetscObject o3,
PetscObject o4,MPI_Comm comm)

Usage

     PLogEventBarrierBegin(VEC_NormBarrier,0,0,0,0,comm);
       MPI_Allreduce()
     PLogEventBarrierEnd(VEC_NormBarrier,0,0,0,0,comm);

Notes

This is for logging the amount of time spent in a barrier for an event that requires synchronization.

Additional Notes

Synchronization events always come in pairs; for example, VEC_NormBarrier and VEC_NormComm = VEC_NormBarrier + 1

See Also

PLogEventRegister(), PLogEventEnd(), PLogFlops(), PLogEventBegin(),
PLogEventBarrierEnd()

Keywords

log, event, begin, barrier

Level:advanced
Location:src/sys/src/plog/plog.c
Logging Index
Table of Contents