Skip to content

Commit 961b0a0

Browse files
CodeGatdougiesquireanton-seaice
authored
spack.yaml Environment Configuration (#5)
* spack.yml: Modifying existing spack.yaml to use virtual package * spack.yaml: Merged some of the sections into one line * spack.yaml: Updated spack.modules to be in line with access-om2-style spack.yaml * spack.yaml: Compiler updated to original 2021.10.0 * spack.yaml: Removed comments, updated projections, moved last of the definitions into spack.packages * Modified spack.yaml to be in line with the original 0.2.0 spack.yaml * spack.yaml: Uses 0.x.0 spack.yaml as a base, and uses new variants field * versions.json: Updated spack-packages to 2024.04.19 * spack.yaml: quoted version of parallelio * spack.yaml: Added valid compiler field * spack.yaml: Now requires variants rather than prefers * versions.json: Updated spack-packages to 2024.04.20 * versions.json: Deploying using the development version of spack-config * versions.json: Updated spack config to 2024.04.22 * versions.json: Updated spack-config to 2024.04.23 (added openmpi 4.x versions) * spack.yaml: Removed variants and compiler flags to ACCESS-NRI/spack-packages#103 * versions.json: Updated spack-packages to https://github.com/ACCESS-NRI/spack-packages/releases/tag/2024.05.03 * spack.yaml: Renamed exclude_implicits to hide_implicits * spack.yaml: Added spack.packages.all.target: x86_64 * config: versions.json now conforms to the 2-0-0 schema, deleted local schema * versions.json: Update spack to 0.22, bulk update of spack-packages, spack-config * spack.yaml: exclude_implicits, compiler/target requirement * spack.yaml: Remove -fp-model precise * spack.yaml: Added comments, deploying with latest version of spack * Update compiler to [email protected] * Update spack.yaml * Update spack.yaml * update to OM3 latest source * Update spack.yaml * Added quotes to target --------- Co-authored-by: dougiesquire <[email protected]> Co-authored-by: Anton Steketee <[email protected]>
1 parent e5c81d3 commit 961b0a0

File tree

3 files changed

+60
-52
lines changed

3 files changed

+60
-52
lines changed

config/versions.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"$schema": "./versions.schema.json",
3-
"spack-packages": "2024.03.22",
4-
"spack-config": "2024.03.22"
5-
}
2+
"$schema": "http://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.08",
5+
"spack-config": "2024.07.05"
6+
}

config/versions.schema.json

-19
This file was deleted.

spack.yaml

+55-29
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,66 @@
33
# It describes a set of packages to be installed, along with
44
# configuration settings.
55
spack:
6-
definitions:
7-
- compilers:
8-
9-
- mpis:
10-
11-
- serial_packages:
12-
13-
- packages:
14-
15-
- [email protected] build_type=RelWithDebInfo fflags='-qno-opt-dynamic-align -convert
16-
big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model source'
17-
cflags='-qno-opt-dynamic-align -fp-model precise -std=gnu99'
18-
- [email protected] build_system=cmake build_type=RelWithDebInfo
19-
20-
- [email protected] precision=64 +large_file +deprecated_io ~gfs_phys ~openmp ~quad_precision
21-
build_type=RelWithDebInfo
22-
- access-om3 +install_libraries
236
specs:
24-
- matrix:
25-
- [$mpis]
26-
- [$%compilers]
27-
- matrix:
28-
- [$packages]
29-
- [$^mpis]
30-
- [$%compilers]
31-
- matrix:
32-
- [$serial_packages]
33-
- [$%compilers]
7+
8+
packages:
9+
# Main Dependencies
10+
access-om3-nuopc:
11+
require:
12+
- '@git.0.3.1'
13+
14+
# Other Dependencies
15+
esmf:
16+
require:
17+
- '@8.5.0'
18+
parallelio:
19+
require:
20+
- '@2.6.2'
21+
netcdf-c:
22+
require:
23+
- '@4.9.2'
24+
- build_system=cmake build_type=RelWithDebInfo
25+
netcdf-fortran:
26+
require:
27+
- '@4.6.1'
28+
fms:
29+
require:
30+
- '@2023.02'
31+
openmpi:
32+
require:
33+
- '@4.1.5'
34+
fortranxml:
35+
require:
36+
- '@4.1.2'
37+
38+
all:
39+
require:
40+
41+
- 'target=x86_64'
3442
view: true
3543
concretizer:
3644
unify: true
3745
modules:
3846
default:
47+
enable:
48+
- tcl
3949
roots:
40-
tcl: $spack/../modules/access-om3/0.x.0
50+
tcl: $spack/../release/modules
51+
lmod: $spack/../release/lmod
4152
tcl:
42-
naming_scheme: '{name}/{version}'
53+
hash_length: 0
54+
include:
55+
- access-om3
56+
- access-om3-nuopc
57+
exclude_implicits: true
58+
all:
59+
autoload: direct
60+
conflict:
61+
- '{name}'
62+
environment:
63+
set:
64+
'SPACK_{name}_ROOT': '{prefix}'
65+
projections:
66+
all: '{name}/{version}'
67+
access-om3: '{name}/2024.09.0'
68+
access-om3-nuopc: '{name}/0.3.1'

0 commit comments

Comments
 (0)