User guide
4–Running MPI on QLogic Adapters
Open MPI
4-6 IB0054606-02 A
The easiest way to use other compilers with any MPI that comes with QLogic
OFED+ is to use mpi-selector to change the selected MPI/compiler
combination, see “Managing MVAPICH, and MVAPICH2 with the mpi-selector
Utility” on page 5-5.
These compilers can be invoked on the command line by passing options to the
wrapper scripts. Command line options override environment variables, if set.
Tables 4-3 and 4-4 show the options for each of the compilers.
In each case,
..... stands for the remaining options to the mpicxx script, the
options to the compiler in question, and the names of the files that it operates.
Also, use mpif77,
mpif90, or mpif95 for linking; otherwise, .true. may have
the wrong value.
If you are not using the provided scripts for linking, link a sample program using
the -show option as a test (without the actual build) to see what libraries to add to
your link line. Some examples of the using the PGI compilers follow.
Table 4-3. Intel
Compiler Command
C $ mpicc -cc=icc .....
C++ $ mpicc -CC=icpc
Fortran 77 $ mpif77 -fc=ifort .....
Fortran 90/95 $ mpif90 -f90=ifort .....
$ mpif95 -f95=ifort .....
Table 4-4. Portland Group (PGI)
Compiler Command
C mpicc -cc=pgcc .....
C++ mpicc -CC=pgCC
Fortran 77 mpif77 -fc=pgf77 .....
Fortran 90/95 mpif90 -f90=pgf90 .....
mpif95 -f95=pgf95 .....