[mpich-discuss] How to use non-blocking send/receive without calling MPI_Wait

Jeff Squyres (jsquyres) jsquyres at cisco.com
Fri Apr 3 17:23:36 CDT 2015


On Apr 3, 2015, at 6:09 PM, Balaji, Pavan <balaji at anl.gov> wrote:
> 
> I didn't look through the video, but what you are saying is not true.  You can free the request in the application (this simply reduces the reference count to that request).  MPI will still maintain one reference count to the request and will only free it when the data transfer completes.

That's correct.  The point of that blog entry is that you have to tell MPI that you're done with a request somehow, otherwise MPI *has* to keep those resources allocated.

MPI_TEST*/MPI_WAIT* are the usual ways to do this.  MPI_REQUEST_FREE is also a valid method, but, as has been stated, isn't advisable.

-- 
Jeff Squyres
jsquyres at cisco.com
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/

_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list