Compilers

From Tycho
Jump to navigation Jump to search

We recommend using the Intel ifort, icc, and icpc (fortran, C, C++) compilers for production, because of their superior speed optimization. Compiling for MPI is done with mpiifort, mpiicc, mpiicpc (note the double ii), which are wrapper scripts around the compilers that link in the correct MPI libraries.

However, using gfortran for development and testing can be a very good idea, especially if / when problems arise, and are difficult to locate. Compiling the same code with different compilers gives a better chance to discover problems, or to exclude a compiler bug as the reason for a problem under investigation. Gfortran's MPI wrapper is called mpif90 or mpifort (note the single i!).