[mpich-discuss] Failed to allocate memory for an unexpected message

Luiz Carlos da Costa Junior lcjunior at ufrj.br
Fri Nov 1 19:14:55 CDT 2013


Thanks


On 1 November 2013 22:00, Pavan Balaji <balaji at mcs.anl.gov> wrote:

>
> On Nov 1, 2013, at 4:30 PM, Luiz Carlos da Costa Junior <lcjunior at ufrj.br>
> wrote:
> > I understand that I will have to have N buffers, one for each posted
> MPI_Irecv. I will also have to TEST (using MPI_PROBE or MPI_WAITANY) until
> a message comes. The result of this test will identify which one of the
> posted MPI_Irecv has actually received the message and then process the
> right buffer. Is this correct?
>
> Correct.
>
> > Should I have to change anything at the sender's processes?
>
> Likely not.  But you need to think through your algorithm to confirm that.
>
> > At the end, my receiver process receives a message identifying that it
> should exit this routine. What should I do with the already posted
> MPI_Irecv's? Can I cancel them?
>
> Yes, you can with MPI_CANCEL.
>
>   —- Pavan
>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20131101/247d0657/attachment.html>


More information about the discuss mailing list