Known Issues with Spack v0.20: (Setup-env scripts bug on back and forth between different spack instances/clones · Issue #40901 · spack/spack · GitHub)
Instructions for general users on Gadi v3
[30/01/2024: renamed spack-start.bash to spack-enable.bash in deployment]
-
Request membership of
vk83
. -
Login to Gadi:
ssh USERNAME@gadi.nci.org.au
- Set Spack environment variables:
. /g/data/vk83/apps/spack/0.20/spack-config/spack-enable.bash
- Display pre-built packages:
spack find
Installation instructions for model developers on Gadi v7
[23/04/2024: Use the ACCESS-NRI fork of spack]
- Login to Gadi:
ssh USERNAME@gadi.nci.org.au
- Clone the relevant git repositories (read-only):
git clone -c feature.manyFiles=true https://github.com/ACCESS-NRI/spack.git --branch releases/v0.20 --single-branch --depth=1
git clone https://github.com/ACCESS-NRI/spack-packages.git --branch main
git clone https://github.com/ACCESS-NRI/spack-config.git --branch main
- Link spack-config configurations files to the Spack instance:
ln -s -r -v spack-config/v0.20/gadi/* spack/etc/spack/
- Set Spack environment variables (required after each login):
. spack-config/spack-enable.bash
- Build ACCESS-OM2 (initialisation may take a long time without any output):
spack install access-om2 ^netcdf-c@4.7.4 ^netcdf-fortran@4.5.2 ^parallelio@2.5.2 ^openmpi@4.0.2 %intel@19.0.5.281
dev-build instructions for model developers on Gadi v6
[23/04/2024: Use the ACCESS-NRI fork of spack]
- Login to Gadi:
ssh USERNAME@gadi.nci.org.au
- Clone the relevant git repositories (read-only):
git clone -c feature.manyFiles=true https://github.com/ACCESS-NRI/spack.git --branch releases/v0.20 --single-branch --depth=1
git clone https://github.com/ACCESS-NRI/spack-packages.git --branch main
git clone https://github.com/ACCESS-NRI/spack-config.git --branch main
- Link spack-config configurations files to the Spack instance:
ln -s -r -v spack-config/v0.20/gadi/* spack/etc/spack/
- Set Spack environment variables (required after each login):
. spack-config/spack-enable.bash
- For example, do a
spack dev-build
inside theoasis3-mct
git directory (initialisation may take a long time without any output):
spack install --only dependencies oasis3-mct@git.e9640e767ac9f1fad71ddaafa7bbe3f12e8091b6 ^netcdf-c@4.7.4 ^netcdf-fortran@4.5.2 ^openmpi@4.0.2 %intel@19.0.5.281
git clone https://github.com/ACCESS-NRI/oasis3-mct.git
cd oasis3-mct
spack dev-build oasis3-mct@git.e9640e767ac9f1fad71ddaafa7bbe3f12e8091b6 ^netcdf-c@4.7.4 ^netcdf-fortran@4.5.2 ^parallelio@2.5.2 ^openmpi@4.0.2 %intel@19.0.5.281