13.1. Compiler Options

Up: Contents Next: Profiling Previous: Hints for Performance Tuning

Code compiled with the BOPT=O option generally runs two to three times faster than that compiled with BOPT=g, so we recommend using one of the optimized versions of code ( BOPT=O, BOPT=O_c++, or BOPT=O_complex) when evaluating performance.

The user can specify alternative compiler options instead of the defaults set in the PETSc distribution. One can set the compiler options for a particular architecture ( PETSC_ARCH) and BOPT by editing the file ${}PETSC_DIR/bmake/${}PETSC_ARCH/base.${}BOPT. Section Customized Makefiles gives details.


Up: Contents Next: Profiling Previous: Hints for Performance Tuning