[MPIWG Fortran] Another MPI_SIZEOF question

Junchao Zhang jczhang at mcs.anl.gov
Fri Jun 6 09:19:57 CDT 2014


Let me paste an email I got a few days ago from a mailing list of mpich :)


----------------

Hi Pavan,



did you ever implement mpi_sizeof in fortran 77 bindings? I get it
undefined:



$ ifort test.f -lfmpich -lmpich

/tmp/ifort1AJSk8.o: In function `MAIN__':

test.f:(.text+0x5b): undefined reference to `mpi_sizeof_'



Best regards,



Michael.

--Junchao Zhang


On Fri, Jun 6, 2014 at 9:11 AM, Jeff Squyres (jsquyres) <jsquyres at cisco.com>
wrote:

> It strikes me that the current MPI_SIZEOF text does not limit this
> function to the mpi or mpi_f08 modules, meaning that it needs to be
> supported/available in mpif.h as well.
>
> Since SIZEOF can only be implemented via overloaded procedures, this means
> that implementations have to put an INTERFACE block with the overloaded
> procedures for MPI_SIZEOF in mpif.h.  Yowza!  This goes against a
> long-standing tradition of not including procedure prototypes in mpif.h.
>
> If I'm interpreting this properly, it looks like neither Open MPI nor
> MPICH do this correctly.
>
> Am I correct in this deduction?
>
> Random side note: this makes me wonder how much MPI_SIZEOF is really
> used...
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpi-forum.org/pipermail/mpiwg-fortran/attachments/20140606/fd1f5345/attachment-0001.html>


More information about the mpiwg-fortran mailing list