[mpich-discuss] Running mpiexec on WIndows Computers

Sole Eko sole.eko at gmail.com
Mon Feb 23 06:03:35 CST 2009


After running mpiexec -hosts 2 IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2
systeminfo  > system_info_machines1_2.log

I've got log file that is attached to this message.



and for running helo_world program I've got this error report in console:

Unable to connect to '-host:8676',
sock error: generic socket failure, error stack:
MPIDU_Sock_post_connect(1228): unable to connect to -host on port 8676,
exhauste
d all endpoints (errno -1)
MPIDU_Sock_post_connect(1244): gethostbyname failed, No such host is known.
(err
no 11001)
Press any key to continue . . .

so, it seams that some host names are problematic, I'll check this out..

Regards,

Sole


On Fri, Feb 20, 2009 at 9:39 PM, Jayesh Krishna <jayesh at mcs.anl.gov> wrote:

>  Hi,
>  Please run the command below and provide us with the output
> (system_info_machines1_2.log),
>
>       mpiexec -hosts 2 IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2
> systeminfo  > system_info_machines1_2.log
>
>  Instead of trying out cpi.exe try compiling and running the following
> helloworld program,
>
> ################# hello world #####################
> #include <stdio.h>
> #include "mpi.h"
>
> int main(int argc, char *argv[])
> {
>      int rank = -1;
>      MPI_Init(&argc, &argv);
>      MPI_Comm_rank(MPI_COMM_WORLD, &rank);
>      printf("[%d] Hello world\n", rank);
>      MPI_Finalize();
> }
> ################# hello world #####################
>
>  Compile the program above, copy it to c:\temp, and run it as follows,
>
>        mpiexec -hosts 2 IPADDRESS_OF_MACHINE1 IPADDRESS_OF_MACHINE2
> c:\temp\hello_world.exe
>
>  Let us know the results.
>
> Regards,
> Jayesh
>
>  ------------------------------
> *From:* Zhong Wu [mailto:zhong.wu at 3i-systems.com]
> *Sent:* Thursday, February 19, 2009 4:24 PM
> *To:* 'Jayesh Krishna'
> *Cc:* mpich-discuss at mcs.anl.gov
> *Subject:* RE: [mpich-discuss] Running mpiexec on WIndows Computers
>
>  I copied cpi to c:\temp, but still the same problem.
>
>
>
> -Zhong
>
>
>
> *From:* Jayesh Krishna [mailto:jayesh at mcs.anl.gov]
> *Sent:* Thursday, February 19, 2009 2:08 PM
>
> *To:* 'Zhong Wu'
> *Cc:* mpich-discuss at mcs.anl.gov
> *Subject:* RE: [mpich-discuss] Running mpiexec on WIndows Computers
>
>
>
>  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.
>
> -jayesh
>
> -----Original Message-----
> From: Zhong Wu [mailto:zhong.wu at 3i-systems.com <zhong.wu at 3i-systems.com>]
> Sent: Thursday, February 19, 2009 3:49 PM
> To: 'Jayesh Krishna'
> Cc: mpich-discuss at mcs.anl.gov
> Subject: RE: [mpich-discuss] Running mpiexec on WIndows Computers
>
> I have tried hostname and ipaddress both.
>
> I attached the spmd and mpiexec logs from one of my computer.
>
> Thanks.
>
> -Zhong
>
>
> -----Original Message-----
> From: Jayesh Krishna [mailto:jayesh at mcs.anl.gov <jayesh at mcs.anl.gov>]
> Sent: Thursday, February 19, 2009 1:38 PM
> To: 'Zhong Wu'
> Cc: mpich-discuss at mcs.anl.gov
> Subject: RE: [mpich-discuss] Running mpiexec on WIndows Computers
>
> Please provide as much information in your email as possible. Did you try
> using machine file with ipaddresses (instead of hostnames)?
>
> -jayesh
>
> ________________________________
>
> From: Zhong Wu [mailto:zhong.wu at 3i-systems.com <zhong.wu at 3i-systems.com>]
> Sent: Thursday, February 19, 2009 3:25 PM
> To: 'Jayesh Krishna'
> Cc: mpich-discuss at mcs.anl.gov
> Subject: RE: [mpich-discuss] Running mpiexec on WIndows Computers
>
>
>
> The machine file didn't work.
>
>
>
> -Zhong
>
>
>
> From: Jayesh Krishna [mailto:jayesh at mcs.anl.gov <jayesh at mcs.anl.gov>]
> Sent: Thursday, February 19, 2009 9:43 AM
> To: 'Zhong Wu'
> Cc: mpich-discuss at mcs.anl.gov
> Subject: RE: [mpich-discuss] Running mpiexec on WIndows Computers
>
>
>
> >> But from one remote I have to use ipaddress to start remote
> process...
>
>  So did you try running cpi by specifying ipaddresses ? Also let us know
> whether the "-machinefile" option works for you (make sure that you
> specify ipaddresses of the machines in your machine file).
>
>
>
> Regards,
>
> Jayesh
>
>
>
> ________________________________
>
> From: Zhong Wu [mailto:zhong.wu at 3i-systems.com <zhong.wu at 3i-systems.com>]
> Sent: Thursday, February 19, 2009 11:27 AM
> To: 'Jayesh Krishna'
> Cc: mpich-discuss at mcs.anl.gov
> Subject: RE: [mpich-discuss] Running mpiexec on WIndows Computers
>
> I can run cpi on both remote computers with -hosts 1, but not two
> computers at same time. But from one remote I have to use ipaddress to
> start remote process.
>
>
>
> I turned off firewall completely, still the same problem.
>
>
>
> I found the cpi.exe processes are already started in both computers
> (remote and local).
>
>
>
> -Zhong
>
>
>
> From: Jayesh Krishna [mailto:jayesh at mcs.anl.gov <jayesh at mcs.anl.gov>]
> Sent: Thursday, February 19, 2009 8:57 AM
> To: 'Zhong Wu'
> Cc: mpich-discuss at mcs.anl.gov
> Subject: RE: [mpich-discuss] Running mpiexec on WIndows Computers
>
>
>
> 1) Did you try executing cpi.exe remotely from both the machines
> (mpiexec -hosts 1 remotecomputer... from both the machines)?
>
> 2) Do you have any windows firewall or third party firewall running on
> your machine (turn it off if its running)?
>
> 3) Try specifying the ipaddresses of machines (Due to DNS config issues
> one host may not be able to resolve the other hosts name) instead of
> hostnames.
>
>
>
> Regards,
>
> Jayesh
>
>
>
> ________________________________
>
> From: mpich-discuss-bounces at mcs.anl.gov
> [mailto:mpich-discuss-bounces at mcs.anl.gov<mpich-discuss-bounces at mcs.anl.gov>]
> On Behalf Of Zhong Wu
> Sent: Thursday, February 19, 2009 10:42 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: Re: [mpich-discuss] Running mpiexec on WIndows Computers
>
> Yes. I am using the latest mpich2 version 1.08. one of my computer is
> running vista and the other one is windows server 2008. I will try
> machinefile.
>
>
>
> -Zhong
>
>
>
> From: mpich-discuss-bounces at mcs.anl.gov
> [mailto:mpich-discuss-bounces at mcs.anl.gov<mpich-discuss-bounces at mcs.anl.gov>]
> On Behalf Of Jayesh Krishna
> Sent: Thursday, February 19, 2009 7:22 AM
> To: 'Sole Eko'
> Cc: mpich-discuss at mcs.anl.gov
> Subject: Re: [mpich-discuss] Running mpiexec on WIndows Computers
>
>
>
> Hi,
>
>  Did you recently upgrade to the latest version of MPICH2 (1.0.8)?
>
>
>
> (PS: I just verified that I can run cpi across two Win XP machines using
> a machinefile or the "-hosts" option.)
>
> Regards,
>
> Jayesh
>
>
>
> ________________________________
>
> From: mpich-discuss-bounces at mcs.anl.gov
> [mailto:mpich-discuss-bounces at mcs.anl.gov<mpich-discuss-bounces at mcs.anl.gov>]
> On Behalf Of Sole Eko
> Sent: Thursday, February 19, 2009 3:46 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: Re: [mpich-discuss] Running mpiexec on WIndows Computers
>
> Hi Zhong,
>
> same problem I'm facing..
>
> is this some bug in last release of MPICH2..?
>
> Sole
>
> On Thu, Feb 19, 2009 at 8:37 AM, Zhong Wu <zhong.wu at 3i-systems.com>
> wrote:
>
> I am setting up mpich2 on two windows computers. I created same
> user/password on both computers and use mpiexec -register to register
> user/password. I could run the sample program cpi.exe in local and
> remote computer through
>
>
>
> mpiexec -hosts 1 localcomputer 2 c:\samples\cpi.exe
>
> mpiexec -hosts 1 remotecomputer 2 c:\samples\cpi.exe
>
>
>
> but I cannot run the sample on both computer at once
>
>
>
> mpiexec -hosts 2 localcomputer 2 remotecomputer 2 c:\samples\cpi.exe
>
>
>
> mpiexec will hang after the interval.
>
>
>
> -Zhong
>
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.237 / Virus Database: 270.11.0/1959 - Release Date:
> 02/18/09 20:55:00
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.237 / Virus Database: 270.11.0/1959 - Release Date:
> 02/18/09 20:55:00
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.237 / Virus Database: 270.11.0/1959 - Release Date:
> 02/19/09 10:48:00
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.237 / Virus Database: 270.11.0/1959 - Release Date: 02/19/09
> 10:48:00
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.237 / Virus Database: 270.11.0/1959 - Release Date: 02/19/09
> 10:48:00
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090223/56cb263f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: system_info_machines1_2.rar
Type: application/rar
Size: 1585 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090223/56cb263f/attachment.rar>


More information about the mpich-discuss mailing list