I made an attempt here, but then hit an error I didn’t understand
1 Like
Aidan
(Aidan Heerdegen, ACCESS-NRI Release Team Lead)
26
I have changed the spack/config module to prefer using /g/data/$PROJECT/$USER/ as the location for the install tree and cache. I guess the cache could stay in /scratch … hmm … but I changed them both for the moment.
When I did a fresh clone of spack and checked out releases/v0.19 I could successfully build zlib:
Thanks @Aidan. On second thoughts, if I want to make an executable for widespread use (e.g. access-om3) that lives in ik11, it would be better for its spack dependencies to live there too, say in /g/data/ik11/spack (NB: doesn’t involve $user) so that users only have to join ik11 to run it.
Would that be possible somehow?
Aidan
(Aidan Heerdegen, ACCESS-NRI Release Team Lead)
28
Most certainly. The point of the spack/config module was to set up some shared config, but we can always set up something especially for your use case.
I’m afraid I have limited resources this week (sick + very busy), but I do have getting a better development environment/process for ACCESS-OM3 high on my TO-DO agenda, and there are some options I’m thinking about.
Maybe the best option is to actually start a topic about this for ACCESS-OM3 (or an issue on an appropriate repo). Would you be willing to do this? Outline what you want/need to achieve, what you’ve done so far and where it is failing?
If you did make it a topic I’d suggest putting the topic in the COSIMA category. We can create a sub-category of ACCESS-OM3 if you think that is useful.
ACCESS-OM3 issues are here, and that’s probably a better place for discussion than the forum. Good to hear it would be possible to build dependencies into /g/data/ik11, but the top priority at this stage is to fix the spack modules that don’t update LD_LIBRARY_PATH, which makes it impossible to run the executable via payu.
Get well soon!
Aidan
(Aidan Heerdegen, ACCESS-NRI Release Team Lead)
30
So I don’t forget it, there are cases were LD_LIBRARY_PATH has to be set, notably for packages that are not compiled by spack. This PR is an example of this for reference
For anyone interested, I’ve set up a new Spack instance on Gadi to be used by the COSIMA community. It reuses several things from @Aidan 's config, but I’ve tried to improve a bit on the design and make it a better fit for our use case. You can find all the config files here:
The containerised spack environment I’ve been working on is now available at ScottWales/spack-environments (github.com). This is a mirror since we’ve been heavily using Gitlab CI for the setup.
With bind mode MPI set up performance of the container matches an uncontainerised environment, with the advantage that the container is entirely self-contained and portable to other systems
1 Like
Aidan
(Aidan Heerdegen, ACCESS-NRI Release Team Lead)
33
Thanks for taking the time to make a public version available for the wider community. Much appreciated.