[mpich-discuss] Running mpiexec on WIndows Computers

Zhong Wu zhong.wu at 3i-systems.com
Fri Feb 20 18:15:27 CST 2009


If I used -hosts 2 option then the mpiexec will hang until I enter ctrl-C.
(the hello.exe is running in remote computer already.)

After ctrl-C, I got:

mpiexec aborting job.

[0] Hello world

[1] Hello world

 

Job aborted:

Rank: node: exit code[: error message]

0: ipaddress_1:  123: mpiexec aborting job

1: ipaddress_2: 123 

 

BTW, -hosts 1 works for both computers.

-Zhong

 

From: Jayesh Krishna [mailto:jayesh at mcs.anl.gov] 
Sent: Friday, February 20, 2009 12:40 PM
To: 'Zhong Wu'
Cc: mpich-discuss at mcs.anl.gov
Subject: RE: [mpich-discuss] Running mpiexec on WIndows Computers

 

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]
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]
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]
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]
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]
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]
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] 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] 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] 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

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.1/1961 - Release Date: 02/20/09
07:26:00

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090220/fd48a73f/attachment-0001.htm>


More information about the mpich-discuss mailing list