By default, configure sets up mpich to be compiled without
optimization and with additional code to help in identifying problems and
behaviour of the mpich implementation. Once mpich passes
the tests (see Section Thorough Testing
), you may wish to rebuild
mpich without the debugging code. This will produce
significantly smaller libraries and slightly faster code. To do this,
add the options
-opt=-O -disable-devdebugto the configure line, and re-run configure and make. You may also include multiple optimization options by inclosing them in quotes:
-opt="-O -qarch=pwr2"Be very careful when using compiler optimization when compiling the ch_shmem, ch_lfshmem, or ch_p4 (when supportting shared memory) devices.