From 3297eeeef823841f3338d5378825a6eb99c0c009 Mon Sep 17 00:00:00 2001 From: Harshula Jayasuriya Date: Thu, 26 Sep 2024 15:32:59 +1000 Subject: [PATCH] DEVELOPERS.md: refer to set-up Spack instructions on Hive-Docs (#80) --- DEVELOPERS.md | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index b24078d..028d040 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -8,31 +8,9 @@ It is assumed the modifications and compilation will be done on the [NCI HPC sys Much of this is adapted from the [spack Developer Workflows Tutorial](https://spack-tutorial.readthedocs.io/en/latest/tutorial_developer_workflows.html). -## Initial set-up +## Initial set-up -It is necessary to make local copies of the following repositories using `git clone`: -- [`spack`](https://github.com/ACCESS-NRI/spack.git) - the build from source package manager -- [`spack-config`](https://github.com/ACCESS-NRI/spack-config.git) - a spack configuration for `gadi` -- [`spack-packages`](https://github.com/ACCESS-NRI/spack-packages.git) - ACCESS-NRI package repository which defines a number of the packages used by ACCESS-OM2 - -```bash -git clone -c feature.manyFiles=true https://github.com/ACCESS-NRI/spack.git --branch releases/v0.22 --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 -``` - -Then link all the `spack-config` settings to your local spack instance: -```bash -ln -s -r -v spack-config/v0.22/gadi/* spack/etc/spack/ -``` - -> [!NOTE] -> -> The steps in this section need only be done once, unless the cloned repositories need to be updated to a newer version. -> -> This guide is adapted from [instructions on the ACCESS-Hive Forum](https://forum.access-hive.org.au/t/how-to-build-access-om2-on-gadi/1545) -> -> ACCESS-NRI maintains a fork of spack to enable back-porting fixes from more recent spack versions. This fork is the one used in these instructions. +You will first need to [Set up Spack for building ACCESS models](https://access-hive.org.au/getting_started/spack/). ## Enable spack