27.12.2014 Views

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4–Running <strong>QLogic</strong> MPI on <strong>QLogic</strong> Adapters<br />

<strong>QLogic</strong> MPI Details<br />

Use Wrapper Scripts for Compiling and Linking<br />

The scripts in Table 4-1 invoke the compiler and linker for programs in each of the<br />

respective languages, and take care of referring to the correct include files and<br />

libraries in each case.<br />

Table 4-1. <strong>QLogic</strong> MPI Wrapper Scripts<br />

Wrapper Script Name<br />

Language<br />

mpicc<br />

mpicxx<br />

C<br />

C++<br />

mpif77 Fortran 77<br />

mpif90 Fortran 90<br />

mpif95 Fortran 95<br />

On x86_64, these scripts (by default) call the GNU compiler and linker. To use<br />

other compilers, see “To Use Another Compiler” on page 4-9.<br />

These scripts all provide the command line options listed in Table 4-2.<br />

Table 4-2. Command Line Options for Scripts<br />

Command<br />

Meaning<br />

-help<br />

-show<br />

-echo<br />

-compile_info<br />

-link_info<br />

Provides help<br />

Lists each of the compiling and linking commands that would be<br />

called without actually calling them<br />

Gets verbose output of all the commands in the script<br />

Shows how to compile a program<br />

Shows how to link a program<br />

In addition, each of these scripts allow a command line option for specifying a<br />

different compiler/linker as an alternative to the GNU Compiler Collection (GCC).<br />

For more information, see “To Use Another Compiler” on page 4-9.<br />

Most other command line options are passed on to the invoked compiler and<br />

linker. The GNU compiler and alternative compilers all accept numerous<br />

command line options. See the GCC compiler documentation and the man pages<br />

for gcc and gfortran for complete information on available options. See the<br />

corresponding documentation for any other compiler/linker you may call for its<br />

options. Man pages for mpif90(1), mpif77(1), mpicc(1), and mpiCC(1) are<br />

available.<br />

D000046-005 B 4-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!