Product specifications

Table Of Contents
5–Using QLogic MPI
QLogic MPI Details
IB6054601-00 H 5-9
A
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.
For Fortran 90 programs:
$ mpif90 -f90=pgf90 -show pi3f90.f90 -o pi3f90
pgf90 -I/usr/include/mpich/pgi5/x86_64 -c -I/usr/include
pi3f90.f90 -c
pgf90 pi3f90.o -o pi3f90 -lmpichf90 -lmpich -lmpichabiglue_pgi5
Fortran 95 programs will be similar to the above.
For C programs:
$ mpicc -cc=pgcc -show cpi.c
pgcc -c cpi.c
pgcc cpi.o -lmpich -lpgftnrtl -lmpichabiglue_pgi5
Fortran 77 mpif77 -fc=pgf77 .....
Fortran 90/95 mpif90 -f90=pgf90 .....
mpif95 -f95=pgf95 .....
Table 5-5. 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 5-4. Portland Group (PGI) (Continued)
Compiler Command