Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI devel] Problems with Connect/Accept and Disconnect
From: Suraj Prabhakaran (suraj.prabhakaran_at_[hidden])
Date: 2010-12-17 07:28:25


I have been having some problems with connect and disconnect between two
processes. The processes seem to be indefinitely blocking at
Connect/Accept stage or at Disconnect stage. For example

Process A
     MPI_Comm_accept(... &b_comm); // -----> (1)
     // Do something1
     MPI_Comm_disconnect(&b_comm); // ------> (2)
     // Do something2


Process B
     MPI_Comm_connect(... &a_comm); // -----> (1)
     // Do something1
     MPI_Comm_disconnect(&a_comm); // ------> (2)
     // Do something2

In the above scenario, in a perfect case where A reaches (1) without any
problems, **sometimes** B blocks at its (1) indefinitely. All arguments
passed to both the functions are perfect.
Again, **sometimes** one of them block infinitely at (2) while the other
goes on to do the something2. This could only be a problem at the
application level only if the one that blocks indefinitely is always the
same but it is not so. Sometimes A blocks and B is busy doing something2
or A is busy doing its something2 while B blocks. Perhaps there is any
work around for this already?