Up: Contents
Next: Aggregation
Previous: Compiler Options
Users should not spend time optimizing a code until after having determined
where it spends the bulk of its time on realistically sized problems.
As discussed in detail in Chapter Profiling
, the PETSc
routines automatically log performance data if certain runtime options
are specified. We briefly highlight usage of these features below.
- Run the code with the option -log_summary to print a performance
summary for various phases of the code.
- Run the code with the option -log_mpe [logfilename], which creates a
logfile of events suitable for viewing with Upshot or Nupshot (part of
MPICH).
Up: Contents
Next: Aggregation
Previous: Compiler Options