Enable hint file, run the benchmark once per line in the hint file #27
This file contains hidden or 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
| name: PnetCDF master branch only | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - github_action | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/*.txt' | |
| - '**/*.jpg' | |
| - '**/*.png' | |
| - 'tests/*' | |
| - 'datasets/*' | |
| pull_request: | |
| branches: master | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/*.txt' | |
| - '**/*.jpg' | |
| - '**/*.png' | |
| - 'tests/*' | |
| - 'datasets/*' | |
| env: | |
| MPICH_VERSION: 4.3.0 | |
| AUTOCONF_VERSION: 2.71 | |
| AUTOMAKE_VERSION: 1.17 | |
| M4_VERSION: 1.4.19 | |
| LIBTOOL_VERSION: 2.5.4 | |
| PNETCDF_VERSION: repo | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up dependencies | |
| run: | | |
| set -x | |
| sudo apt-get update | |
| # mpich | |
| # sudo apt-get install mpich | |
| # zlib | |
| sudo apt-get install zlib1g-dev | |
| - name: Build GNU autotools | |
| run: | | |
| export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}" | |
| export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}" | |
| cd ${GITHUB_WORKSPACE} | |
| wget -q https://ftp.gnu.org/gnu/m4/m4-${M4_VERSION}.tar.gz | |
| gzip -dc m4-${M4_VERSION}.tar.gz | tar -xf - | |
| cd m4-${M4_VERSION} | |
| ./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \ | |
| --silent | |
| make -s -j 8 install > qout 2>&1 | |
| make -s -j 8 distclean >> qout 2>&1 | |
| cd ${GITHUB_WORKSPACE} | |
| wget -q https://ftp.gnu.org/gnu/autoconf/autoconf-${AUTOCONF_VERSION}.tar.gz | |
| gzip -dc autoconf-${AUTOCONF_VERSION}.tar.gz | tar -xf - | |
| cd autoconf-${AUTOCONF_VERSION} | |
| ./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \ | |
| --silent | |
| make -s -j 8 install > qout 2>&1 | |
| make -s -j 8 distclean >> qout 2>&1 | |
| cd ${GITHUB_WORKSPACE} | |
| wget -q https://ftp.gnu.org/gnu/automake/automake-${AUTOMAKE_VERSION}.tar.gz | |
| gzip -dc automake-${AUTOMAKE_VERSION}.tar.gz | tar -xf - | |
| cd automake-${AUTOMAKE_VERSION} | |
| ./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \ | |
| --silent | |
| make -s -j 8 install > qout 2>&1 | |
| make -s -j 8 distclean >> qout 2>&1 | |
| cd ${GITHUB_WORKSPACE} | |
| wget -q https://ftp.gnu.org/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz | |
| gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf - | |
| cd libtool-${LIBTOOL_VERSION} | |
| ./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \ | |
| --silent | |
| make -s -j 8 install > qout 2>&1 | |
| make -s -j 8 distclean >> qout 2>&1 | |
| - name: Build MPICH | |
| run: | | |
| set -x | |
| cd ${GITHUB_WORKSPACE} | |
| echo "Install MPICH on ${GITHUB_WORKSPACE}/MPICH" | |
| rm -rf MPICH ; mkdir MPICH ; cd MPICH | |
| # git clone -q https://github.com/pmodels/mpich.git | |
| # cd mpich | |
| # git submodule update --init | |
| # ./autogen.sh | |
| curl -LO https://www.mpich.org/static/downloads/${MPICH_VERSION}/mpich-${MPICH_VERSION}.tar.gz | |
| gzip -dc mpich-${MPICH_VERSION}.tar.gz | tar -xf - | |
| cd mpich-${MPICH_VERSION} | |
| ./configure --prefix=${GITHUB_WORKSPACE}/MPICH \ | |
| --silent \ | |
| --enable-romio \ | |
| --with-file-system=ufs \ | |
| --with-device=ch3:sock \ | |
| --disable-fortran \ | |
| CC=gcc | |
| make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1 | |
| make -s distclean >> qout 2>&1 | |
| - name: Dump MPICH log file | |
| if: ${{ failure() }} | |
| run: | | |
| set -x | |
| cat ${GITHUB_WORKSPACE}/MPICH/mpich-${MPICH_VERSION}/qout | |
| cat ${GITHUB_WORKSPACE}/MPICH/mpich-${MPICH_VERSION}/config.log | |
| - name: Install PnetCDF | |
| run: | | |
| set -x | |
| cd ${GITHUB_WORKSPACE} | |
| export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}" | |
| export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}" | |
| m4 --version | |
| autoconf --version | |
| automake --version | |
| libtool --version | |
| echo "Install PnetCDF on ${GITHUB_WORKSPACE}/PnetCDF" | |
| rm -rf PnetCDF ; mkdir PnetCDF ; cd PnetCDF | |
| # curl -LO https://parallel-netcdf.github.io/Release/pnetcdf-${PNETCDF_VERSION}.tar.gz | |
| # tar -zxf pnetcdf-${PNETCDF_VERSION}.tar.gz | |
| # cd pnetcdf-${PNETCDF_VERSION} | |
| git clone -q https://github.com/Parallel-NetCDF/PnetCDF.git | |
| cd PnetCDF | |
| autoreconf -i | |
| ./configure --prefix=${GITHUB_WORKSPACE}/PnetCDF \ | |
| --silent \ | |
| --disable-fortran \ | |
| --disable-cxx \ | |
| --disable-shared \ | |
| --with-mpi=${GITHUB_WORKSPACE}/MPICH | |
| make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1 | |
| make -s distclean >> qout 2>&1 | |
| - name: Dump PnetCDF log file | |
| if: ${{ failure() }} | |
| run: | | |
| set -x | |
| cat ${GITHUB_WORKSPACE}/PnetCDF/pnetcdf-${PNETCDF_VERSION}/qout | |
| cat ${GITHUB_WORKSPACE}/PnetCDF/pnetcdf-${PNETCDF_VERSION}/config.log | |
| - name: Build and check E3SM_IO with PnetCDF only | |
| if: ${{ success() }} | |
| run: | | |
| set -x | |
| cd ${GITHUB_WORKSPACE} | |
| rm -rf ./test_output | |
| autoreconf -i | |
| ./configure --with-pnetcdf=${GITHUB_WORKSPACE}/PnetCDF \ | |
| --with-mpi=${GITHUB_WORKSPACE}/MPICH \ | |
| CFLAGS=-fno-var-tracking-assignments \ | |
| CXXFLAGS=-fno-var-tracking-assignments | |
| make -j 8 | |
| make check | |
| - name: Dump log files if E3SM_IO with PnetCDF-only test failed | |
| if: ${{ failure() }} | |
| run: | | |
| set -x | |
| cd ${GITHUB_WORKSPACE} | |
| cat test.sh.log utils/*.log | |
| - name: Test E3SM_IO all APIs -- parallel runs | |
| if: ${{ success() }} | |
| run: | | |
| set -x | |
| make ptest | |
| - name: Test make distcheck | |
| if: ${{ success() }} | |
| run: | | |
| set -x | |
| make distcheck DISTCHECK_CONFIGURE_FLAGS="--with-pnetcdf=${GITHUB_WORKSPACE}/PnetCDF --with-mpi=${GITHUB_WORKSPACE}/MPICH CFLAGS=-fno-var-tracking-assignments CXXFLAGS=-fno-var-tracking-assignments" | |
| make distclean | |