PetscGetFlops

Returns the number of flops used on this processor since the program began.

Synopsis

int PetscGetFlops(PLogDouble *flops)
Not Collective

Output Parameter

flops - number of floating point operations

Notes

A global counter logs all PETSc flop counts. The user can usePLogFlops() to increment this counter to include flops for theapplication code.

PETSc automatically logs library events if the code has beencompiled with -DUSE_PETSC_LOG (which is the default), and -log, -log_summary, or -log_all are specified. PLogFlops() isintended for logging user flops to supplement this PETScinformation.

Keywords

log, flops, floating point operations

See Also

PetscGetTime(), PLogFlops()

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