-
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 package to add build options for CICE5 in esm1.6 #173
Conversation
I think the issue is the use of strings as versions ... Reading the spack docs, on version comparison, I think 'access-esm1.6' is > 'access-cm2' because Reording the |
@harshula - I made the suggested changes, but it didn't generate the __targets correctly I moved the __targets to the build() step and now it works For access-om2, see the pre-release for this version of spack-packages: The pre-release folder contains the 4 expected cice5 executables for access-om2. The repro test for this is running. For the future access-esm1.6, in my local instance this works. It solves correctly (i.e. doesn't try to include libaccessom2 which is only needed for the master version ) :
and generates the one expected executable: cice_access-esm1.6_360x300_12x1_12p.exe |
New build is bitwise reproducible with the old, see ACCESS-NRI/access-om2-configs#151 (comment) |
Closes #156 |
Did it generate the targets correctly before you made the suggested changes? |
No - see first comment in the PR. |
Thanks for the clarification. It is best to avoid declaring member variables ( |
Ok thanks. The targets are only used in the build function, so it could just me a local |
No, it is also used in the |
Hi @ofa001 - just confirming a couple of science build settings for CICE5 in access-esm1.6 I have set these two lines: Zero layer ice: No BGC tracers: Is 5 thickness categories and 1 snow layer correct ? Do these two lines need changing?:
This is set to build with 12 tasks (to match esm1.5) but also will build a version with 16 tasks if needed. (Obviously these can be refined in the future). |
@harshula this is ready for review. Produced two binaries expected:
|
HI @anton-seaice @harshula, @DaveBi is holding off finishing the coupling the work as I understand to the New Year whilst he gets the cice4 version with the icebergs linked up with Pearce's Generic tracer for the test run's in Rachel's table. So whilst your settings for cice5 ice thickness categoriex and snow ice layers are thin Anton, it wont run, not sure it can pick tha tit doesnt have the correct links in to the UM in this spack set up as I am not sure how sophisticated it is. We can talk about it at the mini-hackathon tomorrow if you are around. |
Thanks @ofa001 - this is just build infrastructure, I am just making sure its ready / available so we can build the model so the cice code can be updated.
What did you mean here ? We can change these compile time options later ofcourse, but its good if they are close now. |
Sorry @anton-seaice, I was distracted, I had someone here fixing my aircon, I meant "fine" |
d6976ff
to
3f8cf0f
Compare
@harshula
When I try to use this package, it builds the wrong executable
I run
spack install [email protected]=access-esm1.6%[email protected]
and it builds the executable for access-cm2 ?
From the spack-build-out.txt file, I can see that spack is sending the wrong arguments to spack-build.sh :
Any ideas ?