[mpich-discuss] mpich user problem

Yen, Joseph Joseph.Yen at jacobs.com
Wed Dec 2 09:33:19 CST 2009


Rajeev, Chan, Anuj,

Thank you all so much for the replies. The error message is so falsely obvious that I have ignored the possibility of not compiling my C++ codes consistently with MPICH (there was no errors or complaints during compilation). That is the case where I had used the correct MPICH-C++ compiler (mpicxx) but incompatible libraries from open-mpi. The code runs fine after fixing up the inconsistency.

Joseph



> The following is the way I run the mpich2-built code and the above
> error results.
>
> In a linux command prompt,
>
> >mpd &
> >mpiexec -n 16 mycode myinput
> Attempting to use an MPI routine before initializing MPICH
> .....

Can you check if "mycode" is really compiled with MPICH2's headers
and libraries ?  Besides looking at your Makefile or build script,
you can run nm on "mycode" to see if it has MPICH2 symbols... or
ldd on "mycode" (AFAIK, OpenMPI uses shared library by default).

A.Chan

Joseph Yen, Ph.D.
Jacobs Technology
Tel: 931-393-6605
joseph.yen at jacobs.com<mailto:joseph.yen at jacobs.com>



________________________________
NOTICE - This communication may contain confidential and privileged information that is for the sole use of the intended recipient. Any viewing copying or distribution of, or reliance on this message by unintended recipients is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20091202/07bb6bcf/attachment.htm>


More information about the mpich-discuss mailing list