Skip to content

Conversation

@hppritcha
Copy link
Member

Without this patch, one can successfully configure OMPI with fortran compiler flags that lead to compilation failures when building the mpi_f08 module. This can happen when the default integer size is the same as KIND=MPI_KIND_COUNT.

Add a configure check to error out at that state with a hopefully useful error message:

checking if Fortran compiler can compile interface containing MPI_KIND_COUNT arguments ... no configure: error: The MPI_F08 module cannot be compiled using configure Fortran commpiler options. Either change compiler options or use --enable-mpi-fortran=usempi

(cherry picked from commit 355d5ce)

Without this patch, one can successfully configure OMPI with fortran compiler flags
that lead to compilation failures when building the mpi_f08 module.
This can happen when the default integer size is the same as KIND=MPI_KIND_COUNT.

Add a configure check to error out at that state with a hopefully useful error message:

checking if Fortran compiler can compile interface containing MPI_KIND_COUNT arguments ... no
configure: error: The MPI_F08 module cannot be compiled using configure Fortran commpiler options.  Either change compiler options or use --enable-mpi-fortran=usempi

Signed-off-by: Howard Pritchard <[email protected]>
(cherry picked from commit 355d5ce)
@github-actions github-actions bot added this to the v6.0.0 milestone Dec 22, 2025
@jsquyres jsquyres changed the title MPI_F08: error out if fortran FCFLAGs do not work with big count v6.0.x: MPI_F08: error out if fortran FCFLAGs do not work with big count Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants