Skip to content

Commit a17379f

Browse files
authored
Add initial spack.yaml and config (#5)
* Added initial spack.yaml and config * Deleted versions.schema.json, added $schema property * spack.yaml: Changed `spack.config.source_cache` to a string rather than array * Changed spack-packages to 2024.05.21 and intel compiler to [email protected] * Added newline * Reformatting spack.yaml * spack.yaml: Updated gcom4 to 2024.05.22 (HEAD of dev branch rather than master) * spack.yaml: Added extra comments around the use of branches * spack.yaml: Explicitly include cice4, um7, mom5 * spack.yaml: Added associated projections for cice4, um7, mom5, git attributes for mom5 and oasis3-mct * spack.yaml: Removed git attributes on mom5, oasis3-mct * spack.yaml: Updating the version of the overall model to 2024.05.1 * Changed to '@git.TAG=VERSION' syntax in spack.yaml, updated spack-packages to 2024.05.28 * Modified overall version of package to `2024.05.0` * spack.yaml: Updated GCOM4 to 2024.05.28 * spack.yaml: Changed require versions back to branch * spack.yaml: Modified the other requirements to use the @git.TAG=VERSION syntax * spack.yaml: Constrained netcdf-*, hdf5 versions netcdf-c @4.7.4 (same as ACCESS-OM2 MOM5) netcdf-fortran @4.5.1 hdf5 @1.10.5 * spack.yaml: Updated netcdf-fortran to @4.6.1 * spack.yaml: Updating dependencies to be in line with ACCESS-NRI/spack-packages#121 netcdf-c uses gcc compiler target updated to x86_64_v4 multiple updates to dependency versions * Updated spack-packages/config, put spack.yaml versions in line with reproducible pre-industrial output * spack.yaml: Update netcdf-fortran to 4.5.2 * spack.yaml: put um7 on access-esm1.5 branch, tagged new mom5 commit * spack.yaml: Update modulefile version in line with package version * spack.yaml: Update netcdf-c to 4.7.4 * spack.yaml: Updated comments * spack.yaml: Updated um7 to 2024.07.03 * versions.json: Reverted to 2024.07.01 spack-config * versions.json: spack-packages version to 2024.07.03, spack-config back to 2024.07.02 * versions.json: Updated to spack 0.22 * spack.yaml: hide_implicits: false and autoload: run * spack-config 2024.07.05 using exclude_implicits: true * versions.json: spack-packages 2024.07.05 * versions.json: Updated spack-packages 2024.07.07, rebuilding with ACCESS-NRI/spack@42e3100 * versions.json: Update spack-packages 2024.07.08 * versions.json: Update spack-packages 2024.07.10 (updated um7 spd)
1 parent 5dd74db commit a17379f

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

config/versions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://github.com/ACCESS-NRI/schema/blob/main/au.org.access-nri/model/deployment/config/versions/2-0-0.json",
3+
"spack": "0.22",
4+
"spack-packages": "2024.07.10",
5+
"spack-config": "2024.07.05"
6+
}

spack.yaml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# This is a Spack Environment file.
2+
#
3+
# It describes a set of packages to be installed, along with
4+
# configuration settings.
5+
spack:
6+
specs:
7+
8+
packages:
9+
# Direct ACCESS-NRI dependencies
10+
# Note: some packages have branch-specific logic and hence can't use
11+
# the usual '@git.DATE' calver (https://calver.org) format, instead
12+
# requiring a `@git.DATE=BRANCH` version.
13+
mom5:
14+
require:
15+
- '@git.access-esm1.5_2024.06.20=access-esm1.5'
16+
cice4:
17+
require:
18+
- '@git.2024.05.21=access-esm1.5'
19+
um7:
20+
require:
21+
- '@git.2024.07.03=access-esm1.5'
22+
# Lower-level ACCESS-NRI dependencies
23+
gcom4:
24+
require:
25+
- '@git.2024.05.28=access-esm1.5'
26+
oasis3-mct:
27+
require:
28+
- '@git.access-esm1.5_2024.05.24=access-esm1.5'
29+
# Other dependencies
30+
openmpi:
31+
require:
32+
- '@4.0.2'
33+
netcdf-c:
34+
require:
35+
- '@4.7.4'
36+
netcdf-fortran:
37+
require:
38+
- '@4.5.2'
39+
hdf5:
40+
require:
41+
- '@1.10.11'
42+
43+
# Preferences for all packages
44+
all:
45+
require:
46+
47+
- 'target=x86_64_v4'
48+
view: true
49+
concretizer:
50+
unify: true
51+
modules:
52+
default:
53+
enable:
54+
- tcl
55+
roots:
56+
tcl: $spack/../release/modules
57+
lmod: $spack/../release/lmod
58+
tcl:
59+
hash_length: 0
60+
include:
61+
- access-esm1p5
62+
- cice4
63+
- um7
64+
- mom5
65+
exclude_implicits: true
66+
all:
67+
autoload: run
68+
conflict:
69+
- '{name}'
70+
environment:
71+
set:
72+
'SPACK_{name}_ROOT': '{prefix}'
73+
projections:
74+
all: '{name}/{version}'
75+
access-esm1p5: '{name}/2024.05.0'
76+
cice4: '{name}/2024.05.21'
77+
um7: '{name}/2024.07.03'
78+
mom5: '{name}/access-esm1.5_2024.06.20'
79+
config:
80+
install_tree:
81+
root: $spack/../restricted/ukmo/release
82+
source_cache: $spack/../restricted/ukmo/source_cache
83+
build_stage:
84+
- $TMPDIR/restricted/spack-stage

0 commit comments

Comments
 (0)