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

Pavan Balaji balaji at mcs.anl.gov
Sat May 18 16:39:37 CDT 2013


On 05/18/2013 04:33 PM US Central Time, Pavan Balaji wrote:
> 
> On 05/18/2013 04:19 PM US Central Time, Fab Tillier wrote:
>> Pavan Balaji wrote on Sat, 18 May 2013 at 14:02:17
>>
>>> In MPICH, here's what we do:
>>>
>>> 1. Run the user callback.  If it returned an error, return that error to
>>> the user.
>>
>> So you don't actually free the attribute if the callback succeeds?
> 
> If the callback succeeds and the ref-count on the communicator is zero,
> we free the attributes.

... and ref-count on the attributes (not communicator) ...

Gawd!

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



More information about the discuss mailing list