thank you all for your help..it does work :)<br><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 10:19 PM, Darius Buntinas <span dir="ltr"><<a href="mailto:buntinas@mcs.anl.gov">buntinas@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">As Bill mentioned, the only way to implement a timeout is using an Irecv, then keep polling on the request till it completes or you time out, in which case you would cancel the request.<br>
<br>
MPICH2 1.3 has features to allow the application to survive process and communication failures. Use the -disable-auto-cleanup flag for mpiexec to prevent it from killing your entire job when a process fails. Then set the error handler to MPI_ERRORS_RETURN, so that the MPI functions will return an error code rather than aborting when a fault happens. If you do this, you'll be able to continue communicating with non-failed processes. The only catch is that you can't use collective operations on communicators that contain failed processes.<br>
<br>
FWIW, the MPI Forum is working on defining the behavior of the MPI library when faults occur.<br>
<br>
I hope this helps.<br>
<br>
-d<br>
<div class="im"><br>
On Oct 27, 2010, at 8:17 AM, Harun Raşit ER wrote:<br>
<br>
> I have 2 nodes. One of them sends a message to another and waits for reply. But the other node is not alive (may be the network is crashed). So I wanna wait for reply just for 3 seconds. After that, it will say that the other node is crashed and it will go on its task. But I cannot achieve this simple task:)<br>
><br>
> please help!<br>
</div>> _______________________________________________<br>
> mpich-discuss mailing list<br>
<div class="im">> <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
</div>> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<div class="im"><a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
</div><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br>