Skip to content
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

Enable MacOS, Sonoma (OS version 14.x) building of FMS and MAPL #43726

Merged
merged 1 commit into from May 1, 2024

Conversation

srherbener
Copy link
Contributor

@srherbener srherbener commented Apr 18, 2024

This PR updates the package.py scripts for the FMS and MAPL packages. These changes enabled the building of FMS and MAPL on the MacOS, Sonoma (14) with the Xcode 15.1 (apple clang 15.0.0) tools.

The primary update is to remove the usage of the MPI wrappers to build FMS and MAPL. Since these two packages use CMake, the wrappers should not be necessary. However, I realize that there were likely reasons for using the wrappers so this solution may not be viable.

I think if we can get by without the MPI wrappers, great! But I'm fine with keeping the MPI wrappers and open to other solutions. In this case, perhaps a conditional (based on MacOS for example) removal of the wrappers would be workable?

Partially addresses JCSDA/spack-stack/pull/1083. Still need to get these changes merged into the JCSDA spack fork to complete the resolution of this issue.

…e were causing

builds to fail on MacOS and CMake appears to handle the build fine without the mpi wrappers.
Copy link

spackbot-app bot commented Apr 18, 2024

@rem1776 can you review this PR?

This PR modifies the following package(s), for which you are listed as a maintainer:

  • fms
  • mapl

Copy link
Contributor

@mathomp4 mathomp4 left a comment

Choose a reason for hiding this comment

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

MAPL changes look good.

Copy link
Contributor

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

Yes please! The less over-linking, the better.

@AlexanderRichert-NOAA
Copy link
Contributor

I want to test these on a couple systems to be safe, I'll update once that's done. 🙏

@srherbener
Copy link
Contributor Author

Please note that I tested this only on my Mac laptop using the JCSDA jedi-bundle, which exercises FMS but does not exercise MAPL, and I realize that this is not very extensive. Thank you @AlexanderRichert-NOAA for expanding the testing coverage!

Copy link
Contributor

@AlexanderRichert-NOAA AlexanderRichert-NOAA left a comment

Choose a reason for hiding this comment

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

Successfully built on a few systems, including one using cray wrappers.

@climbfuji climbfuji requested review from tldahlgren and removed request for scheibelp April 30, 2024 21:54
@tldahlgren tldahlgren merged commit d21aa1c into spack:develop May 1, 2024
13 checks passed
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.

None yet

5 participants