<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18852"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=718215903-02122009><FONT color=#0000ff 
size=2 face=Arial>As the error message suggests, are you calling any MPI 
function before MPI_Init is called?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718215903-02122009><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=718215903-02122009><FONT color=#0000ff 
size=2 face=Arial>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> mpich-discuss-bounces@mcs.anl.gov 
  [mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Yen, 
  Joseph<BR><B>Sent:</B> Tuesday, December 01, 2009 5:57 PM<BR><B>To:</B> 
  'mpich-discuss@mcs.anl.gov'<BR><B>Subject:</B> [mpich-discuss] mpich user 
  problem<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><FONT size=2 face=Arial><SPAN 
  class=732334523-01122009>Hi,</SPAN></FONT></DIV>
  <DIV><FONT size=2 face=Arial><SPAN 
  class=732334523-01122009></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial><SPAN class=732334523-01122009>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 size=2 face=Arial><SPAN 
  class=732334523-01122009></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial><SPAN class=732334523-01122009>Attempting to use 
  an MPI routine before initializing MPICH<BR></SPAN></FONT></DIV>
  <DIV><FONT size=2 face=Arial><SPAN class=732334523-01122009>when the same code 
  is compiled using mpich-2 (ver 1.2.1) and the same C++ compiler.&nbsp;For your 
  information, I have been working on an AMD machine with SUSE linux OS 
  where&nbsp;all the above experiences take place.</SPAN></FONT></DIV>
  <DIV><FONT size=2 face=Arial><SPAN 
  class=732334523-01122009></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial><SPAN class=732334523-01122009>The following is 
  the way I run the mpich2-built code&nbsp;and&nbsp;the above error 
  results.</SPAN></FONT></DIV>
  <DIV><FONT size=2 face=Arial><SPAN 
  class=732334523-01122009></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial><SPAN class=732334523-01122009>In a linux 
  command&nbsp;prompt,</SPAN></FONT></DIV>
  <DIV><FONT size=2 face=Arial><SPAN 
  class=732334523-01122009></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial><SPAN class=732334523-01122009>&gt;mpd 
  &amp;</SPAN></FONT></DIV>
  <DIV><FONT size=2 face=Arial><SPAN class=732334523-01122009>&gt;mpiexec -n 16 
  mycode myinput</SPAN></FONT></DIV>
  <DIV><FONT size=2 face=Arial><SPAN class=732334523-01122009>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 size=2 face=Arial><SPAN class=732334523-01122009>Your help is 
  greatly appreciated.</DIV></SPAN></FONT>
  <DIV><FONT size=2 face=Arial><SPAN 
  class=732334523-01122009>Joseph</DIV></SPAN></FONT>
  <DIV><FONT size=2 face=Arial><SPAN 
  class=732334523-01122009></SPAN></FONT>&nbsp;</DIV>
  <DIV align=left><FONT size=2 face=Arial>Joseph Yen, Ph.D.</FONT></DIV>
  <DIV align=left><FONT size=2 face=Arial>Jacobs Technology</FONT></DIV>
  <DIV align=left><FONT size=2 face=Arial>Tel: 931-393-6605</FONT></DIV>
  <DIV align=left><FONT size=2 face=Arial><A 
  href="mailto:joseph.yen@jacobs.com">joseph.yen@jacobs.com</A></FONT></DIV>
  <DIV align=left>&nbsp;</DIV>
  <DIV>&nbsp;</DIV><BR>
  <HR>
  <FONT color=gray size=1 face=Verdana>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></BLOCKQUOTE></FONT></BODY></HTML>