Product specifications

Table Of Contents
D–Troubleshooting
QLogic MPI Troubleshooting
D-18 IB6054601-00 H
S
The shell strips off the double quotes before handing the arguments to the mpicc
script, thus causing the problem. The workaround is to escape the double quotes
and white space by using backslashes, so that the shell does not process them.
(Also note the single quote (‘) around the -D, since the scripts do an eval rather
than directly invoking the underlying compiler.) Use this command instead:
$ mpicc -show -DMYDEFINE=\"some\ value\" test.c
gcc -c ‘-DMYDEFINE="some value"‘ test.c
gcc -Wl,--export-dynamic,--allow-shlib-undefined test.o -lmpich
Run Time Errors with Different MPI Implementations
It is now possible to run different implementations of MPI, such as HP-MPI, over
InfiniPath. Many of these implementations share command (such as mpirun) and
library names, so it is important to distinguish which MPI version is in use. This is
done primarily through careful programming practices.
Examples are provided in the following paragraphs.
In the following command, the HP-MPI version of mpirun is invoked by the full
path name. However, the program mpi_nxnlatbw was compiled with the QLogic
version of mpicc. The mismatch produces errors similar this:
$ /opt/hpmpi/bin/mpirun -hostlist "bbb-01,bbb-02,bbb-03,bbb-04"
-np 4 /usr/bin/mpi_nxnlatbw
bbb-02: Not running from mpirun?.
MPI Application rank 1 exited before MPI_Init() with status 1
bbb-03: Not running from mpirun?.
MPI Application rank 2 exited before MPI_Init() with status 1
bbb-01: Not running from mpirun?.
bbb-04: Not running from mpirun?.
MPI Application rank 3 exited before MPI_Init() with status 1
MPI Application rank 0 exited before MPI_Init() with status 1