Product specifications

Table Of Contents
5–Using QLogic MPI
QLogic MPI Details
5-6 IB6054601-00 H
S
Use Wrapper Scripts for Compiling and Linking
The scripts in Table 5-1 invoke the compiler and linker for programs in each of the
respective languages, and take care of referring to the correct include files and
libraries in each case.
On x86_64, these scripts (by default) call the GNU compiler and linker. To use
other compilers, see “To Use Another Compiler” on page 5-8.
These scripts all provide the command line options listed in Tab le 5-2.
In addition, each of these scripts allow a command line option for specifying a
different compiler/linker as an alternative to the GNU Compiler Collection (GCC).
For more information, see “To Use Another Compiler” on page 5-8.
Most other command line options are passed on to the invoked compiler and
linker. The GNU compiler and alternative compilers all accept numerous
command line options. See the GCC compiler documentation and the man pages
for gcc and gfortran for complete information on available options. See the
corresponding documentation for any other compiler/linker you may call for its
options. Man pages for mpif90(1), mpif77(1), mpicc(1), and mpiCC(1) are
available.
Table 5-1. QLogic MPI Wrapper Scripts
Wrapper Script Name Language
mpicc C
mpicxx C++
mpif77 Fortran 77
mpif90 Fortran 90
mpif95
Fortran 95
Table 5-2. Command Line Options for Scripts
Command Meaning
-help Provides help
-show Lists each of the compiling and linking commands that would be
called without actually calling them
-echo Gets verbose output of all the commands in the script
-compile_info Shows how to compile a program
-link_info Shows how to link a program