-
Notifications
You must be signed in to change notification settings - Fork 1
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
Changing model versions is onerous and error prone #10
Comments
So, this is a change to the |
Yes it would be a change to config branches, but only I'm not saying we should do this immediately, but before we need to change ACCESS-OM2 versions again. |
Would value your opinions @minghangli-uni and @dougiesquire as you've just gone through this update process. |
Relevant: COSIMA/access-om3#133 |
@aidanheerdegen In case the required changes to payu are too complex, I've recently realised there is another way of simplifying the exec path, which is to use the spack environment view. In the view:
default:
root: $spack/../opt/views/access-om3-0.x.0
projections:
all: '{architecture} Then the exec path in the payu config can be set to: exec: /g/data/ik11/spack/0.21.2/opt/views/access-om3-0.x.0/linux-rocky8-cascadelake/bin/access-om3-MOM6-CICE6 This is not as neat as doing simply |
That is cool. Is it necessary to |
No. You don't even have to load any modules, because spack injects all the rpaths into the executable... |
If we did use If there was a machine readable version of the |
What is the status of this issue, given the above linked payu issue is merged? |
It is now substantially less onerous and requires only changing the version of the loaded module in the |
I think we can call this solved. |
In the process of changing model executables to spack deployed versions (or just changing between existing spack deployed versions) it has become clear that changing the full executable paths is onerous and somewhat error prone.
The paths are long and complicated. They need to be copied from the
spack.location
file of a deployment, and they are versioned for the model component code and so do not show the ACCESS-OM2 version from which they came. It is theaccess-om2
package that contains the overall model versioning. For example, when updating to the deployment which introduced restart reproducibility all the model component versions were unchanged, though the build hashes were different, because they used an updated version ofspack-packages
andspack-config
.I think we should move to using generic model names (without paths) in the
exe
fields and use the module system to inject the correct directories into thePATH
environment variable, e.g.This has a few benefits:
The rationale for using full paths was that it less error prone. I no longer think that is the case.
Note this would require this
payu
issue to be closed with an updatepayu-org/payu#379
Note also the details of how to specify the binary paths might depend on the final design of the
payu
update.The text was updated successfully, but these errors were encountered: