[MPI3 Fortran] Results of San Jose Forum meeting
N.M. Maclaren
nmm1 at cam.ac.uk
Sat Mar 13 03:13:35 CST 2010
On Mar 13 2010, Rolf Rabenseifner wrote:
>
>a short question: If an MPI library implementation declares the
>MPI routines as bind C, is then the internal call mechanism
>standardized?
Not at present, because the current BIND(C) mechanism isn't powerful
enough.
>Or identical with all C compilers because the handle call by
>reference for integers and structurs identical?
Not necessarily. In particular, you bring in the dreaded alignment
issue. While it does not say so, the C standard requires the
alignment of all structures to be a multiple of that of integers.
So a pointer to a structure starting with an integer can be cast to
a pointer to an integer, but not conversely.
Regards,
Nick Maclaren.
More information about the mpiwg-fortran
mailing list