[mpich-discuss] Errors in running example code in MPICH2 under windows
Jayesh Krishna
jayesh at mcs.anl.gov
Mon Aug 18 10:19:06 CDT 2008
Hi,
I am not sure what the cause of the errors might be.
# Do you get the error with "windows firewall" (or any 3rd party firewall
s/w) turned off ?
# Are you able to run cpi.exe (MPICH2\examples\cpi.exe) with more than 1
processes (mpiexec -n 6 cpi.exe)?
# Is it possible for you to send us a test program (source code) that
demonstrates the problem ?
Regards,
Jayesh
_____
From: 陈斯韦 [mailto:playcsw1984 at hotmail.com]
Sent: Monday, August 18, 2008 9:50 AM
To: Jayesh Krishna
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Hello
Now I have programed an MPI function and debug it. But I meet another
problem.
When I choose the number of processes is 1. The program provide the correct
answer as we expected. But when I choose other number of processes it will
provide error informations. You can find 2 bmp image files in the attachment
of this e-mail. The 1processes provide the right answer and the 6processes
provide the error information.
I would like to know what may cause this? Errors in programming?
_____
From: jayesh at mcs.anl.gov
To: playcsw1984 at hotmail.com
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Date: Wed, 30 Jul 2008 11:43:16 -0500
Hi,
The difference in size could be due to different settings in the compiler
(or a newer/older version of the compiler). As long as you can run your code
you should be ok.
The firewall could be prompting the user (notifying the user) but not
blocking the program (Check the firewall settings).
Regards,
Jayesh
_____
From: 陈斯韦 [mailto:playcsw1984 at hotmail.com]
Sent: Wednesday, July 30, 2008 11:28 AM
To: Jayesh Krishna
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
I will try it. Thank you for your help.
Another question is I find the example cpi.exe is 84kb and I use the code(
provided in the example icpi.c ) to rebuild it in a new project. The size of
the cpi.exe is only 29kb. What may cause this? When I debug it, the firewall
stop the Process Launcher for MPICH2 applications. But the program still can
run.
_____
From: jayesh at mcs.anl.gov
To: playcsw1984 at hotmail.com
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Date: Tue, 29 Jul 2008 10:44:03 -0500
Hi,
Did you try adding mpiexec.exe (process launcher) & smpd.exe (process
manager) into the 'Exceptions' list of the windows firewall (You might also
want to add your executable to the list) ?
Regards,
Jayesh
_____
From: 陈斯韦 [mailto:playcsw1984 at hotmail.com]
Sent: Tuesday, July 29, 2008 8:08 AM
To: Jayesh Krishna
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Thank you for your help.
Now I am able to run the cpi.exe. But I meet another problem.
I am a postgraduate student and doing my final project in the lab of the
university. In this way I do not have the admin account of the computer. And
my teacher do not allowed to turn of the firewall because of the potential
damage to the computer. Since this, every time I run one program, I need my
teacher to unblock the program. ( The program is blocked by the windows
firewall. we can set to allowed it as a trust program to run) . It became
very inconvenient that every time I do a little change and create a new exe
my teacher should help me to unblock it.
I would like to know is there any settings that can help me to set with out
turn of the windows firewall but can run the program? My computer's
operation is Windows XP Profession.
And the firewall is the windows firewall.
The firewall block ' Process Launcher for MPICH2 applications'
I am looking forward to hearing from you.
_____
From: jayesh at mcs.anl.gov
To: playcsw1984 at hotmail.com
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Date: Thu, 24 Jul 2008 10:34:31 -0500
Hi,
You should disable any firewalls running in your system (see section on
using windows firewall with MPICH2 in the windows developer's guide,
available at
http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs,
in section 'Runtime environment' --> Firewall)
Try running your MPI program from the command prompt (mpiexec -n 2
hello.exe).
Regards,
Jayesh
_____
From: 陈斯韦 [mailto:playcsw1984 at hotmail.com]
Sent: Thursday, July 24, 2008 4:36 AM
To: Jayesh Krishna
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
HI,
When I use wmpiexec to run my example project. I click the Show command and
the command is as follows : 'C:\Program Files\MPICH2\bin\mpiexec.exe' -n
-noprompt 'C:\Documents and Settings\sc\My
Documents\hello\bin\Debug\hello.exe'
But when I click the Execute button. No response. Then I click Run in a
separate window. The window will flash and then closed, no error
information. (The window only exist for about one second..)
I would like to know what will cause this? A firewall?
Thank you for your help.
_____
From: jayesh at mcs.anl.gov
To: playcsw1984 at hotmail.com
CC: mpich-discuss at mcs.anl.gov
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Date: Wed, 23 Jul 2008 10:30:22 -0500
Hi,
Yes, you can run your MPI program using the mpiexec wrapper (wmpiexec). The
mpiexec wrapper invokes (under the hood) mpiexec to launch your MPI job
(Click on 'Show command' button to see the full command).
(PS: Click on 'Run in a separate window' option if you program requires
input from stdin)
Regards,
Jayesh
_____
From: 陈斯韦 [mailto:playcsw1984 at hotmail.com]
Sent: Wednesday, July 23, 2008 7:20 AM
To: Jayesh Krishna
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Thank you for your help.
I would like to know whether I can run the processes in this way:
I debug a program and get a .exe .For example, hello.exe.
Then I use the MPICHEXEC wrapper to load the hello.exe and choose number of
process equal to 2. Then press execute to run the program?
Can I get an answer in this way?
Regards
_____
From: jayesh at mcs.anl.gov
To: playcsw1984 at hotmail.com
CC: mpich-discuss at mcs.anl.gov
Subject: RE: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Date: Wed, 16 Jul 2008 09:33:01 -0500
Hi,
Please let us know how you are launching your MPI job. To run an MPI
program, cpi.exe, with 2 processes you should run,
mpiexec -n 2 cpi.exe
The error you see below should occur only if you try to run your MPI job
without the job launcher, mpiexec. The error message still indicates that
mpiexec is not found in the PATH. Where you able to set PATH to mpiexec
correctly (Able to run mpiexec without specifying the full path)? Please
provide us as much details as possible.
Regards,
Jayesh
_____
From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of ???
Sent: Wednesday, July 16, 2008 6:17 AM
To: mpich-discuss at mcs.anl.gov
Subject: [mpich-discuss] Errors in running example code in MPICH2 under
windows
Dear Sir ,
This is the first time I use MPICH2. I install the software and the SMPD.exe
is in the process list.
But when I run the example code I meet errors as follows:
[0] Error creating mpiexec process...2
[0] launchMpiexecProcess failed
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init_thread(294): Initialization failed
MPID_Init(82)........: channel initialization failed
MPID_Init(383).......: PMI_Get_id returned 1
I tried placed the mpiexec together with the example cpde but it does no
help.
Then I use wmpiexec to run the programme. But when I press the execute
button . The empty command window will flash for a second and then
disappeared, and now error message.
I would like to know what may cause this problem.
I read some suggestion that ' The error indicates that the path for the job
launcher (mpiexec) was not found.
Please set the path for MPICH2 binaries on your system ('Control
Panel' --> System --> Advanced --> 'Environment Variables' => Add MPICH2
bin to the PATH). Now open a new command prompt, try running mpiexec from
command prompt (to make sure that you have the PATH set correctly) and then
run your code.'
And tried it but it does no help.
I am looking forward to hearing from you.
_____
MSN上小游戏,工作休闲两不误! 马上就开始玩! <http://im.live.cn/minigame>
_____
轻松把Hotmail下载到本地,试试 Windows Live Mail。 立即尝试! <http://get.live.com/wl/all>
_____
MSN上小游戏,工作休闲两不误! 马上就开始玩! <http://im.live.cn/minigame>
_____
使用新一代 Windows Live Messenger 轻松交流和共享! 立即体验! <http://im.live.cn/>
_____
使用新一代 Windows Live Messenger 轻松交流和共享! 立即体验! <http://im.live.cn/>
_____
MSN上小游戏,工作休闲两不误! 马上就开始玩! <http://im.live.cn/minigame>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080818/f03ac522/attachment.htm>
More information about the mpich-discuss
mailing list