-
Notifications
You must be signed in to change notification settings - Fork 899
static libraries, F90 module, and alignment warnings #13043
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
Comments
We are getting similar reports from our PETSc users. Any idea on how to resolve this? |
Ubuntu linker is picky, I should be able to come up with a fix sometimes this week. |
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
May 4, 2025
Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
May 4, 2025
Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
May 4, 2025
Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
May 4, 2025
Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
May 4, 2025
Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
May 4, 2025
Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
May 4, 2025
Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
jsquyres
pushed a commit
to jsquyres/ompi
that referenced
this issue
May 5, 2025
Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
May 5, 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. Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
jsquyres
pushed a commit
to jsquyres/ompi
that referenced
this issue
May 6, 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. Refs open-mpi#13043 Thanks MJ Rutter for the report Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
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. Refs open-mpi#13043 Thanks MJ Rutter for the report back-ported from ec2b164 :bot:notacherrypick Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
@MJRutter @BarrySmith Sorry for the huge delay; looks like we have a fix for this now. It's merged on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I try to use static libraries with the F90 module, lots of warning messages about alignment result whenever code is compiled. These disappear with the F08 module. Is the use of static libraries and F90 fully supported?
OpenMPI 5.0.6 source download (and several earlier versions), Ubuntu 24.04, GCC 13.3, x86_64
gives many warnings from ld starting
The example code was
Switching to "use mpi_f08" seems to resolve the issue.
The text was updated successfully, but these errors were encountered: