<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Michael,<br>
<br>
Did you switch off User Account Control in Windows 7 ? I think I had
the same probs and solved them taking care of UAC.<br>
<br>
Jose<br>
<br>
On 17-11-2011 5:35, Michael Warthon wrote:
<blockquote
cite="mid:CAPk8hv3KRHXu=5RKi4f9atPTgQTRqpPhy85F2pDOtbWAkTqCcQ@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
I am still getting the same error even after reinstalling SMPD. The
MPICH2 that I have installed is the 64-bit version. My computer has
windows 7, is a 64-bit operating system, and has an intel core i5 CPU
processor. The installer I used mpich2-1.4.1p1-win-x86-64.msi is the
correct one right?<br>
<br>
<div class="gmail_quote">On Thu, Nov 17, 2011 at 12:22 PM, Jayesh
Krishna <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>></span>
wrote:<br>
<blockquote
style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"
class="gmail_quote">Hi,<br>
The error message does not appear with the "-verbose" option (The
launch mechanism with a "-verbose" option is different though).<br>
I think that the issue is still that MPICH2 was not installed
correctly in your system (I verified that 1.4.1p1 works correctly -
without error msgs - on our Srv2008). Please follow the steps below and
let us know if it works for you,<br>
<br>
# Right-click on the command prompt icon and select "Run as
administrator" to open an admin command prompt<br>
# From the admin command prompt, uninstall SMPD using the "-uninstall"
option (Type "smpd -uninstall")<br>
# From the admin command prompt, install SMPD using the "-install"
option (Type "smpd -install")<br>
# Try running mpiexec from the admin command prompt (Type "mpiexec -n 2
hostname")<br>
# Try running mpiexec from a normal command prompt (Type "mpiexec -n 2
hostname")<br>
<br>
Let us know the results.<br>
<div class="im"><br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" <<a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a>><br>
To: "Jayesh Krishna" <<a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>><br>
Cc: <a moz-do-not-send="true" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
</div>
<div>
<div class="h5">Sent: Thursday, November 17, 2011 10:10:28 AM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
<br>
Alright. Attached is the text file with the complete message from the
command: "c:\Program Files\MPICH2\bin\mpiexec" -verbose -n 2 hostname<br>
<br>
I tried the other command and for some reason I am actually able to run
the program even when the errors occur. This is the response I got when
running the command:<br>
<br>
C:\Users\Mike>"c:\Program Files\MPICH2\bin\mpiexec" -n 2 "C:\Program
Files\MPICH<br>
2\examples\cpi.exe"<br>
error closing the left context socket: Error = -1<br>
Enter the number of intervals: (0 quits) 100<br>
pi is approximately 3.1416009869231241, Error is 0.0000083333333309<br>
wall clock time = 0.000541<br>
Enter the number of intervals: (0 quits) 10<br>
pi is approximately 3.1424259850010983, Error is 0.0008333314113051<br>
wall clock time = 0.000047<br>
Enter the number of intervals: (0 quits) 0<br>
op_read error on left context: Error = -1<br>
unable to read the cmd header on the left context, Error = -1<br>
.<br>
Error posting readv, An existing connection was forcibly closed by the
remote ho<br>
st.(10054)<br>
<br>
<br>
On Thu, Nov 17, 2011 at 9:56 AM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Hi,<br>
Yes, please give us the output of the command with "-verbose" turned on.<br>
And for these tests, run mpiexec with the complete path ("c:\Program
Files\MPICH2\bin\mpiexec" -verbose -n 2 hostname). Do you get the same
error message when executing cpi ("c:\Program Files\MPICH2\bin\mpiexec"
-n 2 "C:\Program Files\MPICH2\examples\cpi.exe")?<br>
<br>
<br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
To: "Jayesh Krishna" < <a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> ><br>
Cc: <a moz-do-not-send="true" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<br>
<br>
<br>
Sent: Thursday, November 17, 2011 9:42:42 AM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
<br>
For each command, this is the entire response that I get:<br>
<br>
<br>
C:\Users\Mike>mpiexec -validate<br>
SUCCESS<br>
<br>
C:\Users\Mike>mpiexec -n 2 hostname<br>
error closing the left context socket: Error = -1<br>
<br>
Mike-PC<br>
Mike-PC<br>
error closing the left context socket: Error = -1<br>
<br>
C:\Users\Mike><br>
<br>
<br>
Did you want me to use the verbose option?<br>
<br>
On Thu, Nov 17, 2011 at 9:21 AM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Hi,<br>
Please copy-paste the command and the response (the complete message)
in your email.<br>
Are you able to validate the registered username/password (Type
"mpiexec -validate" and it should return "SUCCESS")?<br>
<br>
<br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
To: "Jayesh Krishna" < <a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> ><br>
<br>
<br>
<br>
Cc: <a moz-do-not-send="true" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Sent: Thursday, November 17, 2011 7:50:25 AM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
Ok. I have checked and yes smpd is running and I have given a
sufficient username and password so that mpiexec will run. Now I am
getting a new error when executing mpiexec -n 2 hostname where it is
giving me this response:<br>
<br>
error closing the left context socket: Error = -1<br>
<br>
<br>
On Wed, Nov 16, 2011 at 2:21 PM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Hi,<br>
<br>
1. Make sure that the process manager, smpd, is running in your system
(Look in the task manager/Process Explorer to see if there is a service
named smpd running. Alternately you can run "smpd -status" to check if
smpd is running)<br>
<br>
2. Run a simple non-MPI program like hostname from the command prompt
using mpiexec (Type "mpiexec -n 2 hostname" ). When prompted for
username/password give a valid Windows username/password.<br>
If mpiexec gives you an error, type "mpiexec -remove" to remove the
existing registered username/password and then type "mpiexec -register"
to register a new/valid Windows username/password. Re-run mpiexec.<br>
<br>
3. Run the sample MPI program, cpi.exe, provided with MPICH2 (mpiexec
-n 2 C:\Progra~1\MPICH2\examples\cpi.exe)<br>
<br>
>> I am getting an error when I look at the MPICH2 configurable
settings ...<br>
<br>
This is a known bug. Due to limited developer bandwidth we haven't been
able to address this issue yet.<br>
<br>
<br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
To: "Jayesh Krishna" < <a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> ><br>
<br>
Sent: Wednesday, November 16, 2011 12:27:01 PM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
<br>
<br>
Alright. I have reinstalled MPICH2 using the method in section 9.4.
However, I am not able to connect to the host it seems. I keep
receiving this message when trying to execute a program:<br>
<br>
<br>
<br>
Credentials for Mike rejected connecting to Mike-PC<br>
<br>
Aborting: Unable to connect to Mike-PC<br>
Also, I am getting an error when I look at the MPICH2 configurable
settings that says that MPICH2 is not installed or that it cannot query
the host.<br>
<br>
On Wed, Nov 16, 2011 at 9:35 AM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Hi,<br>
Looks like MPICH2 was not installed correctly in your system.<br>
Uninstall your existing version of MPICH2. Please follow the steps in
Section 9.4 (Not 9.1 - <a moz-do-not-send="true"
href="http://www.mcs.anl.gov/research/projects/mpich2/documentation/files/mpich2-1.4.1-installguide.pdf"
target="_blank">http://www.mcs.anl.gov/research/projects/mpich2/documentation/files/mpich2-1.4.1-installguide.pdf</a>
) of the installer's guide to install MPICH2.<br>
<br>
<br>
<br>
<br>
(PS: I am assuming that you have Win7/Srv2008/...)<br>
<br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
To: "Jayesh Krishna" < <a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> ><br>
<br>
<br>
<br>
Sent: Tuesday, November 15, 2011 9:04:57 PM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
<br>
Yeah it must have been that I got the installation mixed up. I
downloaded the windows installer and it finally compiled. So progess
has been made as now I am getting this error when trying to run
hello.exe:<br>
<br>
<br>
<br>
Error while connecting to host, No connection could be made because the
target m<br>
<br>
achine actively refused it. (10061)<br>
<br>
Connect on sock (host=localhost, port=8676) failed, exhaused all end
points<br>
<br>
Unable to connect to 'localhost:8676',<br>
<br>
sock error: Error = -1<br>
<br>
<br>
On Tue, Nov 15, 2011 at 5:12 PM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Hi,<br>
There are two ways you can use MPICH2 on Windows+cygwin,<br>
<br>
# Download MPICH2 source compile/install it on Cygwin. Use mpicc to
compile and use mpiexec (from this installation - NOT the one available
with Windows installer) to run your program.<br>
<br>
# Download MPICH2 Windows installer, install MPICH2 (using installer
gui). Use the cygwin/gcc libs provided with the Windows installation to
compile your code. Use mpiexec from the Windows installation to run
your job.<br>
<br>
Looks like you are mixing the approaches.<br>
<br>
<br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
To: "Jayesh Krishna" < <a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> ><br>
<br>
<br>
<br>
Sent: Tuesday, November 15, 2011 1:03:02 PM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
<br>
I was using mpicc in order to compile it. Unfortunately I am still not
able to compile the code even with the command you gave me. I used:<br>
<br>
gcc -l/mpich_install/include -L/mpich_install/lib hello.c -lmpi<br>
<br>
I still received the same error. Did I install it incorrectly maybe?<br>
<br>
On Tue, Nov 15, 2011 at 12:42 PM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Hi,<br>
How were you compiling your code before ?<br>
A command similar to,<br>
<br>
"gcc -I/cygdrive/c/Progra~1/MPICH2/include
-L/cygdrive/c/Progra~1/MPICH2/lib hello.c -o hello.exe -lmpi"<br>
<br>
should work.<br>
<br>
<br>
Regards,<br>
jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
To: "Jayesh Krishna" < <a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> ><br>
<br>
<br>
<br>
Sent: Tuesday, November 15, 2011 12:18:43 PM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
<br>
Alright. Well I tried it and for some reason it is not able to see the
library.<br>
I used the command:<br>
gcc -g hello.c -L\mpich_install\lib -lmpi<br>
<br>
It ended up giving me an error saying:<br>
fatal error: mpi.h: No such file or directory<br>
<br>
On Tue, Nov 15, 2011 at 10:32 AM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Hi,<br>
Try using gcc (usual gcc stuff: specify include dirs using "-I", lib
dirs using "-L") to compile your code and link it with "-lmpi" .<br>
<br>
<br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
To: "Jayesh Krishna" < <a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> ><br>
<br>
<br>
<br>
Sent: Tuesday, November 15, 2011 10:16:00 AM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
<br>
What would be the correct command to use in cygwin in order to compile
the code? Just want to make sure that I actually compiled it correctly.<br>
<br>
<br>
On Tue, Nov 15, 2011 at 10:10 AM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Hi,<br>
I just tried compiling your code with cygwin gcc (3.4.4) + MPICH2
1.4.1p1 gcc libs and it worked for me (No seg fault, gives the expected
output).<br>
Make sure that you are using the correct header files and libraries
(MPICH2 libs and headers) when you compile your code.<br>
<br>
Regards,<br>
<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
<br>
<br>
<br>
To: "Jayesh Krishna" < <a moz-do-not-send="true"
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> ><br>
Sent: Tuesday, November 15, 2011 9:53:32 AM<br>
Subject: Re: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
Ah sorry. I forgot to include the p1 at the end of it. I am using
mpich2 1.4.1p1<br>
<br>
<br>
On Tue, Nov 15, 2011 at 9:44 AM, Jayesh Krishna < <a
moz-do-not-send="true" href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>
> wrote:<br>
<br>
<br>
Did you try the latest stable release (1.4.1p1)?<br>
<br>
-Jayesh<br>
<br>
<br>
----- Original Message -----<br>
From: "Michael Warthon" < <a moz-do-not-send="true"
href="mailto:michael.warthon@upr.edu">michael.warthon@upr.edu</a> ><br>
To: <a moz-do-not-send="true" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Sent: Monday, November 14, 2011 7:54:43 PM<br>
Subject: [mpich-discuss] Segmentation Fault when running any
application.<br>
<br>
<br>
<br>
Hello,<br>
<br>
I am new to MPI and I went and installed mpich2 1.4.1 onto a windows
system that is being used through cygwin. I have compiled the code that
simply prints the process and rank as shown below.<br>
<br>
<br>
<br>
#include <stdio.h><br>
#include <mpi.h><br>
<br>
int main( int argc, char *argv[]) {<br>
<br>
int numprocs, rank, namelen;<br>
char processor_name[MPI_MAX_PROCESSOR_NAME];<br>
<br>
MPI_Init(&argc, &argv);<br>
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);<br>
MPI_Comm_rank(MPI_COMM_WORLD, &rank);<br>
MPI_Get_processor_name(processor_name, &namelen);<br>
<br>
printf( "Process %d on %s out of %d\n" , rank, processor_name,
numprocs);<br>
<br>
MPI_Finalize();<br>
}<br>
<br>
Nothing too complicated. However, I still receive an error from the
command line in cygwin that simply reads segmentation fault: (core
dumped). The command I used was:<br>
<br>
mpiexec -n 1 a.exe<br>
<br>
No matter what executable I try to run, I still receive the same error.
Any help regarding this would be greatly appreciated!<br>
_______________________________________________<br>
mpich-discuss mailing list <a moz-do-not-send="true"
href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a moz-do-not-send="true"
href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss"
target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mpich-discuss mailing list <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a>
To manage subscription options or unsubscribe:
<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>
<br>
<pre class="moz-signature" cols="72">--
Dr. Jose G. Marques
Reactor Manager
Instituto Tecnologico e Nuclear phone: (+351) 219 946 115
Estrada Nacional 10 fax: (+351) 219 941 039
P-2686-953 Sacavem, Portugal</pre>
</body>
</html>