-
Notifications
You must be signed in to change notification settings - Fork 5
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
Spack Components for OM3 #171
base: main
Are you sure you want to change the base?
Conversation
Contributes to #163 |
This is still a draft but is ready for a review for style / approach. I've only implemented for CICE6 at this point, see the example deployment in ACCESS-NRI/ACCESS-OM3#35 |
In deployment, I have been trying to build 'access3-exe' with 'configurations=CICE6' When concretising, the requested configuration gets added to the default:
The default in the access3-exe spack package is for 'configurations = CICE6-WW3,MOM6-CICE6,MOM6-CICE6-WW3' and so the CICE6 gets added to this list rather than replacing it. There doesn't appear to be a way in spack to remove variants, when The spack MultiValuedVariant class only has an append function (no remove function ...), see https://github.com/spack/spack/blob/2447d16e55d800e6a9cb82a645ab9edfd24f08ac/lib/spack/spack/variant.py#L503 |
description="Install component libraries" | ||
) | ||
variant("openmp", default=False, description="Enable OpenMP") | ||
variant("mom_symmetric", default=False, description="Use symmetric memory in MOM6") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably make mom_symmetric True by default, need to confirm. See COSIMA/access-om3#255
This is an extremely draft collection of changes to
spack-packages
to build OM3 by component.I've been building access3-share with '+install_libraries' in the spec, I haven't looked at building with an executable yet
I've been using these git versions :
https://github.com/ACCESS-NRI/CICE/tree/5-port_cmake_build
and
https://github.com/ACCESS-NRI/access3-share/tree/share_prototype
Example deployment: ACCESS-NRI/ACCESS-OM3#35