The choice of compiler will effect application performance, as will the optimization flags used during compilation. The ParaStation MPI environment has simplified the selection of compilers by dispensing with the normal MPI environment variables used in MPICH distributions.
It is important to link applications codes with MPI libraries and other ancillary libraries (such as MKL math libraries) compiled with the same compiler as that used for the main application. This ensures compatibility of shared objects and exposes the user to runtime libraries with the best set of optimization parameters for that particular compiler. ParaStation MPI achieves this requirement using wrapper scripts designed for use with each compiler.
The following wrapper scripts are available in ParaStation MPI releases:
Table 4.1. Compiler wrappers for building MPI codes
|Wrapper path||Compiler Type|
|FORTRAN 77 compiler|
|FORTRAN 90 compiler|
Table 4.2. MPI home directories for different compilers
| ||Compiler suite||commands|
|GNU Compiler||gcc, g++, gfortran|
|IntelŪ Compiler Suite||icc, icpc, ifort|
|PGI: Portland Group||pgcc, pgCC, pgf77, pgf90|
Users will generally compile their application code using make and select the appropriate wrapper script in a Makefile as follows:
# # Makefile # MPI_HOME="/opt/parastation/mpi2" code: code.c $(MPI_HOME)/bin/mpicc -o code code.c
Users who wish to compile applications on the command line should add the directory containing the wrapper script of the selected
compiler to their
PATH. Use of command which mpicc will verify the
PATH environment is correctly set (for the C compiler in this case).