I forgot to say that i installed MPICH on the other PC too in the same folder. After this i shared this folder to the second PC.<br><br>Thanks<br><br><div><span class="gmail_quote">2007/1/15, Luiz Mendes <<a href="mailto:luizmendesw@gmail.com">
luizmendesw@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;">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><div><span class="e" id="q_11026fe791683eae_1">
<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></span></div></div><br>
</blockquote></div><br>