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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5–Using Other MPIs<br />

Intel MPI<br />

When using csh for launching MPI jobs, run the following command:<br />

$ source /bin64/mpivars.csh<br />

Substitute bin if using 32-bit.<br />

Compiling Intel MPI Applications<br />

As with <strong>QLogic</strong> MPI, <strong>QLogic</strong> recommended that you use the included wrapper<br />

scripts that invoke the underlying compiler. The default underlying compiler is<br />

GCC, including gfortran. Note that there are more compiler drivers (wrapper<br />

scripts) with Intel MPI than are listed here (see Table 5-6); check the Intel<br />

documentation for more information.<br />

Table 5-6. Intel MPI Wrapper Scripts<br />

Wrapper Script Name<br />

Language<br />

mpicc<br />

mpiCC<br />

C<br />

C++<br />

mpif77 Fortran 77<br />

mpif90 Fortran 90<br />

mpiicc<br />

mpiicpc<br />

mpiifort<br />

C (uses Intel C compiler)<br />

C++ (uses Intel C++ compiler)<br />

Fortran 77/90 (uses Intel Fortran compiler)<br />

To compile your program in C using the default compiler, type:<br />

$ mpicc mpi_app_name.c -o mpi_app_name<br />

To use the Intel compiler wrappers (mpiicc, mpiicpc, mpiifort), the Intel<br />

compilers must be installed and resolvable from the user’s environment.<br />

Running Intel MPI Applications<br />

Here is an example of a simple mpirun command running with four processes:<br />

$ mpirun -np 4 -f mpihosts mpi_app_name<br />

For more information, follow the Intel MPI instructions for usage of mpirun,<br />

mpdboot, and mpiexec (mpirun is a wrapper script that invoked both mpdboot<br />

and mpiexec). Remember to use -r ssh with mpdboot if you use ssh.<br />

Pass the following option to mpirun to select TMI:<br />

-genv I_MPI_FABRICS tmi<br />

Pass the following option to mpirun to select uDAPL:<br />

D000046-005 B 5-13

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

Saved successfully!

Ooh no, something went wrong!