-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade modules to spack-stack/1.5.1 on non-production machines. (#19)
- Loading branch information
1 parent
4bd8521
commit f371890
Showing
14 changed files
with
156 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ defaults: | |
shell: bash -leo pipefail {0} | ||
|
||
env: | ||
cache_key: gcc4 # The number (#) following the cache_key "gcc" is to flush Action cache. | ||
cache_key: gcc | ||
CC: gcc-10 | ||
FC: gfortran-10 | ||
CXX: g++-10 | ||
|
@@ -24,71 +24,70 @@ env: | |
|
||
# The jobs are split into: | ||
# 1. a dependency build step (setup), and | ||
# 2. a GSI-utils build step (build) | ||
# 2. a GSI-utils build step (gsi-utils) | ||
# The setup is run once and the environment is cached, | ||
# so each build of GSI-utils can reuse the cached dependencies to save time (and compute). | ||
# so each subsequent build of GSI-utils can reuse the cached dependencies to save time (and compute). | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout # This is for getting spack.yaml | ||
uses: actions/checkout@v3 | ||
with: | ||
path: gsi-utils | ||
|
||
# Cache spack, compiler and dependencies | ||
- name: cache-env | ||
id: cache-env | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
spack | ||
~/.spack | ||
key: spack-${{ runner.os }}-${{ env.cache_key }} | ||
|
||
- name: checkout-gsiutils # This is for getting spack.yaml | ||
if: steps.cache-env.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v2 | ||
with: | ||
path: GSI-utils | ||
key: spack-${{ runner.os }}-${{ env.cache_key }}-${{ hashFiles('gsi-utils/ci/spack.yaml') }} | ||
|
||
# Install dependencies using Spack | ||
- name: install-dependencies-with-spack | ||
if: steps.cache-env.outputs.cache-hit != 'true' | ||
run: | | ||
git clone -c feature.manyFiles=true https://github.com/JCSDA/spack.git | ||
source spack/share/spack/setup-env.sh | ||
spack env create gsiutils-env GSI-utils/ci/spack.yaml | ||
spack env create gsiutils-env gsi-utils/ci/spack.yaml | ||
spack env activate gsiutils-env | ||
spack compiler find | ||
spack external find | ||
spack add [email protected] | ||
spack concretize | ||
spack install -v --fail-fast | ||
spack install -v --fail-fast --dirty | ||
spack clean --all | ||
build: | ||
gsi-monitor: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout-gsiutils | ||
uses: actions/checkout@v2 | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: GSI-utils | ||
path: gsi-utils | ||
|
||
- name: cache-env | ||
id: cache-env | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
spack | ||
~/.spack | ||
key: spack-${{ runner.os }}-${{ env.cache_key }} | ||
key: spack-${{ runner.os }}-${{ env.cache_key }}-${{ hashFiles('gsi-utils/ci/spack.yaml') }} | ||
|
||
- name: build-gsiutils | ||
- name: build | ||
run: | | ||
source spack/share/spack/setup-env.sh | ||
spack env activate gsiutils-env | ||
export CC=mpicc | ||
export FC=mpif90 | ||
cd GSI-utils | ||
cd gsi-utils | ||
mkdir -p build && cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=../install -DBUILD_UTIL_ALL=ON .. | ||
make -j2 VERBOSE=1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,23 @@ | |
spack: | ||
packages: | ||
all: | ||
compiler: [intel, gcc] | ||
compiler: [intel, gcc@10:10] | ||
specs: | ||
- netcdf-c@4.7.4 | ||
- netcdf-fortran@4.5.3 | ||
- netcdf-c@4.9.2 | ||
- netcdf-fortran@4.6.0 | ||
- [email protected] | ||
- [email protected] | ||
- w3emc@2.9.2 | ||
- w3emc@2.10.0 | ||
- [email protected] | ||
- ip@3.3.3 | ||
- ip@4.3.0 | ||
- [email protected] | ||
- [email protected] | ||
- [email protected].2 | ||
- [email protected].4 | ||
- [email protected] | ||
- crtm@2.3.0 | ||
- crtm@2.4.0 | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
view: true | ||
concretizer: | ||
unify: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
help([[ | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack") | ||
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.5.1/envs/gsi-addon/install/modulefiles/Core") | ||
--Needed for openmpi build | ||
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/jcsda/jedipara/spack-stack/modulefiles") | ||
|
||
local hpc_ver=os.getenv("hpc_ver") or "1.1.0" | ||
local hpc_gnu_ver=os.getenv("hpc_gnu_ver") or "9.2.0" | ||
local hpc_mpich_ver=os.getenv("hpc_mpich_ver") or "3.3.2" | ||
local cmake_ver=os.getenv("cmake_ver") or "3.20.1" | ||
local prod_util_ver=os.getenv("prod_util_ver") or "1.2.2" | ||
local python_ver=os.getenv("python_ver") or "3.10.8" | ||
local stack_intel_ver=os.getenv("stack_gcc_ver") or "9.2.0" | ||
local stack_impi_ver=os.getenv("stack_openmpi_ver") or "4.1.5" | ||
local cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
local openblas_ver=os.getenv("cmake_ver") or "0.3.19" | ||
|
||
load(pathJoin("hpc", hpc_ver)) | ||
load(pathJoin("hpc-gnu", hpc_gnu_ver)) | ||
load(pathJoin("hpc-mpich", hpc_mpich_ver)) | ||
load(pathJoin("stack-gcc", stack_gcc_ver)) | ||
load(pathJoin("stack-openmpi", stack_openmpi_ver)) | ||
load(pathJoin("python", python_ver)) | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
load("gsiutils_common") | ||
|
||
load(pathJoin("prod_util", prod_util_ver)) | ||
|
||
pushenv("MKLROOT", "/apps/oneapi/mkl/2022.0.2") | ||
load(pathJoin("openblas", openblas_ver)) | ||
|
||
whatis("Description: GSI utilities environment on Hera with GNU Compilers") |
Oops, something went wrong.