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 />

Compile and run it as follows:<br />

$ mpicxx -o hello hello++.cc<br />

$ mpirun -np 10 -m mpihosts ./hello<br />

Hello World! I am 9 of 10<br />

Hello World! I am 2 of 10<br />

Hello World! I am 4 of 10<br />

Hello World! I am 1 of 10<br />

Hello World! I am 7 of 10<br />

Hello World! I am 6 of 10<br />

Hello World! I am 3 of 10<br />

Hello World! I am 0 of 10<br />

Hello World! I am 5 of 10<br />

Hello World! I am 8 of 10<br />

Each of the scripts invokes the GNU compiler for the respective language and the<br />

linker. See “To Use Another Compiler” on page 4-9 for an example of how to use<br />

other compilers. The use of mpirun is the same for programs in all languages.<br />

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

The following sections provide more details on the use of <strong>QLogic</strong> MPI. These<br />

sections assume that you are familiar with standard MPI. For more information,<br />

see the references in “References for MPI” on page J-1. This implementation<br />

includes the man pages from the MPICH implementation for the numerous MPI<br />

functions.<br />

4-6 D000046-005 B

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

Saved successfully!

Ooh no, something went wrong!