Skip to content

Fortran: support for the mpi_f08 module - #411

Open
MarDiehl wants to merge 1 commit into
FFTW:masterfrom
MarDiehl:MarDiehl/F08-support
Open

Fortran: support for the mpi_f08 module#411
MarDiehl wants to merge 1 commit into
FFTW:masterfrom
MarDiehl:MarDiehl/F08-support

Conversation

@MarDiehl

@MarDiehl MarDiehl commented Jul 1, 2026

Copy link
Copy Markdown

current MPI implementations provide the mpi_f08 module which uses newer Fortran features. The current fftw3-mpi interfaces are incompatible because the communicator has changed from an integer to type(MPI_comm).

According to Jeff Hammond, only a syntax change is needed because "MPI object handles are properly typed and thus compilers will not accept erroneous usage. At the same time, MPI object handle types are interoperable with the old method, because the type contains the integer handle as its only member."
https://users.ugent.be/~kehoste/eum25/014_eum25_keynote_JeffHammond_MPI.pdf

With this change, a second set of MPI interfaces for Fortran with an f08 extension are generated. They can be used together with mpi_f08.

Note: This is a draft to have a base for discussion

current MPI implementations provide the mpi_f08 module which uses newer
Fortran features. The current fftw3-mpi interfaces are incompatible
because the communicator has changed from an integer to type(MPI_comm).

According to Jeff Hammond, only a syntax change is needed because
"MPI object handles are properly typed and thus compilers will not
accept erroneous usage. At the same time, MPI object handle types
are interoperable with the old method, because the type contains
the integer handle as its only member."
https://users.ugent.be/~kehoste/eum25/014_eum25_keynote_JeffHammond_MPI.pdf

With this change, a second set of MPI interfaces for Fortran with an f08
extension are generated. They can be used together with mpi_f08.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant