Update mom5 SPR for new CMake build system#238
Conversation
Dropped support for access-esm1.5
|
@harshula, what would you like to do about the |
|
Hi @dougiesquire , Have a look at: https://github.com/spack/spack/blob/develop/var/spack/repos/spack_repo/builtin/packages/libxml2/package.py Spack documents how to do this: https://spack.readthedocs.io/en/latest/packaging_guide.html#multiple-build-systems |
TestingUses:
Summary of results:
|
|
Hi @dougiesquire , Thanks for implementing the |
TestingUses:
Summary of results:
Also: and both build successfully. |
@harshula really? Can we not just use an earlier tag of |
|
Hi @dougiesquire , As stated during the meeting, the point of adding CMake support to MOM5 was for long-term ACCESS-ESM1.6 support. We can't rely on using an older version of |
|
Why do we need mkmf support when I can reproduce the released models with the CMake build system? |
|
Hi @dougiesquire , Can you reproduce the binaries? |
I'm guessing no because they were released with |
|
Hi @dougiesquire , If you don't have time to revert back the support for Makefile builds of released models, just rename your MOM5 SPR (e.g. Mom5Cmake) and continue work. We can then integrate your CMake changes back to the MOM5 SPR without breaking the existing Makefile support. |
|
There are a number of nuances to what you're asking. Can we chat about this? |
|
Summary: We should have a workable build_system() call with the appropriate conditional() calls. |
|
Notes from chat:
|
|
This is ready for review @harshula |
|
Hi @dougiesquire , The changes are progressing well! Can you please put back the comments related to the setup() function and revert back to |
I changed the name to
Apologies, this must have been my editor |
|
Done in 1517db9 |
|
This pull request has been mentioned on ACCESS Hive Community Forum. There might be relevant details there: |
harshula
left a comment
There was a problem hiding this comment.
Looks good! Are you intentionally removing restart_repro variant for CMake builds?
Co-authored-by: Harshula Jayasuriya <[email protected]>
Yes that's intentional. The CMake build always builds with the |
|
@harshula once you're happy I'll do one final set of tests with the most recent version before merging |
Co-authored-by: Harshula Jayasuriya <[email protected]>
harshula
left a comment
There was a problem hiding this comment.
Thanks for making these changes! Please remember to squash merge.
TestingUses:
CMake build system:
Makefile build system:
Also: and both build successfully with CMake. |
|
Hi @dougiesquire , You should have cleaned up the commit message. |
This PR updates the mom5 SPR for the new CMake build system.
Currently I have completely dropped support for theUPDATE: no longer true. This SPR now supports two build systems:access-esm1.5version. We need to discuss how we want to handle this version since it is built from a different branch and is not built with CMake.Makefile build supporting:
CMake build supporting:
Build will default to CMake where possible