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

Jed Brown jedbrown at mcs.anl.gov
Sat May 18 11:36:41 CDT 2013


Pavan Balaji <balaji at mcs.anl.gov> writes:

> Hi Jed,
>
> You should use MPI_COMM_CREATE_KEYVAL and MPI_COMM_GET_ATTR.
> KEYVAL_CREATE and ATTR_GET are deprecated.

I used the MPI-1 terminology because our code maintains compatibility
(mostly because old MVAPICH is common on RHEL systems).

> I'm not sure I understand the program.  If the comm is invalidated
> before the delete_fn is called, this is erroneous.  

Yes, with MS-MPI, the comm passed to delete_fn is invalid, as evidenced
by MPI_Attr_get failing.

> But if it is invalidated after the delete_fn is called, this is valid.
> So what exactly are you trying to do?

We just wanted to call MPI_Attr_get inside the delete_fn.  This test is
just a minimal test case for that.



More information about the discuss mailing list