Ok. Thank you. <br><br><div class="gmail_quote">2009/2/4 Rajeev Thakur <span dir="ltr"><<a href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Can't say. You should hopefully get a better error message
if you use MPICH2.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Rajeev</font></span></div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><div class="Ih2E3d"><b>From:</b> <a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a>
[mailto:<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a>] <b>On Behalf Of </b>Luís
Miranda<br></div><b>Sent:</b> Wednesday, February 04, 2009 11:30 AM<div class="Ih2E3d"><br><b>To:</b>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br></div><b>Subject:</b> Re: [mpich-discuss] mpich
problem.... net_send: could not write tofd=4, errno = 32<br></font><br></div><div><div></div><div class="Wj3C7c">
<div></div> Could it possible be anything related with network. I'm
running this on a cluster...<br><br>
<div class="gmail_quote">2009/2/4 Rajeev Thakur <span dir="ltr"><<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Your
code looks innocuous enough. Not sure why it should fail. I would suggest
using MPICH2 instead of MPICH-1. MPICH-1 is an old implementation that is
not actively supported.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Rajeev</font></span></div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma">
<div><b>From:</b> <a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a> [mailto:<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a>] <b>On Behalf Of
</b>Luís Miranda<br></div><b>Sent:</b> Wednesday, February 04, 2009 10:40
AM
<div><br><b>To:</b> <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br></div><b>Subject:</b>
[mpich-discuss] mpich problem.... net_send: could not write to fd=4,errno
= 32<br></font><br></div>
<div>
<div></div>
<div>
<div></div><br>
<div class="gmail_quote"><br><br>Hi. I'm trying to run
this:<br> /opt/mpich/gnu/bin/mpirun -v -np 2
-machinefile program<br><br>but i get this <b>error:</b><br><br>i'm
process 0 de 2...<br>ROOT: trying to send
message...<br>p0_26706: p4_error: interrupt SIGSEGV: 11<br>Killed by
signal 2.<br>p0_26706: (0.113281) net_send: could not write to fd=4, errno
= 32<br><br><br><b>This is the code:</b><br><br>#include
<stdio.h><br>#include "mpi.h"<br><br><br>int main(int argc, char
**argv){<br> <br> int
message,<br>
rank,<br> size,<br>
i,<br> tag =
0,<br> namelen;<br>
<br> char
processor_name[MPI_MAX_PROCESSOR_NAME];<br>
<br> MPI_Status
status;<br> <br> MPI_Init(&argc,
&argv);<br> MPI_Comm_rank(MPI_COMM_WORLD,
&rank);<br> MPI_Comm_size(MPI_COMM_WORLD,
&size);<br> <br> printf("i'm
process %d de %d...\n", rank, size);<br>
<br> MPI_Barrier(MPI_COMM_WORLD);<br>
<br> if(rank == 0){<br>
message = 1;<br>
for (i=1; i<size; i++){<br>
printf("ROOT: trying to send
message...\n");<br>
MPI_Ssend(&message, 1, MPI_INT, i, tag,
MPI_COMM_WORLD);
<br> }<br>
}else{<br> printf("SLAVE %d: trying
to receive message...\n", rank);<br>
MPI_Get_processor_name(processor_name,&namelen);<br>
MPI_Recv(&message, 1, MPI_INT, MPI_ANY_SOURCE, tag
, MPI_COMM_WORLD, &status);<br>
printf("SLAVE %d MAQUINA %s: receive message %d\n ",rank,
processor_name, message);<br> }<br>
<br> MPI_Finalize();
<br> return 0;<br>}<br><br><b>And this is my machine
file:</b><br><br><a href="http://beta.something.com" target="_blank">beta.something.com</a><br>compute-1-0.local<br>compute-1-1.local<br>compute-1-2.local<br><br>Any
solution?<br><br><br>Thank
you.<br></div><br></div></div></blockquote></div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br>