translating MPI_File objects between languages

David Taylor (taylor@Think.COM)
Wed, 23 Oct 96 16:20:23 EDT

One of the handle types mentioned in the miscellany chapter for MPI-2 is
MPI_FILE_HANDLE. And I agree that users will need the ability to
translate MPI_File objects between languages. But, if the I/O chapter
is layered on top of the rest of MPI, the core MPI doesn't know how to
do the translations of MPI_File objects between languages. Further,
whether MPI_File objects are pointers or ints might be different than
whether other MPI objects are pointers or ints.

Off hand I only see two solutions:

. spec'ing a function to allow registering translators for new
handle types and forcing the implementors of the i/o chapter to
always use the same choice -- pointers or ints -- as the core
MPI implementors
or
. having a different translation function for each object type.
You would then pass it an object of the requisite type and the
layered library would be responsible for its implementation.

I think the first choice is yukky. But, it feels too late to introduce
the number of functions implied by the second choice.

Comments?