<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD><TITLE>RE: [mpich-discuss] Running mpiexec on WIndows Computers</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR>
<STYLE>@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: SimSun;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> Please run the command below and provide us with
the output (system_info_machines1_2.log),</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> mpiexec -hosts 2
IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2 systeminfo >
system_info_machines1_2.log</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> Instead of trying out cpi.exe try compiling and
running the following helloworld program,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>################# hello world
#####################</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>#include <stdio.h></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>#include "mpi.h"</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=085573220-20022009>int
main(int argc, char *argv[])</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>{</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> int rank =
-1;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> MPI_Init(&argc,
&argv);</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> MPI_Comm_rank(MPI_COMM_WORLD,
&rank);</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> printf("[%d] Hello world\n",
rank);</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>
MPI_Finalize();</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>}</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>################# hello world
#####################</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> Compile the program above, copy it to
c:\temp, and run it as follows,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=085573220-20022009>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009> mpiexec -hosts 2
IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2
c:\temp\hello_world.exe</SPAN></FONT></DIV><FONT face=Arial color=#0000ff
size=2><SPAN class=085573220-20022009></SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=085573220-20022009><FONT
face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009></SPAN></FONT></SPAN></FONT> </DIV>
<DIV><SPAN class=085573220-20022009><SPAN
class=085573220-20022009></SPAN></SPAN><FONT face=Arial color=#0000ff
size=2><SPAN class=085573220-20022009> Let us know the
results.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=085573220-20022009>Jayesh</SPAN></FONT></DIV>
<DIV dir=ltr align=left><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Zhong Wu [mailto:zhong.wu@3i-systems.com]
<BR><B>Sent:</B> Thursday, February 19, 2009 4:24 PM<BR><B>To:</B> 'Jayesh
Krishna'<BR><B>Cc:</B> mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> RE:
[mpich-discuss] Running mpiexec on WIndows Computers<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">I
copied cpi to c:\temp, but still the same problem.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">-Zhong<o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> Jayesh Krishna
[mailto:jayesh@mcs.anl.gov] <BR><B>Sent:</B> Thursday, February 19, 2009 2:08
PM<BR><B>To:</B> 'Zhong Wu'<BR><B>Cc:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> RE: [mpich-discuss] Running mpiexec
on WIndows Computers<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<P><SPAN style="FONT-SIZE: 10pt"> A quick note -- Copy cpi.exe to a
non-user specific directory like c:\temp (Move cpi.exe from
"c:\Users\zhong.wu\Documents" to "c:\temp") on both the machines and try running
your MPI job.<BR><BR>-jayesh<BR><BR>-----Original Message-----<BR>From: Zhong Wu
[<A
href="mailto:zhong.wu@3i-systems.com">mailto:zhong.wu@3i-systems.com</A>]<BR>Sent:
Thursday, February 19, 2009 3:49 PM<BR>To: 'Jayesh Krishna'<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: RE: [mpich-discuss] Running mpiexec on
WIndows Computers<BR><BR>I have tried hostname and ipaddress both.<BR><BR>I
attached the spmd and mpiexec logs from one of my
computer.<BR><BR>Thanks.<BR><BR>-Zhong<BR><BR><BR>-----Original
Message-----<BR>From: Jayesh Krishna [<A
href="mailto:jayesh@mcs.anl.gov">mailto:jayesh@mcs.anl.gov</A>]<BR>Sent:
Thursday, February 19, 2009 1:38 PM<BR>To: 'Zhong Wu'<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: RE: [mpich-discuss] Running mpiexec on
WIndows Computers<BR><BR>Please provide as much information in your email as
possible. Did you try using machine file with ipaddresses (instead of
hostnames)?<BR><BR>-jayesh<BR><BR>________________________________<BR><BR>From:
Zhong Wu [<A
href="mailto:zhong.wu@3i-systems.com">mailto:zhong.wu@3i-systems.com</A>]<BR>Sent:
Thursday, February 19, 2009 3:25 PM<BR>To: 'Jayesh Krishna'<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: RE: [mpich-discuss] Running mpiexec on
WIndows Computers<BR><BR><BR><BR>The machine file didn't
work.<BR><BR><BR><BR>-Zhong<BR><BR><BR><BR>From: Jayesh Krishna [<A
href="mailto:jayesh@mcs.anl.gov">mailto:jayesh@mcs.anl.gov</A>]<BR>Sent:
Thursday, February 19, 2009 9:43 AM<BR>To: 'Zhong Wu'<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: RE: [mpich-discuss] Running mpiexec on
WIndows Computers<BR><BR><BR><BR>>> But from one remote I have to use
ipaddress to start remote<BR>process...<BR><BR> So did you try running cpi
by specifying ipaddresses ? Also let us know<BR>whether the "-machinefile"
option works for you (make sure that you<BR>specify ipaddresses of the machines
in your machine
file).<BR><BR><BR><BR>Regards,<BR><BR>Jayesh<BR><BR><BR><BR>________________________________<BR><BR>From:
Zhong Wu [<A
href="mailto:zhong.wu@3i-systems.com">mailto:zhong.wu@3i-systems.com</A>]<BR>Sent:
Thursday, February 19, 2009 11:27 AM<BR>To: 'Jayesh Krishna'<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: RE: [mpich-discuss] Running mpiexec on
WIndows Computers<BR><BR>I can run cpi on both remote computers with -hosts 1,
but not two<BR>computers at same time. But from one remote I have to use
ipaddress to<BR>start remote process.<BR><BR><BR><BR>I turned off firewall
completely, still the same problem.<BR><BR><BR><BR>I found the cpi.exe processes
are already started in both computers<BR>(remote and
local).<BR><BR><BR><BR>-Zhong<BR><BR><BR><BR>From: Jayesh Krishna [<A
href="mailto:jayesh@mcs.anl.gov">mailto:jayesh@mcs.anl.gov</A>]<BR>Sent:
Thursday, February 19, 2009 8:57 AM<BR>To: 'Zhong Wu'<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: RE: [mpich-discuss] Running mpiexec on
WIndows Computers<BR><BR><BR><BR>1) Did you try executing cpi.exe remotely from
both the machines<BR>(mpiexec -hosts 1 remotecomputer... from both the
machines)?<BR><BR>2) Do you have any windows firewall or third party firewall
running on<BR>your machine (turn it off if its running)?<BR><BR>3) Try
specifying the ipaddresses of machines (Due to DNS config issues<BR>one host may
not be able to resolve the other hosts name) instead
of<BR>hostnames.<BR><BR><BR><BR>Regards,<BR><BR>Jayesh<BR><BR><BR><BR>________________________________<BR><BR>From:
mpich-discuss-bounces@mcs.anl.gov<BR>[<A
href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>]
On Behalf Of Zhong Wu<BR>Sent: Thursday, February 19, 2009 10:42 AM<BR>To:
mpich-discuss@mcs.anl.gov<BR>Subject: Re: [mpich-discuss] Running mpiexec on
WIndows Computers<BR><BR>Yes. I am using the latest mpich2 version 1.08. one of
my computer is<BR>running vista and the other one is windows server 2008. I will
try<BR>machinefile.<BR><BR><BR><BR>-Zhong<BR><BR><BR><BR>From:
mpich-discuss-bounces@mcs.anl.gov<BR>[<A
href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>]
On Behalf Of Jayesh Krishna<BR>Sent: Thursday, February 19, 2009 7:22 AM<BR>To:
'Sole Eko'<BR>Cc: mpich-discuss@mcs.anl.gov<BR>Subject: Re: [mpich-discuss]
Running mpiexec on WIndows Computers<BR><BR><BR><BR>Hi,<BR><BR> Did you
recently upgrade to the latest version of MPICH2 (1.0.8)?<BR><BR><BR><BR>(PS: I
just verified that I can run cpi across two Win XP machines using<BR>a
machinefile or the "-hosts"
option.)<BR><BR>Regards,<BR><BR>Jayesh<BR><BR><BR><BR>________________________________<BR><BR>From:
mpich-discuss-bounces@mcs.anl.gov<BR>[<A
href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>]
On Behalf Of Sole Eko<BR>Sent: Thursday, February 19, 2009 3:46 AM<BR>To:
mpich-discuss@mcs.anl.gov<BR>Subject: Re: [mpich-discuss] Running mpiexec on
WIndows Computers<BR><BR>Hi Zhong,<BR><BR>same problem I'm facing..<BR><BR>is
this some bug in last release of MPICH2..?<BR><BR>Sole<BR><BR>On Thu, Feb 19,
2009 at 8:37 AM, Zhong Wu <zhong.wu@3i-systems.com><BR>wrote:<BR><BR>I am
setting up mpich2 on two windows computers. I created same<BR>user/password on
both computers and use mpiexec -register to register<BR>user/password. I could
run the sample program cpi.exe in local and<BR>remote computer
through<BR><BR><BR><BR>mpiexec -hosts 1 localcomputer 2
c:\samples\cpi.exe<BR><BR>mpiexec -hosts 1 remotecomputer 2
c:\samples\cpi.exe<BR><BR><BR><BR>but I cannot run the sample on both computer
at once<BR><BR><BR><BR>mpiexec -hosts 2 localcomputer 2 remotecomputer 2
c:\samples\cpi.exe<BR><BR><BR><BR>mpiexec will hang after the
interval.<BR><BR><BR><BR>-Zhong<BR><BR><BR><BR><BR><BR>No virus found in this
incoming message.<BR>Checked by AVG - www.avg.com<BR>Version: 8.0.237 / Virus
Database: 270.11.0/1959 - Release Date:<BR>02/18/09 20:55:00<BR><BR>No virus
found in this incoming message.<BR>Checked by AVG - www.avg.com<BR>Version:
8.0.237 / Virus Database: 270.11.0/1959 - Release Date:<BR>02/18/09
20:55:00<BR><BR>No virus found in this incoming message.<BR>Checked by AVG -
www.avg.com<BR>Version: 8.0.237 / Virus Database: 270.11.0/1959 - Release
Date:<BR>02/19/09 10:48:00<BR><BR><BR>No virus found in this incoming
message.<BR>Checked by AVG - www.avg.com<BR>Version: 8.0.237 / Virus Database:
270.11.0/1959 - Release Date: 02/19/09<BR>10:48:00</SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun">No virus found in this
incoming message.<BR>Checked by AVG - www.avg.com<BR>Version: 8.0.237 / Virus
Database: 270.11.0/1959 - Release Date: 02/19/09
10:48:00</SPAN><o:p></o:p></P></DIV></BODY></HTML>