PLogFlops

Adds floating point operations to the global counter.

Input Parameter

f -flop counter

Synopsis

void PLogFlops(int f)

Usage

     int USER_EVENT;
     PLogEventRegister(&USER_EVENT,"User event","Color:");
     PLogEventBegin(USER_EVENT,0,0,0,0);
        [code segment to monitor]
        PLogFlops(user_flops)
     PLogEventEnd(USER_EVENT,0,0,0,0);

Notes

A global counter logs all PETSc flop counts. The user can use PLogFlops() to increment this counter to include flops for the application code.

PETSc automatically logs library events if the code has been compiled with -DPETSC_USE_LOG (which is the default), and -log, -log_summary, or -log_all are specified. PLogFlops() is intended for logging user flops to supplement this PETSc information.

See Also

PLogEventRegister(), PLogEventBegin(), PLogEventEnd(), PetscGetFlops()

Keywords

log, flops, floating point operations

Examples

src/mat/examples/tutorials/ex1.c
src/sles/examples/tutorials/ex10.c
src/sles/examples/tutorials/ex9.c
src/sys/examples/tutorials/ex3f.F
src/sys/examples/tutorials/ex3.c

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