From 9d94c167e6127afc688c6cd6bd5df8bfdd7a42da Mon Sep 17 00:00:00 2001 From: DavidHuber Date: Fri, 27 Oct 2023 12:36:03 +0000 Subject: [PATCH] Test loading compilers/mpis. #859 --- .github/workflows/ubuntu_gcc.yaml | 6 ++++-- .github/workflows/ubuntu_intel.yaml | 10 ++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ubuntu_gcc.yaml b/.github/workflows/ubuntu_gcc.yaml index d4c221cad..0f91b6d2b 100644 --- a/.github/workflows/ubuntu_gcc.yaml +++ b/.github/workflows/ubuntu_gcc.yaml @@ -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 @@ -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 diff --git a/.github/workflows/ubuntu_intel.yaml b/.github/workflows/ubuntu_intel.yaml index 6bf71ee43..1954a4098 100644 --- a/.github/workflows/ubuntu_intel.yaml +++ b/.github/workflows/ubuntu_intel.yaml @@ -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 @@ -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 @@ -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