Jeff Squyres
d7eaca83fa
Fortran: Fix MPI_SIZEOF. What a disaster. :-(
...
What started as a simple ticket ended up reaching the way up to the
MPI Forum.
It turns out that we are supposed to have MPI_SIZEOF for all Fortran
interfaces: mpif.h, the mpi module, and the mpi_f08 module.
It further turns out that to properly support MPI_SIZEOF, your Fortran
compiler *has* support the INTERFACE keyword and ISO_FORTRAN_ENV. We
can't use "ignore TKR" functionality, because the whole point of
MPI_SIZEOF is that the implementation knows what type was passed to it
("ignore TKR" functionality, by definition, throws that information
away). Hence, we have to have an MPI_SIZEOF interface+implementation
for all intrinsic types, kinds, and ranks.
This commit therefore adds a perl script that generates both the
interfaces and implementations for MPI_SIZEOF in each of mpif.h, the
mpi module, and mpi_f08 module (yay consolidation!).
The perl script uses the results of some new configure tests:
* check if the Fortran compiler supports the INTERFACE keyword
* check if the Fortran compiler supports ISO_FORTRAN_ENV
* find the max array rank (i.e., dimension) that the compiler supports
If the Fortran compiler supports both INTERFACE and ISO_FORTRAN_ENV,
then we'll build the MPI_SIZEOF interfaces. If not, we'll skip
MPI_SIZEOF in mpif.h and the mpi module. Note that we won't build the
mpi_f08 module -- to include the MPI_SIZEOF interfaces -- if the
Fortran compiler doesn't support INTERFACE, ISO_FORTRAN_ENV, and a
whole bunch of ther modern Fortran stuff.
Since MPI_SIZEOF interfaces are now generated by the perl script, this
commit also removes all the old MPI_SIZEOF implementations (which were
laden with a zillion #if blocks).
cmr=v1.8.3
This commit was SVN r32764.
2014-09-19 13:44:52 +00:00
..
2014-08-14 20:27:30 +00:00
2014-01-08 03:46:27 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-09-30 17:50:43 +00:00
2014-04-11 21:01:16 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2013-10-02 14:26:58 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-02 14:26:58 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2014-03-27 21:41:59 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-02 14:26:58 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-03-27 21:41:59 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2014-03-12 22:55:57 +00:00
2012-08-14 23:05:41 +00:00
2014-04-14 19:51:06 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-08-10 21:19:47 +00:00
2014-03-12 22:55:57 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-03-12 22:55:57 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-07-25 22:41:48 +00:00
2012-04-18 15:57:29 +00:00
2014-04-10 14:45:36 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2013-09-30 17:50:43 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-04-18 15:57:29 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2013-09-26 21:55:08 +00:00
2013-09-26 21:55:08 +00:00
2013-09-26 21:55:08 +00:00
2013-09-26 21:55:08 +00:00
2013-09-30 17:54:12 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-08-07 20:04:01 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-06-22 20:54:12 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-09-19 13:44:52 +00:00
2014-06-19 13:44:08 +00:00
2014-08-14 20:27:30 +00:00
2014-06-19 13:44:08 +00:00
2014-09-19 13:44:52 +00:00
2014-08-14 20:27:30 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-09-26 21:55:08 +00:00
2013-09-26 21:55:08 +00:00
2013-09-26 21:55:08 +00:00
2013-09-26 21:55:08 +00:00
2013-09-30 17:54:12 +00:00
2013-10-04 22:43:07 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-08-14 20:27:30 +00:00
2014-08-14 20:27:30 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-03-11 23:02:27 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2014-03-12 22:55:57 +00:00
2014-03-11 23:02:27 +00:00
2014-03-11 23:02:27 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2013-07-25 22:41:48 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2013-10-04 22:43:07 +00:00
2012-05-29 17:54:33 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-08-08 13:46:15 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-07-25 22:41:48 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-07-25 22:41:48 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-07-23 15:36:03 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-08-10 21:19:47 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-07-09 00:10:04 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2014-05-01 18:18:38 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-03-11 23:02:27 +00:00
2014-03-11 23:02:27 +00:00
2014-03-11 23:02:27 +00:00
2014-03-11 23:02:27 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2013-10-04 22:43:07 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-08-14 20:27:30 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00
2014-07-09 00:10:04 +00:00
2012-04-18 15:57:29 +00:00
2014-08-14 20:27:30 +00:00
2013-10-04 22:43:07 +00:00
2014-08-14 20:27:30 +00:00
2012-04-18 15:57:29 +00:00
2012-04-18 15:57:29 +00:00