<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jayesh<br>
<br>
I opened CMD with "Run as administrator" and did the following:<br>
<br>
C:\tmp>"C:\Program Files\MPICH2\bin"\mpiexec.exe -n 2 -localroot
c:\tmp\icpi.exe<br>
<br>
Job terminated with following error message:<br>
<br>
"<br>
<font color="#3333ff">Error posting writev, A request to send or
receive data was disallowed because the socket had already been
shut down in that direction with a previous shutdown call.(10058)<br>
unable to post a write for the next command,<br>
sock error: Error = 10058<br>
<br>
unable to post a write of the closed_request command to the parent
context.<br>
unable to close the stdin context.<br>
state machine failed.</font><br>
"<br>
<br>
C:\tmp>"C:\Program Files\MPICH2\bin"\mpiexec.exe -n 2 -localroot
-exitcodes c:\tmp\icpi.exe<br>
<br>
Job terminated with following error message:<br>
<br>
"<br>
<font color="#000099"></font><font color="#3333ff">rank: node: exit
code<br>
0: Arun-PC: -1073741819<br>
1: Arun-PC: -1073741819<br>
"<br>
</font><br>
C:\tmp>"C:\Program Files\MPICH2\bin"\smpd -status<br>
<br>
"<br>
<font color="#3333ff">smpd running on Arun-PC</font><br>
"<br>
<br>
Thanks for your help.<br>
<pre wrap="">
Best Regards
Arun</pre>
<br>
On 10-01-2011 22:08, Jayesh Krishna wrote:
<blockquote
cite="mid:878726069.44907.1294677485851.JavaMail.root@zimbra.anl.gov"
type="cite">
<pre wrap="">Hi,
Can you try running the job from an administrator command prompt (Note that opening a command prompt from an administrator account does not give you an admin command prompt. Right-click on the command prompt icon and select "Run as administrator" to get an admin command prompt) and see if it works ?
Can you also check the status of the MPICH2 process manager (Type "smpd -status" at the command prompt)?
Regards,
Jayesh
----- Original Message -----
From: Arun Murthy <a class="moz-txt-link-rfc2396E" href="mailto:arun.murthy@fluidyn.com"><arun.murthy@fluidyn.com></a>
To: Jayesh Krishna <a class="moz-txt-link-rfc2396E" href="mailto:jayesh@mcs.anl.gov"><jayesh@mcs.anl.gov></a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a>
Sent: Mon, 10 Jan 2011 01:33:41 -0600 (CST)
Subject: Re: [mpich-discuss] MPICH2 On Windows 64 bit and Mingw-w64 compilers
Hi Jayesh
I tried that. It did not help. Here is the response:
"
C:\tmp>"C:\Program Files\MPICH2\bin"\mpiexec.exe -n 2 -localroot icpi.exe
Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\6308
registry key, error 5, Access is denied.
Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\808
registry k ey, error 5, Access is denied.
"
When I killed the job by <CTRL> C, the following messages appeared:
"
mpiexec aborting job...
received suspend command for a pmi context that doesn't exist: unmatched
id = 1
job aborted:
rank: node: exit code[: error message]
0: Arun-PC: -1073741819: mpiexec aborting job
1: Arun-PC: -1073741819
Terminate batch job (Y/N)? y
"
When I tried the same thing on the pre-built "cpi.exe", I get the same
messages that I got with "icpi.exe", but it still works:
"
C:\tmp>"C:\Program Files\MPICH2\bin"\mpiexec.exe -n 2 -localroot cpi
Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\4544
registry key, error 5, Access is denied.
Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\7288
registry key, error 5, Access is denied.
Enter the number of intervals: (0 quits) 9
pi is approximately 3.1426214565576127, Error is 0.0010288029678196
wall clock time = 0.000077
Enter the number of intervals: (0 quits)
"
When I killed this job by <CTRL> C, the following messages appeared:
"
mpiexec aborting job...
SuspendThread failed with error 5 for process
0:33FB034C-A281-4d45-9189-9DDCDC33C941:'cpi'
unable to suspend process.
unable to read the cmd header on the pmi context, Error = -1.
Error posting readv, An existing connection was forcibly closed by the
remote host.(10054)
SuspendThread failed with error 5 for process
1:33FB034C-A281-4d45-9189-9DDCDC33C941:'cpi'
unable to suspend process.
unable to read the cmd header on the pmi context, Error = -1.
Error posting readv, An existing connection was forcibly closed by the
remote host.(10054)
received kill command for a pmi context that doesn't exist: unmatched id = 0
job aborted:
rank: node: exit code[: error message]
0: Arun-PC: 123: process 0 exited without calling finalize
1: Arun-PC: 123: process 1 exited without calling finalize
Terminate batch job (Y/N)? y
"
Does it have anything to do with an incorrect node (-1073741819) on
which mpiexec is trying to launch the processes? Thanks for your help.
Best Regards
Arun
On 07-01-2011 22:11, Jayesh Krishna wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Can you try running your program with the "-localroot" option and let us know if it works for you (mpiexec -n 2 -localroot icpi.exe)?
Regards,
Jayesh
----- Original Message -----
From: "Arun Murthy"<a class="moz-txt-link-rfc2396E" href="mailto:arun.murthy@fluidyn.com"><arun.murthy@fluidyn.com></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a>
Sent: Friday, January 7, 2011 12:56:17 AM
Subject: [mpich-discuss] MPICH2 On Windows 64 bit and Mingw-w64 compilers
Hi
I am trying to use MPICH2 on Windows 7 64bit (installed from
mpich2-1.3.1-win-x86-64.msi) along with Mingw-w64 compiler suite
(mingw-w64-1.0-bin_i686-mingw_20101129).
I tried to compile-link the example "icpi.c" using following command:
C:\MinGW\mingw-w64-1.0-bin_i686-mingw_20101129\bin\x86_64-w64-mingw32-gcc.exe
-I"C:\Program Files\MPICH2\include" icpi.c -L"C:\Program
Files\MPICH2\lib" -lmpi -o icpi.exe
I could get the executable, but it doesn't run with any number of
processors. When run with mpiexec, it aborts without any message. I
could run the pre-built "cpi.exe" with any number of CPU's. I don't have
MS Visual Studio on my machine. Can anyone help?
By the way, the 32-bit version of MPICH1 (1.2.5 SDK.gcc) works well with
Mingw-w32 compiler suite.
Thanks
Arun
_______________________________________________
mpich-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
</body>
</html>