[mpich-discuss] [PATCH v2] test: add attrdeleteget, MPI_Attr_get called from delete_fn

Pavan Balaji balaji at mcs.anl.gov
Sat May 18 11:47:33 CDT 2013


On 05/18/2013 11:44 AM US Central Time, Jed Brown wrote:
> Pavan Balaji <balaji at mcs.anl.gov> writes:
> 
>> You want to call MPI_ATTR_GET on the communicator you are deleting?  How
>> is that a valid program?
> 
> The communicator shouldn't be invalidated until _after_ calling all the
> delete_fn, so it should still be safe to check attributes from
> delete_fn.

Can you point me to the appropriate location in the standard for this?
All I can find is:

"The comm_delete_attr_fn function is invoked when a communicator is
deleted by MPI_COMM_FREE or when a call is made explicitly to
MPI_COMM_DELETE_ATTR."

 -- Pavan

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji



More information about the discuss mailing list