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.

F–Troubleshooting<br />

<strong>QLogic</strong> MPI Troubleshooting<br />

The shell strips off the double quotes before handing the arguments to the mpicc<br />

script, thus causing the problem. The workaround is to escape the double quotes<br />

and white space by using backslashes, so that the shell does not process them.<br />

(Also note the single quote (‘) around the -D, since the scripts do an eval rather<br />

than directly invoking the underlying compiler.) Use this command instead:<br />

$ mpicc -show -DMYDEFINE=\"some\ value\" test.c<br />

gcc -c ‘-DMYDEFINE="some value"‘ test.c<br />

gcc -Wl,--export-dynamic,--allow-shlib-undefined test.o -lmpich<br />

Run Time Errors with Different MPI Implementations<br />

It is now possible to run different implementations of MPI, such as HP-MPI, over<br />

InfiniPath. Many of these implementations share command (such as mpirun) and<br />

library names, so it is important to distinguish which MPI version is in use. This is<br />

done primarily through careful programming practices.<br />

Examples are provided in the following paragraphs.<br />

In the following command, the HP-MPI version of mpirun is invoked by the full<br />

path name. However, the program mpi_nxnlatbw was compiled with the <strong>QLogic</strong><br />

version of mpicc. The mismatch produces errors similar this:<br />

$ /opt/hpmpi/bin/mpirun -hostlist "bbb-01,bbb-02,bbb-03,bbb-04"<br />

-np 4 /usr/bin/mpi_nxnlatbw<br />

bbb-02: Not running from mpirun.<br />

MPI Application rank 1 exited before MPI_Init() with status 1<br />

bbb-03: Not running from mpirun.<br />

MPI Application rank 2 exited before MPI_Init() with status 1<br />

bbb-01: Not running from mpirun.<br />

bbb-04: Not running from mpirun.<br />

MPI Application rank 3 exited before MPI_Init() with status 1<br />

MPI Application rank 0 exited before MPI_Init() with status 1<br />

D000046-005 B F-17

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

Saved successfully!

Ooh no, something went wrong!