Hi Geoff, Rajeev, Antony<br><br>Yes, i forgot to write. <br>But problems continuing to be the same with MPI_Finalize().<br><br>After, I was editing that code and i saw that if a process execute MPI_Recv() that it wasnt destinated to itselft the problem arises.
<br><br>well, i was thinking that if a process analize one MPI_Recv not destinated to it, the process simply would ignore it, but this, until this moment, it seems to be wrong.<br><br>thanks, sorry for foolish errors.<br>
Luiz Mendes<br><br><br><div><span class="gmail_quote">2007/1/15, Rajeev Thakur <<a href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>>:</span><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" face="Arial" size="2">You need to add an MPI_Finalize.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">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 face="Tahoma" size="2"><b>From:</b> <a href="mailto:owner-mpich-discuss@mcs.anl.gov" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">owner-mpich-discuss@mcs.anl.gov</a>
[mailto:<a href="mailto:owner-mpich-discuss@mcs.anl.gov" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">owner-mpich-discuss@mcs.anl.gov</a>] <b>On Behalf Of </b>Luiz
Mendes<br><b>Sent:</b> Monday, January 15, 2007 12:22 PM<br><b>To:</b>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mpich-discuss@mcs.anl.gov</a><br><b>Cc:</b> Geoff Jacobs<br><b>Subject:</b> Re:
[MPICH] problem net_send: could not write to fd=5, errno =
32<br></font><br></div><div><span class="q" id="q_110272d104e1df7a_1">
<div></div>Hi Geoff,<br><br>i dont know Geoff, the code is below:<br><br><span style="font-style: italic;">#include "mpi.h" </span><br style="font-style: italic;"><span style="font-style: italic;">#include
<stdio.h> </span><br style="font-style: italic;"><span style="font-style: italic;">#include <string.h> </span><br style="font-style: italic;"><span style="font-style: italic;">int main(int argc,
char* argv[])</span><br style="font-style: italic;"><span style="font-style: italic;">{</span><br style="font-style: italic;"><span style="font-style: italic;"> char mensagem[32];</span><br style="font-style: italic;">
<span style="font-style: italic;">
int numprocs, rank; </span><br style="font-style: italic;"><span style="font-style: italic;"> MPI_Status stat;</span><br style="font-style: italic;"><span style="font-style: italic;">
MPI_Init(&argc,&argv); </span><br style="font-style: italic;"><span style="font-style: italic;">
MPI_Comm_size(MPI_COMM_WORLD,&numprocs); </span><br style="font-style: italic;"><span style="font-style: italic;">
MPI_Comm_rank(MPI_COMM_WORLD,&rank);</span><br style="font-style: italic;"><span style="font-style: italic;">
if(rank==0)</span><br style="font-style: italic;"><span style="font-style: italic;"> {</span><br style="font-style: italic;"><span style="font-style: italic;">
sprintf(mensagem, "Message Text"); </span><br style="font-style: italic;"><span style="font-style: italic;">
MPI_Send(mensagem, 32, MPI_CHAR, 1, 0,
MPI_COMM_WORLD);</span><br style="font-style: italic;"><span style="font-style: italic;"> }</span> <br style="font-style: italic;"><span style="font-style: italic;">
else</span><br style="font-style: italic;"><span style="font-style: italic;"> {</span><br style="font-style: italic;"><span style="font-style: italic;">
MPI_Recv(mensagem, 32, MPI_CHAR, 0, 0, MPI_COMM_WORLD,
&stat);</span><br style="font-style: italic;"><span style="font-style: italic;"></span><span style="font-style: italic;"> }</span><br style="font-style: italic;"><span style="font-style: italic;">}<br><br>when i
run with mpirun -np 2 it works, and when i run with mpirun -np 3 i doesnt run
and relates the following message below<br><br><span style="font-style: italic;">p2_23214: p4_error: net_recv read:
probable EOF on socket: 1 <br>bm_list_23184: (0.507200) wakeup_slave: unable
to interrupt slave 0 pid 23183<br>rm_l_1_23213: (0.257494) net_send: could not
write to fd=6, errno = 9<br>rm_l_1_23213: p4_error: net_send write:
-1<br> p4_error: latest msg from perror: Bad file descriptor
<br>rm_l_2_23236: (0.045590) net_send: could not write to fd=5, errno =
32<br>p2_23214: (2.046247) net_send: could not write to fd=5, errno =
32<br><br><br>What it could be?<br><br>I installed MPICH 1.2.7p1 with
mode p4 i think. I am trying to run it on two PCS. I installed MPI in
/usr/share/MPI-1 folder and share this one by NFS server with another PC.
<br><br>Well i was trying to run another standard example simpleio.c, and it
doesnt store things in other PC.<br><br>What is happening?<br><span style="font-style: italic;"></span><br>Thanks, <br>Luiz
Mendes<br></span></span><br>
<div><span class="gmail_quote">2007/1/15, Geoff Jacobs <<a href="mailto:gdjacobs@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gdjacobs@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Luiz
Mendes wrote:<br>> HI all,<br>><br>> i would like to know whats the
reason for this error<br>><br>> net_send: could not write to fd=5,
errno = 32<br>><br>> what should i do to correct this? I searched for
this error in internet <br>> but i didnt find anything
about.<br>><br>> Its strange, because this error is caused by the
increase of number of<br>> processes in the execution of mpi
program.<br>><br>> Could you help me?<br>> <br>> Thanks<br>>
Luiz Mendes<br>Segfault?<br><br>--<br>Geoffrey D. Jacobs<br><br>Go to the
Chinese Restaurant,<br>Order the
Special<br></blockquote></div><br></span></div></blockquote></div>
</blockquote></div><br>