PetscLogEventSetCollective#
Indicates that a particular event is collective.
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscLogEventSetCollective(PetscLogEvent event, PetscBool collective)
Not Collective
Input Parameters#
event - The event id
collective - Boolean flag indicating whether a particular event is collective
Notes#
New events returned from PetscLogEventRegister()
are collective by default.
Collective events are handled specially if the -log_sync is used. In that case the logging saves information about two parts of the event; the time for all the MPI ranks to synchronize and then the time for the actual computation/communication to be performed. This option is useful to debug imbalance within the computations or communications
See Also#
Profiling, PetscLogEventBegin()
, PetscLogEventEnd()
, PetscLogEventRegister()
Level#
developer
Location#
Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages