Handle case when D*.fill_starts variables are not available in map files #252
This file contains 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: LogVOL 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: | |
HDF5_VERSION: 1.14.2 | |
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 | |
sudo apt-get install automake autoconf libtool libtool-bin m4 | |
# zlib | |
sudo apt-get install zlib1g-dev | |
# OpenMPI | |
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev libgtk2.0-dev | |
echo "---- location of OpenMPI C compiler ----" | |
which mpicc | |
ompi_info | |
- name: Install HDF5 | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
rm -rf HDF5 ; mkdir HDF5 ; cd HDF5 | |
VER_MAJOR=${HDF5_VERSION%.*} | |
VER_NOPATCH=${HDF5_VERSION%-*} # remove patch version | |
curl -LO https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${VER_MAJOR}/hdf5-${VER_NOPATCH}/src/hdf5-${HDF5_VERSION}.tar.gz | |
tar -zxf hdf5-${HDF5_VERSION}.tar.gz | |
cd hdf5-${HDF5_VERSION} | |
./configure --prefix=${GITHUB_WORKSPACE}/HDF5 \ | |
--silent \ | |
--enable-hl \ | |
--enable-parallel \ | |
--enable-build-mode=production \ | |
--disable-doxygen-doc \ | |
--disable-doxygen-man \ | |
--disable-doxygen-html \ | |
--disable-tools \ | |
--disable-tests \ | |
--disable-fortran \ | |
--disable-cxx \ | |
CC=mpicc | |
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1 | |
make -s distclean >> qout 2>&1 | |
- name: Dump HDF5 config.log file | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cat ${GITHUB_WORKSPACE}/HDF5/hdf5-${HDF5_VERSION}/qout | |
cat ${GITHUB_WORKSPACE}/HDF5/hdf5-${HDF5_VERSION}/config.log | |
- name: Install Log VOL connector from its master branch | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
rm -rf LOG_VOL ; mkdir LOG_VOL ; cd LOG_VOL | |
rm -rf vol-log-based | |
git clone -q https://github.com/DataLib-ECP/vol-log-based.git | |
cd vol-log-based | |
autoreconf -i | |
./configure --prefix=${GITHUB_WORKSPACE}/LOGVOL \ | |
--silent \ | |
--with-hdf5=${GITHUB_WORKSPACE}/HDF5 | |
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1 | |
make -s distclean >> qout 2>&1 | |
- name: Dump Log VOL config.log file | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cat ${GITHUB_WORKSPACE}/LOG_VOL/vol-log-based/qout | |
cat ${GITHUB_WORKSPACE}/LOG_VOL/vol-log-based/config.log | |
- name: Build and check E3SM_IO with HDF5 Log VOL connector only | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
rm -rf ./test_output | |
autoreconf -i | |
./configure --with-hdf5=${GITHUB_WORKSPACE}/HDF5 \ | |
--with-logvol=${GITHUB_WORKSPACE}/LOGVOL \ | |
CC=mpicc CXX=mpicxx \ | |
CFLAGS=-fno-var-tracking-assignments \ | |
CXXFLAGS=-fno-var-tracking-assignments \ | |
TESTMPIRUN="mpiexec --oversubscribe" | |
make -j 8 | |
make check | |
- name: Dump log files if E3SM_IO with HDF5 Log VOL connector test failed | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
cat test.sh.log utils/*.log | |
cat config.log | |
- name: Test E3SM_IO -- parallel runs | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
make ptest | |
- name: Test make distcheck | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
make distcheck DISTCHECK_CONFIGURE_FLAGS="--with-hdf5=${GITHUB_WORKSPACE}/HDF5 --with-logvol=${GITHUB_WORKSPACE}/LOGVOL CC=mpicc CXX=mpicxx CFLAGS=-fno-var-tracking-assignments CXXFLAGS=-fno-var-tracking-assignments" | |
make distclean | |