[mpich-discuss] Existence of something like MPI_Type_compare()?

Jed Brown jedbrown at mcs.anl.gov
Tue Dec 13 13:19:42 CST 2011


On Tue, Dec 13, 2011 at 11:09, Dave Goodell <goodell at mcs.anl.gov> wrote:

> Some relevant reading on datatype equivalence:
> http://www.mcs.anl.gov/~goodell/pdfs/eurompi2010-type-marshalling.pdf
>
>
Thanks Dave. According to this, "Two datatypes are equivalent if they
appear to have been created with the same sequence of calls (and arguments)
and thus have the same typemap."

I'm looking for, at a minimum, equivalence modulo MPI_Type_dup(), and
preferably equivalence in that they describe the same types and layout (but
may not have been created with the same sequence of calls). The latter may
be too hard, and I'm willing to live with equivalence modulo MPI_Type_dup()
so I'm writing that case now.

It does seem like a natural function to have available though, as a natural
analogue to MPI_Comm_compare().


> Let me dig around and see if I can find the code that we developed for
> that paper.  It didn't strictly compare types, but I'm sure that the
> marshalling code could be easily adapted to do so.
>
> AFAIK there is nothing available in the MPI standard nor as an MPICH2
> extension that would give you exactly what you want.  Everything would need
> to be based on MPI_Type_get_envelope/_get_contents.
>

Okay, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111213/d24f9d31/attachment.htm>


More information about the mpich-discuss mailing list