[mpich-discuss] MPICH2 On Windows 64 bit and Mingw-w64 compilers

Arun Murthy arun.murthy at fluidyn.com
Tue Jan 11 02:12:01 CST 2011


Hi Jayesh

I opened CMD with "Run as administrator" and did the following:

C:\tmp>"C:\Program Files\MPICH2\bin"\mpiexec.exe -n 2 -localroot 
c:\tmp\icpi.exe

Job terminated with following error message:

"
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)
unable to post a write for the next command,
sock error: Error = 10058

unable to post a write of the closed_request command to the parent context.
unable to close the stdin context.
state machine failed.
"

C:\tmp>"C:\Program Files\MPICH2\bin"\mpiexec.exe -n 2 -localroot 
-exitcodes c:\tmp\icpi.exe

Job terminated with following error message:

"
rank: node: exit code
0: Arun-PC: -1073741819
1: Arun-PC: -1073741819
"

C:\tmp>"C:\Program Files\MPICH2\bin"\smpd -status

"
smpd running on Arun-PC
"

Thanks for your help.

Best Regards
Arun


On 10-01-2011 22:08, Jayesh Krishna wrote:
> 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<arun.murthy at fluidyn.com>
> To: Jayesh Krishna<jayesh at mcs.anl.gov>
> Cc: mpich-discuss at mcs.anl.gov
> 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:
>> 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"<arun.murthy at fluidyn.com>
>> To: mpich-discuss at mcs.anl.gov
>> 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
>> mpich-discuss at mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>
>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110111/c3ac0bc6/attachment-0001.htm>


More information about the mpich-discuss mailing list