<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<STYLE>@font-face {
        font-family: Batang;
}
@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: Lucida Console;
}
@font-face {
        font-family: @Batang;
}
@font-face {
        font-family: @SimSun;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
OL {
        MARGIN-BOTTOM: 0cm
}
UL {
        MARGIN-BOTTOM: 0cm
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=390392616-14082008>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=390392616-14082008> The error "<FONT color=#ff0000>Error creating
mpiexec process</FONT>" indicates that you have tried to run a singleton MPI
process without mpiexec in the PATH.</SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=390392616-14082008> Make sure that you have mpiexec in
your PATH (more precisely the path to mpiexec in your PATH env variable) when
running an MPI process as a singleton process (singleton process - process
launched without mpiexec - when you run your MPI process in the VS command
window). To get rid of the error I would recommend that you run your MPI
application from a command window using mpiexec OR run your MPI
application from a command window without mpiexec but making sure that path
to mpiexec (typically c:\program files\mpich2\bin) is in the
PATH.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=390392616-14082008> The error "<FONT face="Lucida Console"
color=#ff0000>process 0 exited without calling finalize</FONT>" can happen due
to many reasons (Basically the error just says that the MPI process exited
before calling MPI_Finalize()). Most likely it is due to an error in the
application resulting in a segfault, aborting the job. I would recommend that,
to start with your debugging, you run your application using mpiexec from a
command prompt and try debugging the application with some debug
statements.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=390392616-14082008> Let us know if you need further
assistance</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=390392616-14082008>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=390392616-14082008>Jayesh</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Hyoun-Tae [mailto:hthwang@uwaterloo.ca]
<BR><B>Sent:</B> Thursday, August 14, 2008 10:47 AM<BR><B>To:</B>
jayesh@mcs.anl.gov<BR><B>Subject:</B> Questions about MPI
application<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello Jayesh, </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I just make an MPI application code,
which solves non-linear PDEs. </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Of the code, I applied parallel
computing method only on a matrix solver, Thomas algorithm. </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The scheme of my program follows
as:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<OL type=1>
<LI class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">read input data</SPAN></FONT>
<LI class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">make a matrix</SPAN></FONT>
<LI class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">solve the matrix by using parallel
method </SPAN></FONT>
<LI class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">print output</SPAN></FONT>
</LI></OL>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">As mentioned before, I just
parallelized only the matrix solver. </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I compiled the application code by
using MS visual studio 2005 </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">and executed the application code
with using MPIEXEC wrapper. </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">However, I always got an error
massage like (I’m using 2 CPUs)</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Lucida Console" size=1><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Lucida Console" color=red size=1><SPAN
style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 'Lucida Console'">job
aborted:</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Lucida Console" color=red size=1><SPAN
style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 'Lucida Console'">rank: node:
exit code[: error message]</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Lucida Console" color=red size=1><SPAN
style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 'Lucida Console'">0: hthwang:
-1073741819: process 0 exited without calling finalize</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Lucida Console" color=red size=1><SPAN
style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 'Lucida Console'">1: hthwang:
-1073741819: process 1 exited without calling finalize</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Lucida Console" size=1><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Could you tell me why I always get
the error message and how I can solve this problem?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">When I compile the code by using MS
visual studio 2005, </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I also get a message on a command
window such as:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">[0] Error creating
mpiexec process …2</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">[0] launchMpiexecProcess
failed</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">Fatal error in MPI_Init:
Other MPI error, error stack:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">MPIR_Init_thread(294):
Initialization failed</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">MPID_Init(82)…………:
channel initialization failed</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">MPID_Init(383)………..:
PMI_Get_id returned 1</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=red size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Lucida Console" size=1><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is this error after compilation
related to MPI application error?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Could you tell me how I can solve
these problems?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I can send the MPI application code
if you need.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thank you, </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">HT</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial">**********************************************************************</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial">Hyoun-Tae Hwang
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#999999 size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: #999999; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial">#2051 EIT,
Department of Earth and Environmental Sci</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial">University</SPAN></FONT><FONT
face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial"> of
</SPAN></FONT><FONT face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial">Waterloo</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial">office : (+1)
519-888-4567 (EXT.
37343)
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial">home : (+1)
519-880-9794 </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#999999 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial">**********************************************************************</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV></BODY></HTML>