<!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>&nbsp;</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>&nbsp;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>&lt;<A 
  href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</A>&gt;</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>&nbsp;</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>&nbsp;/opt/mpich/gnu/bin/mpirun -v -np 2 &nbsp;&nbsp; 
      -machinefile program<BR><BR>but i get this <B>error:</B><BR><BR>i'm 
      process 0 de 2...<BR>ROOT:&nbsp; trying to send 
      message...<BR>p0_26706:&nbsp; 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 
      &lt;stdio.h&gt;<BR>#include "mpi.h"<BR><BR><BR>int main(int argc, char 
      **argv){<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; int 
      message,<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
      rank,<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; size,<BR>&nbsp;&nbsp;&nbsp; 
      &nbsp;&nbsp;&nbsp; i,<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tag = 
      0,<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; namelen;<BR>&nbsp;&nbsp;&nbsp; 
      <BR>&nbsp;&nbsp;&nbsp; char 
      processor_name[MPI_MAX_PROCESSOR_NAME];<BR>&nbsp;&nbsp;&nbsp; 
      &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; MPI_Status 
      status;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; MPI_Init(&amp;argc, 
      &amp;argv);<BR>&nbsp;&nbsp;&nbsp; MPI_Comm_rank(MPI_COMM_WORLD, 
      &amp;rank);<BR>&nbsp;&nbsp;&nbsp; MPI_Comm_size(MPI_COMM_WORLD, 
      &amp;size);<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; printf("i'm 
      process %d de %d...\n", rank, size);<BR>&nbsp;&nbsp;&nbsp; 
      <BR>&nbsp;&nbsp;&nbsp; MPI_Barrier(MPI_COMM_WORLD);<BR>&nbsp;&nbsp;&nbsp; 
      <BR>&nbsp;&nbsp;&nbsp; if(rank == 0){<BR>&nbsp;&nbsp;&nbsp; 
      &nbsp;&nbsp;&nbsp; message = 1;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
      for (i=1; i&lt;size; i++){<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
      &nbsp;&nbsp;&nbsp; printf("ROOT: trying to send 
      message...\n");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
      &nbsp;&nbsp;&nbsp; MPI_Ssend(&amp;message, 1, MPI_INT, i, tag, 
      MPI_COMM_WORLD);&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
      <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; 
      }else{<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf("SLAVE %d: trying 
      to receive message...\n", rank);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
      MPI_Get_processor_name(processor_name,&amp;namelen);<BR>&nbsp;&nbsp;&nbsp; 
      &nbsp;&nbsp;&nbsp; MPI_Recv(&amp;message, 1, MPI_INT, MPI_ANY_SOURCE, tag 
      , MPI_COMM_WORLD, &amp;status);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
      printf("SLAVE %d MAQUINA %s: receive message %d\n ",rank,&nbsp; 
      processor_name, message);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; 
      <BR>&nbsp;&nbsp;&nbsp; MPI_Finalize();&nbsp;&nbsp;&nbsp; 
      <BR>&nbsp;&nbsp;&nbsp; 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>