Skip to content

Commit

Permalink
Test loading compilers/mpis. ufs-community#859
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Oct 27, 2023
1 parent 1da4c79 commit 9d94c16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ubuntu_gcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
run: |
source spack/share/spack/setup-env.sh
spack env activate ufs_utils-env
spack load ip sp w3emc netcdf-c netcdf-fortran bacio g2 nemsio sfcio sigio nccmp parallelio esmf
spack load gcc mpich ip sp w3emc netcdf-c netcdf-fortran bacio g2 nemsio sfcio sigio nccmp parallelio esmf
spack list
export CC=mpicc
export FC=mpif90
cd ufs_utils
Expand All @@ -94,7 +95,8 @@ jobs:
run: |
source spack/share/spack/setup-env.sh
spack env activate ufs_utils-env
spack load ip sp w3emc netcdf-c netcdf-fortran bacio g2 nemsio sfcio sigio nccmp parallelio esmf
spack load gcc mpich ip sp w3emc netcdf-c netcdf-fortran bacio g2 nemsio sfcio sigio nccmp parallelio esmf
spack list
cd ufs_utils
cd build
ctest --verbose --rerun-failed --output-on-failure
10 changes: 8 additions & 2 deletions .github/workflows/ubuntu_intel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- name: install-dependencies-with-spack
if: steps.cache-env.outputs.cache-hit != 'true'
run: |
pwd
git clone -c feature.manyFiles=true https://github.com/NOAA-EMC/spack.git
source spack/share/spack/setup-env.sh
sed "s/\[intel, gcc@10:10, apple-clang@14\]/\[intel\]/g" ufs_utils/ci/spack.yaml > spack_ci.yaml
Expand Down Expand Up @@ -97,9 +98,12 @@ jobs:

- name: build
run: |
pwd
source spack/share/spack/setup-env.sh
spack env activate ufs_utils-env
spack load ip sp w3emc netcdf-c netcdf-fortran bacio g2 nemsio sfcio sigio nccmp parallelio esmf
spack load intel-oneapi-mpi ip sp w3emc netcdf-c netcdf-fortran bacio g2 nemsio sfcio sigio nccmp parallelio esmf
spack list
env
export CC=mpiicc
export FC=mpiifort
cd ufs_utils
Expand All @@ -112,7 +116,9 @@ jobs:
run: |
source spack/share/spack/setup-env.sh
spack env activate ufs_utils-env
spack load ip sp w3emc netcdf-c netcdf-fortran bacio g2 nemsio sfcio sigio nccmp parallelio esmf
spack load intel-oneapi-mpi ip sp w3emc netcdf-c netcdf-fortran bacio g2 nemsio sfcio sigio nccmp parallelio esmf
spack list
env
cd ufs_utils
cd build
ctest --verbose --rerun-failed --output-on-failure

0 comments on commit 9d94c16

Please sign in to comment.