On Fri, Nov 02, 2007 at 12:18:54PM +0100, Oleg Morajko wrote: > Is there any standard way of attaching/retrieving attributes to MPI_Request > object? > > Eg. Typically there are dynamic user data created when starting the > asynchronous operation and freed when it completes. It would be convenient > to associate them with the request object itself to simplify the code.
You might find generalized requests offer what you want if you don't mind spawning threads. You don't get to hook an attribute onto an MPI_Request object, but you do get a void * ponter which the implementation then associates with your user-defined request. This void * could be a datatype containing the orginali MPI_Request and your user data. ==rob -- Rob Latham Mathematics and Computer Science Division A215 0178 EA2D B059 8CDF Argonne National Lab, IL USA B29D F333 664A 4280 315B