Skip to content

v5.0.x: Update opal_portable_platform_real.h from upstream gasnet#12830

Merged
janjust merged 1 commit intoopen-mpi:v5.0.xfrom
jsquyres:pr/v5.0.x/update-portable-platform.h
Sep 30, 2024
Merged

v5.0.x: Update opal_portable_platform_real.h from upstream gasnet#12830
janjust merged 1 commit intoopen-mpi:v5.0.xfrom
jsquyres:pr/v5.0.x/update-portable-platform.h

Conversation

@jsquyres
Copy link
Copy Markdown
Member

Pull update from
https://bitbucket.org/berkeleylab/gasnet/src/stable/other/gasnet_portable_platform.h at git hash a90966674. This update brings in two things:

  1. Remove the need for the #define workarounds in opal/include/opal/opal_portable_platform.h
  2. Remove all //-style comments, making this file safe to use with C89-style applications (per Non-compliant C90 comments at mpi.h file leads to compilation failure for codes compiled with gcc -ansi or -std=c90 flags #12710).

Many thanks to the gasnet team for including these changes in their upstream repo.

Note that we still need the #ifndef SIZEOF_VOID_P protection in mpi.h. This commit also makes a minor update in mpi.h[.in] to prefix an OMPI-specific #define with "OMPI_". No one has ever complained about this un-prefixed macro, but prefixing it it felt like the Right Thing to do while mucking around with other portable_platform stuff.

Signed-off-by: Jeff Squyres jeff@squyres.com
(cherry picked from commit 50c05da)


Refs #12710
Upstream gasnet PR where the changes went in: https://bitbucket.org/berkeleylab/gasnet/pull-requests/543

Pull update from
https://bitbucket.org/berkeleylab/gasnet/src/stable/other/gasnet_portable_platform.h
at git hash a90966674.  This update brings in two things:

1. Remove the need for the #define workarounds in
   opal/include/opal/opal_portable_platform.h
2. Remove all //-style comments, making this file safe to use with
   C89-style applications (per
   open-mpi#12710).

Many thanks to the gasnet team for including these changes in their
upstream repo.

Note that we still need the #ifndef SIZEOF_VOID_P protection in mpi.h.
This commit also makes a minor update in mpi.h[.in] to prefix an
OMPI-specific #define with "OMPI_".  No one has ever complained about
this un-prefixed macro, but prefixing it it felt like the Right Thing
to do while mucking around with other portable_platform stuff.

Signed-off-by: Jeff Squyres <jeff@squyres.com>
(cherry picked from commit 50c05da)
@jsquyres jsquyres requested a review from devreal September 29, 2024 14:45
@github-actions github-actions bot added this to the v5.0.6 milestone Sep 29, 2024
Copy link
Copy Markdown
Contributor

@devreal devreal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @jsquyres!

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.

3 participants