Skip to content

Commit

Permalink
Update upp submodule (#811)
Browse files Browse the repository at this point in the history
* Update github workflow. Update gcc to 12 and mpi to openmpi

* Add 'spack clean' to reduce the size of the cache files

* Split GCC.yml workflow into two jobs, build_spack and build_fv3atm

* Update github workflow. Add mpich

* Update github actions to v4

* Use action/cache/restore in build_fv3atm job

* update upp revision to 5faac75

* Update GCC.yml

---------

Co-authored-by: Dusan Jovic <dusan.jovic@noaa.gov>
  • Loading branch information
WenMeng-NOAA and DusanJovic-NOAA committed Apr 19, 2024
1 parent 979bcab commit da95cc4
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 17 deletions.
73 changes: 57 additions & 16 deletions .github/workflows/GCC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,34 @@ on:
- develop

jobs:
GCC:
build_spack:
runs-on: ubuntu-latest

strategy:
matrix:
cmake_opts: ["-D32BIT=ON", "-D32BIT=OFF"]
gcc_ver: ["11"]
mpi: ["mpich"]
gcc_ver: ["12"]
mpi: ["mpich", "openmpi"]

steps:

- name: install-doxygen
run: |
sudo apt-get install doxygen graphviz
- name: checkout-fv3atm
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/fv3atm
submodules: recursive

- name: install-cmake
run: |
cd ${{ github.workspace }}
curl -f -s -S -R -L https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-Linux-x86_64.tar.gz | tar -zx
echo "${{ github.workspace }}/cmake-3.29.2-linux-x86_64/bin" >> $GITHUB_PATH
- name: cache-spack
id: cache-spack
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/spack-develop
key: spack-${{ hashFiles('fv3atm/ci/spack.yaml') }}-gcc${{ matrix.gcc_ver }}-2-${{ matrix.cmake_opts }}-${{ matrix.mpich }}
key: spack-${{ hashFiles('fv3atm/ci/spack.yaml') }}-gcc${{ matrix.gcc_ver }}-${{ matrix.mpi }}

# Building dependencies takes 40+ min
- name: spack-install
Expand All @@ -58,6 +59,42 @@ jobs:
spack config add "packages:mpi:require:'${{ matrix.mpi }}'"
spack concretize |& tee ${SPACK_ENV}/log.concretize
spack install -j2 --fail-fast
spack clean --all
build_fv3atm:
needs: build_spack
runs-on: ubuntu-latest

strategy:
matrix:
cmake_opts: ["-D32BIT=ON", "-D32BIT=OFF"]
gcc_ver: ["12"]
mpi: ["mpich", "openmpi"]

steps:

- name: install-doxygen
run: |
sudo apt-get install doxygen graphviz
- name: install-cmake
run: |
cd ${{ github.workspace }}
curl -f -s -S -R -L https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-Linux-x86_64.tar.gz | tar -zx
echo "${{ github.workspace }}/cmake-3.29.2-linux-x86_64/bin" >> $GITHUB_PATH
- name: checkout-fv3atm
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/fv3atm
submodules: recursive

- name: cache-spack
id: cache-spack
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/spack-develop
key: spack-${{ hashFiles('fv3atm/ci/spack.yaml') }}-gcc${{ matrix.gcc_ver }}-${{ matrix.mpi }}

- name: build-fv3atm
run: |
Expand All @@ -70,20 +107,24 @@ jobs:
mkdir ${GITHUB_WORKSPACE}/build
sed -i 's/doc /upp_doc /' upp/docs/CMakeLists.txt
cd ${GITHUB_WORKSPACE}/build
export CC=mpicc
export CXX=mpicxx
export FC=mpif90
cat /home/runner/work/fv3atm/fv3atm/spack-develop/opt/spack/linux-ubuntu22.04-zen2/gcc-12.3.0/fms-2023.04-*/lib/cmake/fms/fms-config.cmake
cmake ${GITHUB_WORKSPACE}/fv3atm -DBUILD_TESTING=ON ${{ matrix.cmake_opts }} -DENABLE_DOCS=ON
make -j2
ls -l /home/runner/work/fv3atm/fv3atm/fv3atm/io
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: docs
name: docs-gcc${{ matrix.gcc_ver }}-${{ matrix.mpi }}-${{ matrix.cmake_opts }}
path: |
build/docs/html
- name: debug-artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: ccpp_prebuild_logs
name: ccpp_prebuild_logs-gcc${{ matrix.gcc_ver }}-${{ matrix.mpi }}-${{ matrix.cmake_opts }}
path: ${{ github.workspace }}/build/ccpp/ccpp_prebuild.*

2 changes: 1 addition & 1 deletion upp
Submodule upp updated 94 files
+1 −1 .gitignore
+2 −3 .readthedocs.yml
+4 −1 CMakeLists.txt
+14 −18 README.md
+7 −6 ci/rt.sh
+7 −7 ci/spack.yaml
+0 −0 doc/2D-decomp.md
+0 −0 doc/CMakeLists.txt
+0 −0 doc/Doxyfile.in
+0 −0 doc/Release_Notes.ncep_post.v7.0.0
+4 −4 doc/UserGuide/BackgroundInfo/Acknowledgments.rst
+13 −15 doc/UserGuide/BackgroundInfo/CodeOverview.rst
+1 −1 doc/UserGuide/BackgroundInfo/Introduction.rst
+10 −0 doc/UserGuide/BackgroundInfo/index.rst
+111 −0 doc/UserGuide/BuildingRunningTesting/BuildingUPP.rst
+175 −0 doc/UserGuide/BuildingRunningTesting/InputsOutputs.rst
+127 −0 doc/UserGuide/BuildingRunningTesting/RunningUPP.rst
+53 −0 doc/UserGuide/BuildingRunningTesting/TestingUPP.rst
+10 −0 doc/UserGuide/BuildingRunningTesting/index.rst
+19 −26 doc/UserGuide/CustomizingTheUPP/AddNewVariable.rst
+12 −13 doc/UserGuide/CustomizingTheUPP/Regridding.rst
+9 −0 doc/UserGuide/CustomizingTheUPP/index.rst
+28 −0 doc/UserGuide/Makefile
+105 −0 doc/UserGuide/Reference/FAQ.rst
+7 −7 doc/UserGuide/Reference/Glossary.rst
+8 −0 doc/UserGuide/Reference/index.rst
+0 −0 doc/UserGuide/_static/custom.css
+0 −0 doc/UserGuide/_static/theme_overrides.css
+35 −5 doc/UserGuide/conf.py
+11 −0 doc/UserGuide/index.rst
+2 −2 doc/UserGuide/requirements.in
+82 −0 doc/UserGuide/requirements.txt
+226 −221 doc/UserGuide/tables/UFS_unified_variables_table.csv
+0 −0 doc/UserGuide/tables/UFS_unified_variables_table.rst
+7 −15 doc/UserGuide/tables/UPP_GRIB2_Table_byID.csv
+2 −0 doc/UserGuide/tables/UPP_GRIB2_Table_byID.rst
+0 −0 doc/module-load-make-howto.txt
+0 −0 doc/user_guide.md
+0 −169 docs/InputsOutputs.rst
+0 −117 docs/Installation.rst
+0 −134 docs/Running.rst
+0 −16 docs/index.rst
+0 −39 modulefiles/cheyenne
+0 −40 modulefiles/cheyenne_gnu
+0 −58 modulefiles/gaea-c5.lua
+24 −46 modulefiles/gaea.lua
+1 −1 modulefiles/hera.lua
+4 −1 modulefiles/hercules.lua
+0 −37 modulefiles/jet
+22 −0 modulefiles/jet.lua
+1 −1 modulefiles/orion.lua
+2 −1 modulefiles/s4.lua
+3 −3 modulefiles/upp_common.lua
+1 −1 modulefiles/wcoss2.lua
+9 −60 modulefiles/wcoss2_a.lua
+119 −387 parm/fv3lam_rrfs.xml
+0 −2 parm/global_1x1_paramlist_g2
+0 −1 parm/global_1x1_paramlist_g2.anl
+0 −2 parm/global_1x1_paramlist_g2.f000
+3 −1 parm/makefile
+378 −6 parm/params_grib2_tbl_new
+465 −6 parm/params_grib2_tbl_new.text
+40 −16 parm/post_avblflds.xml
+0 −35 parm/postcntrl_gfs.xml
+0 −5 parm/postcntrl_gfs_anl.xml
+0 −11 parm/postcntrl_gfs_f00.xml
+1 −12 parm/postcntrl_gfs_f00_two.xml
+1 −1 parm/postcntrl_gfs_flux.xml
+1 −1 parm/postcntrl_gfs_flux_f00.xml
+1 −36 parm/postcntrl_gfs_two.xml
+662 −0 parm/postcntrl_sfs.xml
+1 −38 parm/postxconfig-NT-GFS-ANL.txt
+3 −77 parm/postxconfig-NT-GFS-F00-TWO.txt
+1 −75 parm/postxconfig-NT-GFS-F00.txt
+2 −2 parm/postxconfig-NT-GFS-FLUX-F00.txt
+2 −2 parm/postxconfig-NT-GFS-FLUX.txt
+3 −225 parm/postxconfig-NT-GFS-TWO.txt
+1 −223 parm/postxconfig-NT-GFS.txt
+4,088 −0 parm/postxconfig-NT-SFS.txt
+621 −1,862 parm/postxconfig-NT-fv3lam_rrfs.txt
+2 −0 sorc/ncep_post.fd/ALLOCATE_ALL.f
+4 −2 sorc/ncep_post.fd/CALVIS_GSD.f
+19 −7 sorc/ncep_post.fd/CMakeLists.txt
+1 −0 sorc/ncep_post.fd/DEALLOCATE.f
+129 −17 sorc/ncep_post.fd/INITPOST_NETCDF.f
+11 −7 sorc/ncep_post.fd/MDLFLD.f
+15 −4 sorc/ncep_post.fd/MISCLN.f
+54 −12 sorc/ncep_post.fd/SURFCE.f
+1 −1 sorc/ncep_post.fd/VRBLS2D_mod.f
+8 −2 sorc/ncep_post.fd/WRFPOST.F
+4 −0 sorc/ncep_post.fd/gtg_interp.F90
+1 −1 sorc/ncep_post.fd/post_gtg.fd
+13 −20 tests/compile_upp.sh
+86 −104 tests/detect_machine.sh

0 comments on commit da95cc4

Please sign in to comment.