Skip to content

Conversation

@hppritcha
Copy link
Member

@hppritcha hppritcha commented Dec 15, 2025

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 in that case 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

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 <howardp@lanl.gov>
@hppritcha hppritcha force-pushed the big_count_and_i8_do_not_mix branch from 535d08f to 355d5ce Compare December 16, 2025 19:03
@hppritcha
Copy link
Member Author

@jsquyres check now.

@hppritcha hppritcha requested a review from jsquyres December 16, 2025 20:04
hppritcha added a commit to hppritcha/ompi that referenced this pull request Dec 16, 2025
related to open-mpi#13572

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
hppritcha added a commit to hppritcha/ompi that referenced this pull request Dec 17, 2025
related to open-mpi#13572

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
@hppritcha hppritcha merged commit f3486c6 into open-mpi:main Dec 17, 2025
20 checks passed
hppritcha added a commit to hppritcha/ompi that referenced this pull request Dec 17, 2025
related to open-mpi#13572

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
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