In the snippet you posted you can see that the return value from the BMI
interface's post_recv() is returned, so if you post_recv returns 1, that
will get passed back up. In that way BMI supports immediate completion. It
may be that some code, like the pingpong test program, doesn't check for
immediate completion. Does that make sense? If there are places in the main
code path that you think are not checking for immediate completion that
should be, let us know.

Out of curiosity, can you share what additional interface you're adding to
BMI?

Thanks,
Michael

On Tue, Aug 2, 2011 at 8:56 AM, Михаил Гильмендинов <[email protected]> wrote:

> I am interesting in possibility of immediate completion for just
> BMI_post_recv and other BMI recv functions. I can implement immediate
> completion for my bmi method but i am not sure that generic BMI interface
> supports it.
>
>
> 02 августа 2011, 16:37 от "Atchley, Scott" <[email protected]>:
>
>  On Aug 2, 2011, at 4:51 AM, Михаил Гильмендинов wrote:
>
> > Hi!
> >
> > I am implementing bmi method. Can anyone explain how works immediate
> completion with post_recv?
> > Here is excerpt from bmi-design.pdf (can be found in
> path_to_pvfs2_src/doc/design):
> >
> > We therefore allow immediate completion from any post function. Immediate
> completion is indicated from post functions
> > by a return value of one. BMI library users should always check this
> return value so that they are aware of
> > opportunities to skip the test phase of communication.
>
> I can't speak for all the methods, but the MX method does not support any
> immediate completion for sends or recvs due to potential races in the
> implementation. I do not think the IB method allows it either but I defer to
> others.
>
> Scott
>
>
>
> _______________________________________________
> Pvfs2-developers mailing list
> [email protected]
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>
>
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to