Skip to content

Commit

Permalink
DEVELOPERS.md: refer to set-up Spack instructions on Hive-Docs (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshula authored Sep 26, 2024
1 parent 3b0a7e4 commit 3297eee
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3297eee

Please sign in to comment.