[MPI3 Fortran] Argument data sizes
Aleksandar Donev
donev1 at llnl.gov
Thu Sep 18 15:57:37 CDT 2008
On Thursday 18 September 2008 13:42, Craig Rasmussen wrote:
> 4. Use default integer, write the wrapper in Fortran, and use
> assignment to cast the integer to C_INT.
I vote for this, but please delete everything after the first comma. Your
OpenMPI implementation can do that under the covers---we are talking about a
standard here and all it says is "default integer" (deal with it somehow
please).
> I vote #1 as it provides the most flexibility to the implementer and
> the compiler will give an error if the programmer does something stupid.
Not really. Fortran does not have stronly-typed type-aliases. So if
MPI_SIZE_KIND happens to be equal to default integer, a code will work. It
will break with -i8. It does force a careful programmer to write the kind
explicitly, but bad programmers and existing codes will still be just
as "stupid".
Best,
Aleks
More information about the mpiwg-fortran
mailing list