Skip to content

Commit

Permalink
spack.yaml Environment Configuration (#5)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Sep 23, 2024
1 parent e5c81d3 commit 961b0a0
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 52 deletions.
9 changes: 5 additions & 4 deletions config/versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "./versions.schema.json",
"spack-packages": "2024.03.22",
"spack-config": "2024.03.22"
}
"$schema": "http://github.com/ACCESS-NRI/schema/blob/main/au.org.access-nri/model/deployment/config/versions/2-0-0.json",
"spack": "0.22",
"spack-packages": "2024.07.08",
"spack-config": "2024.07.05"
}
19 changes: 0 additions & 19 deletions config/versions.schema.json

This file was deleted.

84 changes: 55 additions & 29 deletions spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,66 @@
# It describes a set of packages to be installed, along with
# configuration settings.
spack:
definitions:
- compilers:
- [email protected]
- mpis:
- [email protected]
- serial_packages:
- [email protected]
- packages:
- [email protected]+debug
- [email protected] build_type=RelWithDebInfo fflags='-qno-opt-dynamic-align -convert
big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model source'
cflags='-qno-opt-dynamic-align -fp-model precise -std=gnu99'
- [email protected] build_system=cmake build_type=RelWithDebInfo
- [email protected]
- [email protected] precision=64 +large_file +deprecated_io ~gfs_phys ~openmp ~quad_precision
build_type=RelWithDebInfo
- access-om3 +install_libraries
specs:
- matrix:
- [$mpis]
- [$%compilers]
- matrix:
- [$packages]
- [$^mpis]
- [$%compilers]
- matrix:
- [$serial_packages]
- [$%compilers]
- [email protected]
packages:
# Main Dependencies
access-om3-nuopc:
require:
- '@git.0.3.1'

# Other Dependencies
esmf:
require:
- '@8.5.0'
parallelio:
require:
- '@2.6.2'
netcdf-c:
require:
- '@4.9.2'
- build_system=cmake build_type=RelWithDebInfo
netcdf-fortran:
require:
- '@4.6.1'
fms:
require:
- '@2023.02'
openmpi:
require:
- '@4.1.5'
fortranxml:
require:
- '@4.1.2'

all:
require:
- '%[email protected]'
- 'target=x86_64'
view: true
concretizer:
unify: true
modules:
default:
enable:
- tcl
roots:
tcl: $spack/../modules/access-om3/0.x.0
tcl: $spack/../release/modules
lmod: $spack/../release/lmod
tcl:
naming_scheme: '{name}/{version}'
hash_length: 0
include:
- access-om3
- access-om3-nuopc
exclude_implicits: true
all:
autoload: direct
conflict:
- '{name}'
environment:
set:
'SPACK_{name}_ROOT': '{prefix}'
projections:
all: '{name}/{version}'
access-om3: '{name}/2024.09.0'
access-om3-nuopc: '{name}/0.3.1'

0 comments on commit 961b0a0

Please sign in to comment.