[mpich-discuss] how to connect linux and windows?

Jayesh Krishna jayesh at mcs.anl.gov
Mon Nov 7 10:01:47 CST 2011


Hi,
 Look into section 9.6 of the Windows developer's guide (http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs) for the correct syntax when entering data in the machine file (Looks like you missed a colon between the hostname and the number of procs).

Regards,
Jayesh

----- Original Message -----
From: "lt200819" <lt200819 at gmail.com>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Saturday, November 5, 2011 1:50:52 AM
Subject: Re: Re: [mpich-discuss] how to connect linux and windows?

 
I have make ture turn off firewalls on both the machines (Windows firewall & any firewalls on Linux) ,It's doesn't work. 


2011-11-05 

lt200819 

发件人: Jayesh Krishna 
发送时间: 2011-11-04 23:54:46 
收件人: lt200819 
抄送: mpich-discuss 
主题: Re: [mpich-discuss] how to connect linux and windows? 


Hi, 
Have to turned off firewalls on both the machines (Windows firewall & any firewalls on Linux)? 

Regards, 
Jayesh 

----- Original Message ----- 
From: "lt200819" <lt200819 at gmail.com> 
To: "Jayesh Krishna" <jayesh at mcs.anl.gov> 
Sent: Thursday, November 3, 2011 7:54:46 PM 
Subject: Re: Re: [mpich-discuss] how to connect linux and windows? 

 

I have remove the extention .exe of the executable file on windows. 


the content of machinefile.txt 
192.168.1.1 //linux 
192.168.1.3 //windows 


c:\MPICH2\bin>mpiexec -machinefile machinefile.txt -path "c:\MPICH2\examples;/h 
ome/walter/mpich2-1.4.1p1/examples" icpi 
Enter the number of intervals: (0 quits) 100 
pi is approximately 3.1416009869231254, Error is 0.0000083333333323 
wall clock time = 0.000156 
Enter the number of intervals: (0 quits) 0 

It's OK. 

when add -n 4 or modify machinefile.txt 
192.168.1.1 2 
192.168.1.3 2 
wrong info like below: 


c:\MPICH2\bin>mpiexec -n 4 -machinefile machinefile.txt -path "c:\MPICH2\exampl 
es;/home/walter/mpich2-1.4.1p1/examples" icpi 
op_read error on left context: Error = -1 

unable to read the cmd header on the left context, Error = -1 
. 
when modify machinefile.txt 
192.168.1.3 
192.168.1.1 
wrong info like below: 

c:\MPICH2\bin>mpiexec -n 4 -machinefile machinefile.txt -path "c:\MPICH2\exampl 
es;/home/walter/mpich2-1.4.1p1/examples" icpi 
Enter the number of intervals: (0 quits) 10 
Fatal error in PMPI_Bcast: Other MPI error, error stack: 
PMPI_Bcast(1478)......................: MPI_Bcast(buf=0012FE48, count=1, MPI_INT 
, root=0, MPI_COMM_WORLD) failed 
MPIR_Bcast_impl(1321).................: 
MPIR_Bcast_intra(1119)................: 
MPIR_Bcast_scatter_ring_allgather(962): 
MPIR_Bcast_binomial(213)..............: Failure during collective 
MPIR_Bcast_scatter_ring_allgather(955): 
MPIR_Bcast_binomial(189)..............: 
MPIC_Send(66).........................: 
MPIC_Wait(540)........................: 
MPIDI_CH3I_Progress(402)..............: 
MPID_nem_mpich2_blocking_recv(905)....: 
MPID_nem_newtcp_module_poll(37).......: 
MPID_nem_newtcp_module_connpoll(2656).: 
gen_cnting_fail_handler(1739).........: connect failed - 远程计算机拒绝网络连接 
。 
(errno 1225) 

job aborted: 
rank: node: exit code[: error message] 
0: 192.168.1.3: 1: process 0 exited without calling finalize 
1: 192.168.1.1: -2 
2: 192.168.1.3: 123 
3: 192.168.1.1: -2 


2011-11-04 

lt200819 

发件人: Jayesh Krishna 
发送时间: 2011-11-04 01:07:13 
收件人: lt200819 
抄送: mpich-discuss 
主题: Re: [mpich-discuss] how to connect linux and windows? 


Please copy-paste the entire command and the output in your email. 
I would recommend recompiling icpi.c on both Windows and Linux and then renaming executables on both machines to "icpi" (Note: Remove the extension, .exe, of the executable file on Windows). 

-Jayesh 

----- Original Message ----- 
From: "lt200819" <lt200819 at gmail.com> 
To: "Jayesh Krishna" <jayesh at mcs.anl.gov> 
Sent: Wednesday, November 2, 2011 9:17:16 PM 
Subject: Re: Re: [mpich-discuss] how to connect linux and windows? 

 

use cpi.exe as the example. I have rename it as icpi.exe. and have "make" the icpi.c on the linux. 
if exe on two windows ,it's OK. But, if exe on both linux and windows,it show some error. 

C:\MPICH2\bin>mpiexec -machinefile machinefile.txt -channel nemesis -path "c:\MPICH2\examples;/home/walter/mpich2-1.4.1p1/examples" icpi 


can't found the cmd header in the left context. 
why? 


2011-11-03 

lt200819 

发件人: Jayesh Krishna 
发送时间: 2011-11-01 23:07:20 
收件人: 李彤 
抄送: mpich-discuss 
主题: Re: [mpich-discuss] how to connect linux and windows? 


So did it work for you ? 

-Jayesh 

----- Original Message ----- 
From: "李彤" <lt200819 at gmail.com> 
To: "Jayesh Krishna" <jayesh at mcs.anl.gov> 
Sent: Monday, October 31, 2011 9:27:54 PM 
Subject: Re: [mpich-discuss] how to connect linux and windows? 

I have done it. 

use cpi.exe as the example. I have rename it as icpi.exe. and have make the icpi.c on the linux. 
if exe on two windows ,it's OK. But, if exe on linux and windows,it show some error. 

can't found the cmd header in the left context. 
why? 


2011/10/27 Jayesh Krishna < jayesh at mcs.anl.gov > 


Hi, 
SMPD is the default (only available one right now) process manager on Windows. After configuring MPICH2 with SMPD on Unix/linux, 

1. Make sure that you have the program (say foo.c ==compiled_to==> foo.exe ==renamed_to==> "foo" on Windows) compiled and working on Windows. 
"mpiexec -n 2 foo" should work 
2. Add the Windows and Linux hostnames to the "machinefile" (mpiexec -n 2 -machinefile mf.txt foo) 
You can specify the path to the different executables using the "-path" option (mpiexec -n 2 -machinefile mf.txt -path "C:\temp;/home/user/temp" foo). 

Regards, 
Jayesh 




----- Original Message ----- 
From: "李彤" < lt200819 at gmail.com > 
To: mpich-discuss at mcs.anl.gov 
Sent: Monday, October 24, 2011 3:12:21 AM 
Subject: [mpich-discuss] how to connect linux and windows? 


now,I have use smpd complement the connection between ubuntu11.10 and other ubuntu11.10 
and I have install mpich2-1.4.1p1 on windows7 , it's run well 
how to connect linux and windows?? 
_______________________________________________ 
mpich-discuss mailing list mpich-discuss at mcs.anl.gov 
To manage subscription options or unsubscribe: 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss


More information about the mpich-discuss mailing list