Skip to content

Commit

Permalink
Separate spack YAMLs for Intel and GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Dec 13, 2024
1 parent 32ce9b5 commit 41aa50d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,12 @@ jobs:
rm -rf spack
git clone -c feature.manyFiles=true https://github.com/JCSDA/spack.git
source spack/share/spack/setup-env.sh
spack env create gsi-env gsi/ci/spack.yaml
spack env create gsi-env gsi/ci/spack_gcc.yaml
spack env activate gsi-env
spack compiler find
sudo apt install libblas-dev
spack external find
spack add [email protected]
spack add openblas
spack concretize
spack install -v --fail-fast --dirty
spack install --fail-fast --dirty
spack clean -a
gsi:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,12 @@ jobs:
rm -rf spack
git clone -c feature.manyFiles=true https://github.com/JCSDA/spack.git
source spack/share/spack/setup-env.sh
spack env create gsi-env gsi/ci/spack.yaml
spack env create gsi-env gsi/ci/spack_intel.yaml
spack env activate gsi-env
spack compiler find
sudo apt install cmake
spack external find
spack add intel-oneapi-mpi
spack concretize
spack install -v --fail-fast --dirty
spack install --fail-fast --dirty
spack clean -a
gsi:
Expand Down
30 changes: 30 additions & 0 deletions ci/spack_gcc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Spack environment file to build GSI dependencies
spack:
packages:
all:
providers:
blas: openblas
lapack: openblas
mpi: mpich
compiler:
- gcc@13
specs:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
view: true
concretizer:
unify: true
4 changes: 3 additions & 1 deletion ci/spack.yaml → ci/spack_intel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
spack:
packages:
all:
providers:
mpi: intel-oneapi-mpi
compiler:
- intel
- gcc@13
specs:
- [email protected]
- [email protected]
Expand All @@ -20,6 +21,7 @@ spack:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
view: true
concretizer:
unify: true

0 comments on commit 41aa50d

Please sign in to comment.