Fortran: support for the mpi_f08 module - #411
Open
MarDiehl wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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