<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=954253317-04022009><FONT face=Arial
color=#0000ff size=2>Can't say. You should hopefully get a better error message
if you use MPICH2.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=954253317-04022009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=954253317-04022009><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Luís
Miranda<BR><B>Sent:</B> Wednesday, February 04, 2009 11:30 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] mpich
problem.... net_send: could not write tofd=4, errno = 32<BR></FONT><BR></DIV>
<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">thakur@mcs.anl.gov</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>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 face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2>
<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 10:40
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>
[mpich-discuss] mpich problem.... net_send: could not write to fd=4,errno
= 32<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>
<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></BLOCKQUOTE></BODY></HTML>