1
1
openmpi/ompi/mpi/fortran
Kurita, Takehiro f9ae932bfd Fortran: Enable using LOGICAL parameter in MPI extensions.
If a subroutine of the Fortran `use-mpi-f08` binding in an MPI extension
have a `LOGICAL` parameter and no `TYPE(MPI_Status)` parameter,
it needs to use the `mpi_ext` module and call its corresponding subroutine
in the `mpif-h` directory, as explained in
`ompi/mpi/fortran/use-mpi-f08/mpi-f-interfaces-bind.h`.
However, as shown in the figure below, the required directories are dependent
on each other, and "Can't open module file" error occurs at build time.

             ompi/mpiext/{extension name}/use-mpi-f08
                A                               |
                |                               |
                |                               V
   ompi/mpi/fortran/use-mpi-f08  <---  ompi/mpi/fortran/mpiext (mpi_ext.mod)

In order to solve this problem, change the configuration and the build order.
- divide Fortran extension directory (`ompi/mpi/fortran/mpiext`)
  into the directories for `use-mpi` and for `use-mpi-08`
    - `ompi/mpi/fortran/mpiext-use-mpi`     : for `use-mpi` (mpi_ext.mod)
    - `ompi/mpi/fortran/mpiext-use-mpi-f08` : for `use-mpi-08` (mpi_f08_ext.mod)

- change to the following build order about Fortran `use-mpi` and
  `use-mpi-f08` bindings in `ompi`
    1. mpi_ext bindings of MPI extensions (`mpiext/{extension name}/use-mpi` directory)
    2. Fortran use-mpi (`mpi/fortran/use-mpi-[ignore-]tkr` directory)
    3. Fortran extension for use-mpi (`mpi/fortran/mpiext-use-mpi` directory)
    4. Fortran use-mpi-f08 modules only (`mpi/fortran/use-mpi-f08/mod` directory)
    5. mpi_f08_ext bindings of MPI extensions (`mpiext/{extension name}/use-mpi-f08` directory)
    6. Fortran use-mpi-f08 (`mpi/fortran/use-mpi-f08` directory)
    7. Fortran extension for use-mpi-f08 (`mpi/fortran/mpiext-use-mpi-f08` directory)

Signed-off-by: Kurita, Takehiro <fj6370fp@aa.jp.fujitsu.com>
2018-06-07 15:02:17 +09:00
..
base mpi/fortran: use conformant dummy names for Fortran bindings 2018-05-02 09:42:19 +09:00
mpiext-use-mpi Fortran: Enable using LOGICAL parameter in MPI extensions. 2018-06-07 15:02:17 +09:00
mpiext-use-mpi-f08 Fortran: Enable using LOGICAL parameter in MPI extensions. 2018-06-07 15:02:17 +09:00
mpif-h fortran/mpif-h: fix MPI1 compatibility Makefile 2018-06-01 09:52:22 +09:00
use-mpi-f08 ompi: disable functions removed from MPI-3.0 by default 2018-05-31 09:44:19 -06:00
use-mpi-ignore-tkr ompi: disable functions removed from MPI-3.0 by default 2018-05-31 09:44:19 -06:00
use-mpi-tkr ompi: disable functions removed from MPI-3.0 by default 2018-05-31 09:44:19 -06:00
c_to_integer_kind_mapping.pdf Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
common_sym_whitelist.txt Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
configure-fortran-output-bottom.h Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
configure-fortran-output.h.in ompi: disable functions removed from MPI-3.0 by default 2018-05-31 09:44:19 -06:00