PetscLogFlops#

Log how many flops are performed in a calculation

Synopsis#

Input Parameter#

  • flops - the number of flops

Note#

To limit the chance of integer overflow when multiplying by a constant, represent the constant as a double, not an integer. Use PetscLogFlops(4.0n) not PetscLogFlops(4n)

See Also#

Profiling, PetscLogView(), PetscLogGpuFlops()

Level#

intermediate

Location#

include/petsclog.h


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages