warning: comparison of integer expressions of different signedness #210
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: MPICH and static link | |
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.2.3 | |
PNETCDF_VERSION: 1.14.0 | |
HDF5_VERSION: 1.14.2 | |
NETCDF4_VERSION: 4.9.2 | |
ADIOS_VERSION: 2.8.3 | |
LOG_VOL_VERSION: 1.4.0 | |
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 | |
# mpich | |
# sudo apt-get install mpich | |
# zlib | |
sudo apt-get install zlib1g-dev | |
- 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} | |
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} | |
./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: Install HDF5 | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
echo "Install HDF5 on ${GITHUB_WORKSPACE}/HDF5" | |
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-shared \ | |
--disable-fortran \ | |
--disable-cxx \ | |
CC=${GITHUB_WORKSPACE}/MPICH/bin/mpicc | |
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1 | |
make -s distclean >> qout 2>&1 | |
- name: Dump HDF5 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 NetCDF-C | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
echo "Install NetCDF-C on ${GITHUB_WORKSPACE}/NetCDF" | |
rm -rf NetCDF ; mkdir NetCDF ; cd NetCDF | |
curl -LO https://github.com/Unidata/netcdf-c/archive/refs/tags/v${NETCDF4_VERSION}.tar.gz | |
tar -zxf v${NETCDF4_VERSION}.tar.gz | |
cd netcdf-c-${NETCDF4_VERSION} | |
# TODO: Always use an official release. E3SM-IO requires NetCDF-C 4.9.0 or later. | |
# rm -rf netcdf-c | |
# git clone -q https://github.com/Unidata/netcdf-c.git | |
# cd netcdf-c | |
# autoreconf -i | |
./configure --prefix=${GITHUB_WORKSPACE}/NetCDF \ | |
--silent \ | |
--disable-dap \ | |
--disable-nczarr \ | |
--disable-nczarr-filters \ | |
--disable-filter-testing \ | |
--disable-byterange \ | |
--disable-shared \ | |
CC=${GITHUB_WORKSPACE}/MPICH/bin/mpicc \ | |
CPPFLAGS="-I${GITHUB_WORKSPACE}/HDF5/include" \ | |
LDFLAGS="-L${GITHUB_WORKSPACE}/HDF5/lib" \ | |
LIBS="-lhdf5" | |
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1 | |
make -s distclean >> qout 2>&1 | |
pwd | |
- name: Dump NetCDF-C log file | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cat ${GITHUB_WORKSPACE}/NetCDF/netcdf-c-${NETCDF4_VERSION}/qout | |
cat ${GITHUB_WORKSPACE}/NetCDF/netcdf-c-${NETCDF4_VERSION}/config.log | |
- name: Install ADIOS2 | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
echo "Install ADIOS2 on ${GITHUB_WORKSPACE}/ADIOS" | |
rm -rf ADIOS ; mkdir ADIOS ; cd ADIOS | |
curl -LO https://github.com/ornladios/ADIOS2/archive/refs/tags/v${ADIOS_VERSION}.tar.gz | |
tar -zxf v${ADIOS_VERSION}.tar.gz | |
mkdir adios2_build | |
cd adios2_build | |
CC=${GITHUB_WORKSPACE}/MPICH/bin/mpicc \ | |
CXX=${GITHUB_WORKSPACE}/MPICH/bin/mpicxx \ | |
cmake -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/ADIOS \ | |
-DADIOS2_USE_MPI=ON \ | |
-DADIOS2_USE_Fortran=OFF \ | |
-DADIOS2_USE_Python=OFF \ | |
-DADIOS2_USE_ZeroMQ=OFF \ | |
-DADIOS2_USE_HDF5=OFF \ | |
-DADIOS2_USE_IME=OFF \ | |
-DADIOS2_USE_BZip2=OFF \ | |
-DADIOS2_USE_ZFP=OFF \ | |
-DADIOS2_USE_SZ=OFF \ | |
-DADIOS2_USE_MGARD=OFF \ | |
-DADIOS2_USE_PNG=OFF \ | |
-DADIOS2_USE_Blosc=OFF \ | |
-DADIOS2_BUILD_EXAMPLES=OFF \ | |
-DBUILD_TESTING=OFF \ | |
-DBUILD_SHARED_LIBS=OFF \ | |
-DADIOS2_USE_SST=ON \ | |
-DADIOS2_USE_BP5=ON \ | |
../ADIOS2-${ADIOS_VERSION} | |
make -j 8 install > qout 2>&1 | |
make clean >> qout 2>&1 | |
- name: Dump ADIOS log file | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cat ${GITHUB_WORKSPACE}/ADIOS/adios2_build/qout | |
cat ${GITHUB_WORKSPACE}/ADIOS/adios2_build/config.log | |
- name: Install log VOL | |
if: ${{ success() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
echo "Install Log VOL on ${GITHUB_WORKSPACE}/LOGVOL" | |
rm -rf LOGVOL ; mkdir LOGVOL ; cd LOGVOL | |
curl -LO https://github.com/DataLib-ECP/vol-log-based/archive/refs/tags/logvol.${LOG_VOL_VERSION}.tar.gz | |
tar -zxf logvol.${LOG_VOL_VERSION}.tar.gz | |
cd vol-log-based-logvol.${LOG_VOL_VERSION} | |
autoreconf -i | |
./configure --prefix=${GITHUB_WORKSPACE}/LOGVOL \ | |
--silent \ | |
--disable-shared \ | |
--with-hdf5=${GITHUB_WORKSPACE}/HDF5 \ | |
--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 Log VOL log file | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cat ${GITHUB_WORKSPACE}/LOGVOL/vol-log-based-logvol.${LOG_VOL_VERSION}/qout | |
cat ${GITHUB_WORKSPACE}/LOGVOL/vol-log-based-logvol.${LOG_VOL_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: Build and check E3SM_IO with HDF5 only | |
if: ${{ success() }} | |
run: | | |
set -x | |
make -s distclean | |
./configure --with-hdf5=${GITHUB_WORKSPACE}/HDF5 \ | |
--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 HDF5-only test failed | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
cat test.sh.log utils/*.log | |
- name: Build and check E3SM_IO with HDF5 log-based VOL only | |
if: ${{ success() }} | |
run: | | |
set -x | |
make -s distclean | |
./configure --with-hdf5=${GITHUB_WORKSPACE}/HDF5 \ | |
--with-logvol=${GITHUB_WORKSPACE}/LOGVOL \ | |
--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 HDF5 log-based VOL test failed | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
cat test.sh.log utils/*.log | |
- name: Build and check E3SM_IO with NetCDF4 only | |
if: ${{ success() }} | |
run: | | |
set -x | |
make -s distclean | |
./configure --with-netcdf4=${GITHUB_WORKSPACE}/NetCDF \ | |
--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 NetCDF4-only test failed | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
cat test.sh.log utils/*.log | |
- name: Build and check E3SM_IO with ADIOS only | |
if: ${{ success() }} | |
run: | | |
set -x | |
make -s distclean | |
./configure --with-adios2=${GITHUB_WORKSPACE}/ADIOS \ | |
--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 ADIOS-only test failed | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
cat test.sh.log utils/*.log | |
- name: Build and check E3SM_IO with all APIs | |
if: ${{ success() }} | |
run: | | |
set -x | |
make -s distclean | |
./configure --with-pnetcdf=${GITHUB_WORKSPACE}/PnetCDF \ | |
--with-hdf5=${GITHUB_WORKSPACE}/HDF5 \ | |
--with-netcdf4=${GITHUB_WORKSPACE}/NetCDF \ | |
--with-logvol=${GITHUB_WORKSPACE}/LOGVOL \ | |
--with-adios2=${GITHUB_WORKSPACE}/ADIOS \ | |
--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 test failed | |
if: ${{ failure() }} | |
run: | | |
set -x | |
cd ${GITHUB_WORKSPACE} | |
cat test.sh.log utils/*.log | |
cat config.log | |
ls -r ./test_output | |
- 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-hdf5=${GITHUB_WORKSPACE}/HDF5 --with-netcdf4=${GITHUB_WORKSPACE}/NetCDF --with-logvol=${GITHUB_WORKSPACE}/LOGVOL --with-adios2=${GITHUB_WORKSPACE}/ADIOS --with-mpi=${GITHUB_WORKSPACE}/MPICH CFLAGS=-fno-var-tracking-assignments CXXFLAGS=-fno-var-tracking-assignments" | |
make distclean | |