[MPIWG Fortran] Another MPI_SIZEOF question
Jeff Hammond
jeff.science at gmail.com
Mon Jun 9 19:39:40 CDT 2014
On Mon, Jun 9, 2014 at 5:31 PM, Jeff Squyres (jsquyres)
<jsquyres at cisco.com> wrote:
> On Jun 6, 2014, at 9:27 PM, William Gropp <wgropp at illinois.edu> wrote:
>
>> There's no (small) errata. The Forum decided that MPI would no longer support Fortran 77 (and this was pretty clear from the discussions).
>
> To be clear: MPI has *never* supported Fortran 77.
We should stop being language nazis and just accept "Fortran 77" to
mean what people intend, which is legacy Fortran, e.g. Fortran codes
that use mpif.h rather than one of the modules.
Jeff
>> In MPI-2, MPI_SIZEOF was part of the extended support; the basic support did not include it and thus mpif.h could be implemented with Fortran 77 (see page 291, 10.2.4 in MPI-2.0).
>
> Ah, good point.
>
>> This is no longer true; see 17.1.4 (mpif.h) which says the second set of function prototypes must be supported for all MPI functions, and page 621, where MPI_SIZEOF has a second set of function prototypes. There are other references to overloading in mpif.h; see, for example, page 339, which would require an MPI implementation to provide different mpif.h files depending on which level of Fortran support is provided by the compiler (which might depend on a compiler switch!).
>
> Yeah, I kinda came to that same conclusion over the weekend (that OMPI's MPI_SIZEOF support in mpif.h would have to depend on which Fortran compiler is used). Urrrgh...
>
> --
> Jeff Squyres
> jsquyres at cisco.com
> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
>
> _______________________________________________
> mpiwg-fortran mailing list
> mpiwg-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-fortran
--
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
More information about the mpiwg-fortran
mailing list