<!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=252562117-04022009><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 class=252562117-04022009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=252562117-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 10:40 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] mpich problem....
net_send: could not write to fd=4,errno = 32<BR></FONT><BR></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></BLOCKQUOTE></BODY></HTML>