Skip to content

v5.0.x: fortran: fix common symbol sizes and alignments #13240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v5.0.x
Choose a base branch
from

Conversation

ggouaillardet
Copy link
Contributor

@ggouaillardet ggouaillardet commented May 8, 2025

with mpif-h and usempi, MPI constants (e.g. MPI_COMM_WORLD) are all parts of a unique common block. Fortran compilers generally have alignment requirements for these (16 with gfortran, 32 with ifort or 64 with nvfortran to name a few), so pass these requirements to the actual symbols that are defined in the C code to make pick linkers (e.g. ubuntu) happy pandas. Such linkers also complain about the size of MPI_STATUS, so define these are arrays intead of pointer.

Fixes #13043

Thanks MJ Rutter for the report

back-ported from ec2b164

:bot:notacherrypick

with mpif-h and usempi, MPI constants (e.g. MPI_COMM_WORLD)
are all parts of a unique common block. Fortran compilers
generally have alignment requirements for these (16 with gfortran,
32 with ifort or 64 with nvfortran to name a few), so pass
these requirements to the actual symbols that are defined in
the C code to make pick linkers (e.g. ubuntu) happy pandas.
Such linkers also complain about the size of MPI_STATUS, so define
these are arrays intead of pointer.

Refs open-mpi#13043

Thanks MJ Rutter for the report

back-ported from ec2b164

:bot:notacherrypick

Signed-off-by: Gilles Gouaillardet <[email protected]>
@ggouaillardet ggouaillardet requested a review from jsquyres May 8, 2025 05:06
@github-actions github-actions bot added this to the v5.0.8 milestone May 8, 2025
@jsquyres jsquyres changed the title fortran: fix common symbol sizes and alignments v5.0.x: fortran: fix common symbol sizes and alignments May 8, 2025
@jsquyres jsquyres marked this pull request as ready for review May 8, 2025 14:01
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