it may be because of not using MPI_INIT() before using MPI functions..<br>if possible please upload your code.<br><br>Anuj<br><br><br><div class="gmail_quote">On Wed, Dec 2, 2009 at 5:26 AM, Yen, Joseph <span dir="ltr">&lt;<a href="mailto:Joseph.Yen@jacobs.com">Joseph.Yen@jacobs.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>
<div><font face="Arial" size="2"><span>Hi,</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>I have an mpi c++ code which has been run fine with either lam-mpi and open-mpi. Intel C++ compiler (ver 11) has been used. But I encounter the following error
</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>Attempting to use an MPI routine before initializing MPICH<br>
</span></font></div>
<div><font face="Arial" size="2"><span>when the same code is compiled using mpich-2 (ver 1.2.1) and the same C++ compiler. For your information, I have been working on an AMD machine with SUSE linux OS where all the above experiences
 take place.</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>The following is the way I run the mpich2-built code and the above error results.</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>In a linux command prompt,</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>&gt;mpd &amp;</span></font></div>
<div><font face="Arial" size="2"><span>&gt;mpiexec -n 16 mycode myinput</span></font></div>
<div><font face="Arial" size="2"><span>Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
Attempting to use an MPI routine before initializing MPICH<br>
</span></font></div>
<div><font face="Arial" size="2"><span>Your help is greatly appreciated.</span></font></div>

<div><font face="Arial" size="2"><span>Joseph</span></font></div>

<div><font face="Arial" size="2"><span></span></font> </div>
<div align="left"><font face="Arial" size="2">Joseph Yen, Ph.D.</font></div>
<div align="left"><font face="Arial" size="2">Jacobs Technology</font></div>
<div align="left"><font face="Arial" size="2">Tel: 931-393-6605</font></div>
<div align="left"><font face="Arial" size="2"><a href="mailto:joseph.yen@jacobs.com" target="_blank">joseph.yen@jacobs.com</a></font></div>
<div align="left"> </div>
<div> </div>
<br>
<hr>
<font color="Gray" face="Verdana" size="1">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.<br>
</font>
</div>

<br>_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div><br>