Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] MPI_Irecv, MPI_Wait and MPI_Iprobe
From: Mudassar Majeed (mudassarm30_at_[hidden])
Date: 2011-11-20 07:39:07


Dear people,                        I have a scenario as shown below, please tell me if it is possible or not ------------------------------------------------------------------ while(!IsDone) { // some code here MPI_Irecv( .......... ); // some code here MPI_Iprobe( ........., &is_there_a_message); if(is_there_a_message)     MPI_Wait( ....... ); // move forward ... some other code here.... } -------------------------------------------------------------------- My scenario is an asynchronous communication where some other process may or may not send a message to this process, will MPI_Iprobe find out whether it is necessary to call MPI_Wait() or not ? because if we do not do this the process may start waiting for a message that may not come and will block. regards, Mudassar