After running <font color="#0000ff" face="Arial" size="2"><span>mpiexec -hosts 2
IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2 systeminfo >
system_info_machines1_2.log</span></font><br><br>I've got log file that is attached to this message.<br><br><br><br>and for running helo_world program I've got this error report in console:<br><br><span style="font-family: courier new,monospace;">Unable to connect to '-host:8676',</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">sock error: generic socket failure, error stack:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MPIDU_Sock_post_connect(1228): unable to connect to -host on port 8676, exhauste</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">d all endpoints (errno -1)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MPIDU_Sock_post_connect(1244): gethostbyname failed, No such host is known. (err</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">no 11001)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Press any key to continue . . .</span><br><br>so, it seams that some host names are problematic, I'll check this out..<br>
<br>Regards, <br><br>Sole<br><br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 9:39 PM, Jayesh Krishna <span dir="ltr"><<a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>></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 vlink="purple" link="blue" lang="EN-US">
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span> 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 color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span> mpiexec -hosts 2
IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2 systeminfo >
system_info_machines1_2.log</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div><font color="#0000ff" face="Arial" size="2"><span> Instead of trying out cpi.exe try compiling and
running the following helloworld program,</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div><font color="#0000ff" face="Arial" size="2"><span>################# hello world
#####################</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span>#include <stdio.h></span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span>#include "mpi.h"</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div><font color="#0000ff" face="Arial" size="2"><span>int
main(int argc, char *argv[])</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span>{</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span> int rank =
-1;</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span> MPI_Init(&argc,
&argv);</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span> MPI_Comm_rank(MPI_COMM_WORLD,
&rank);</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span> printf("[%d] Hello world\n",
rank);</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span>
MPI_Finalize();</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span>}</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span>################# hello world
#####################</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div><font color="#0000ff" face="Arial" size="2"><span> Compile the program above, copy it to
c:\temp, and run it as follows,</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div><font color="#0000ff" face="Arial" size="2"><span>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span> mpiexec -hosts 2
IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2
c:\temp\hello_world.exe</span></font></div><font color="#0000ff" face="Arial" size="2"><span></span></font></span></font></div><div class="Ih2E3d">
<div><font color="#0000ff" face="Arial" size="2"><span><font color="#0000ff" face="Arial" size="2"><span></span></font></span></font> </div>
<div><span><span></span></span><font color="#0000ff" face="Arial" size="2"><span> Let us know the
results.</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
</div><div><font color="#0000ff" face="Arial" size="2"><span>Regards,</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span>Jayesh</span></font></div>
<div dir="ltr" align="left"><br></div>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><div class="Ih2E3d"><b>From:</b> Zhong Wu [mailto:<a href="mailto:zhong.wu@3i-systems.com" target="_blank">zhong.wu@3i-systems.com</a>]
<br></div><b>Sent:</b> Thursday, February 19, 2009 4:24 PM<div class="Ih2E3d"><br><b>To:</b> 'Jayesh
Krishna'<br><b>Cc:</b> <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><b>Subject:</b> RE:
[mpich-discuss] Running mpiexec on WIndows Computers<br></div></font><br></div>
<div></div>
<div><div class="Ih2E3d">
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I
copied cpi to c:\temp, but still the same problem.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
</div><div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">-Zhong</span></p></div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Jayesh Krishna
[mailto:<a href="mailto:jayesh@mcs.anl.gov" target="_blank">jayesh@mcs.anl.gov</a>] <br><b>Sent:</b> Thursday, February 19, 2009 2:08
PM<div><div></div><div class="Wj3C7c"><br><b>To:</b> 'Zhong Wu'<br><b>Cc:</b>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><b>Subject:</b> RE: [mpich-discuss] Running mpiexec
on WIndows Computers</div></div></span></p></div></div><div><div></div><div class="Wj3C7c">
<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" target="_blank">mailto:zhong.wu@3i-systems.com</a>]<br>Sent:
Thursday, February 19, 2009 3:49 PM<br>To: 'Jayesh Krishna'<br>Cc:
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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" target="_blank">mailto:jayesh@mcs.anl.gov</a>]<br>Sent:
Thursday, February 19, 2009 1:38 PM<br>To: 'Zhong Wu'<br>Cc:
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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" target="_blank">mailto:zhong.wu@3i-systems.com</a>]<br>Sent:
Thursday, February 19, 2009 3:25 PM<br>To: 'Jayesh Krishna'<br>Cc:
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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" target="_blank">mailto:jayesh@mcs.anl.gov</a>]<br>Sent:
Thursday, February 19, 2009 9:43 AM<br>To: 'Zhong Wu'<br>Cc:
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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" target="_blank">mailto:zhong.wu@3i-systems.com</a>]<br>Sent:
Thursday, February 19, 2009 11:27 AM<br>To: 'Jayesh Krishna'<br>Cc:
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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" target="_blank">mailto:jayesh@mcs.anl.gov</a>]<br>Sent:
Thursday, February 19, 2009 8:57 AM<br>To: 'Zhong Wu'<br>Cc:
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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:
<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a><br>[<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mailto:mpich-discuss-bounces@mcs.anl.gov</a>]
On Behalf Of Zhong Wu<br>Sent: Thursday, February 19, 2009 10:42 AM<br>To:
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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:
<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a><br>[<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">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: <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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:
<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a><br>[<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mailto:mpich-discuss-bounces@mcs.anl.gov</a>]
On Behalf Of Sole Eko<br>Sent: Thursday, February 19, 2009 3:46 AM<br>To:
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><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 <<a href="mailto:zhong.wu@3i-systems.com" target="_blank">zhong.wu@3i-systems.com</a>><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 - <a href="http://www.avg.com" target="_blank">www.avg.com</a><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 - <a href="http://www.avg.com" target="_blank">www.avg.com</a><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 -
<a href="http://www.avg.com" target="_blank">www.avg.com</a><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 - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>Version: 8.0.237 / Virus Database:
270.11.0/1959 - Release Date: 02/19/09<br>10:48:00</span></p>
<p><span style="font-size: 10pt; font-family: SimSun;">No virus found in this
incoming message.<br>Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>Version: 8.0.237 / Virus
Database: 270.11.0/1959 - Release Date: 02/19/09
10:48:00</span></p></div></div></div></div>
</blockquote></div><br>