<!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.16809" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009> I would recommend the
following,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009># Use the "-machinefile" option of mpiexec (mpiexec -n
2 -machinefile mf.txt cpi.exe) to run your MPI program across multiple
machines. See the windows developer's guide for more information (available at
<A
href="http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs">http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs</A>).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009># Register the username/password using "mpiexec
-register" command instead of using the textfile to store them. After you
register your username/password, mpiexec will automatically use it to launch
your MPI job.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009># Use ipaddresses instead of host
names.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009># Make sure that you turn off any firewalls (windows,
third-party) running on the machines.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009># Make sure that you can run a simple non-MPI program
on the remote host.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009> On machine1,
mpiexec -n 1 -host machine2_ipaddress hostname</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009> On machine2,
mpiexec -n 1 -host machine1_ipaddress hostname</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009> Let us know the results.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=272550419-18022009>Jayesh</SPAN></FONT></DIV><FONT face=Arial
color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Sole
Eko<BR><B>Sent:</B> Wednesday, February 18, 2009 1:01 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] Problem with
running mpiexec on more than oneWindows XP machines<BR></FONT><BR></DIV>
<DIV></DIV>Hi, <BR><BR>I am new in MPI and MPICH in particular.<BR><BR>I firstly
installed mpich2 on two machines in same lan, both machines have same (admin)
account name/password.<BR>so I created file pwd.exe to store username and
password.<BR><BR>than, I had set available hosts for <SPAN
style="FONT-FAMILY: courier new,monospace">smpd </SPAN>on both of them like
this: <BR><BR><SPAN style="FONT-FAMILY: courier new,monospace">smpd -sethosts
ipmachine1 ipmachine2 , <FONT face=arial,helvetica,sans-serif>where I put real
ip addresses of machines.<BR>___________________________<BR></FONT></SPAN>I
tried to run example cpi.exe on machine1:<BR><BR><SPAN
style="FONT-FAMILY: courier new,monospace">mpiexec.exe -pwdfile pwd.txt
cpi.exe</SPAN> - and it worked<BR><BR>than similar from machine1 started
cpi.exe on machine2:<BR><BR><SPAN
style="FONT-FAMILY: courier new,monospace">mpiexec.exe -pwdfile pwd.txt -host
ipmachine2 cpi.exe</SPAN> <FONT face=arial,helvetica,sans-serif>- this also
worked, no problem<BR>__________________________<BR></FONT><BR>but, when I tried
to run on both machines, first like this:<BR><SPAN
style="FONT-FAMILY: courier new,monospace">mpiexec.exe -pwdfile pwd.txt -n 2
cpi.exe</SPAN> <FONT face=arial,helvetica,sans-serif>- it doesen't work, it
start cpi on machine1 and asks for number of intervals and then nothing is gonig
on.. just cousor in new line blinking..<BR>and, when I cancel job with ctrl+c -
i got this:<BR><BR><SPAN style="FONT-FAMILY: courier new,monospace">job
aborted:</SPAN><BR style="FONT-FAMILY: courier new,monospace"><SPAN
style="FONT-FAMILY: courier new,monospace">rank: node: exit code[: error
message]</SPAN><BR style="FONT-FAMILY: courier new,monospace"><SPAN
style="FONT-FAMILY: courier new,monospace">0: </SPAN></FONT><SPAN
style="FONT-FAMILY: courier new,monospace">ipmachine1 </SPAN><FONT
style="FONT-FAMILY: courier new,monospace" face=arial,helvetica,sans-serif>:
123: mpiexec aborting job<BR>1: </FONT><SPAN
style="FONT-FAMILY: courier new,monospace">ipmachine2 </SPAN><FONT
face=arial,helvetica,sans-serif><SPAN
style="FONT-FAMILY: courier new,monospace">: 123</SPAN><BR
style="FONT-FAMILY: courier new,monospace"><SPAN
style="FONT-FAMILY: courier new,monospace">Terminate batch job
(Y/N)?</SPAN><BR><BR>so, after all, there is something happening on machine2,
but I don't understand what is going on..<BR><BR>I also tried with <SPAN
style="FONT-FAMILY: courier new,monospace">-machinefile</SPAN> option..
- no results<BR><BR>I compiled <SPAN
style="FONT-FAMILY: courier new,monospace">cpi.c</SPAN> file and tired
non-interactive version, same I got..<BR><BR>Can anybody help
me?<BR></FONT></BODY></HTML>