[MPI3 Fortran] MPI_SIZEOF question
Rasmussen, Craig E
rasmussn at lanl.gov
Tue May 31 13:50:35 CDT 2011
STORAGE_SIZE returns the size in bits so I'm not sure it is appropriate. I think C_SIZEOF would be better although it only works with interoperable types which I think is OK for MPI-3. But if the object is an array, C_SIZEOF returns the length (in bytes) of the entire array. I'm not sure what value MPI_SIZEOF is supposed to provide. Is it related to C?
-craig
On May 23, 2011, at 12:16 PM, Jeff Squyres wrote:
> On May 23, 2011, at 10:47 AM, Bill Long wrote:
>
>> Ultimately, I'd be inclined to just scrap the routine as redundant.
>
> This function has been there since 1996 (i.e., MPI-2).
>
> Is it now obsolete? I.e., the Fortran instrinsic STORAGE_SIZE suitable? If so, we can deprecate the old MPI_SIZEOF function and not put it in the new MPI-3 fortran module... but it still has to be implemented in the existing MPI-2 fortran "use mpi" module (even if it's deprecated).
>
> Can you answer Rolf's questions? I'm particularly interested in the fortran wrapper questions.
>
> --
> Jeff Squyres
> jsquyres at cisco.com
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
>
> _______________________________________________
> mpi3-fortran mailing list
> mpi3-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-fortran
More information about the mpiwg-fortran
mailing list