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.

5–Using Other MPIs<br />

Platform (Scali) MPI 5.6<br />

Table 5-5. Platform MPI Wrapper Scripts<br />

Wrapper Script Name<br />

Language<br />

mpicc<br />

mpic++<br />

C<br />

C++<br />

mpif77 Fortran 77<br />

mpif90 Fortran 90<br />

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

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

To invoke another compiler, in this case PathScale, use the -cc1 option, for<br />

example:<br />

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

Running Platform MPI 5.6 Applications<br />

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

over PSM:<br />

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

or if you have not set /opt/scali/etc/ScaMPI.conf to use PSM by default,<br />

use:<br />

$ mpirun -np 4 -machinefile mpihosts -networks=infinipath<br />

mpi_app_name<br />

Once installed, Platform MPI uses the PSM transport by default. To specify PSM<br />

explicitly, add -networks infinipath to the above command.<br />

To run Scali MPI over InfiniBand Verbs, type:<br />

$ mpirun -np 4 -machinefile mpihosts -networks ib,smp mpi_app_name<br />

This command indicates that ib is used for inter-node communications, and smp<br />

is used for intra-node communications.<br />

To run over TCP (or IPoIB), type:<br />

$ mpirun -np 4 -machinefile mpihosts -networks tcp,smp mpi_app_name<br />

Further Information on Platform MPI 5.6<br />

For more information on using Platform MPI 5.6, see:<br />

http://www.platform.com/cluster-computing/platform-mpi.<br />

5-10 D000046-005 B

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

Saved successfully!

Ooh no, something went wrong!