Skip to content

Commit 798e192

Browse files
committed
Use hdf5 1.13.3 in git action test
Add a script to test 1.13.2
1 parent 53985f8 commit 798e192

4 files changed

Lines changed: 142 additions & 8 deletions

File tree

.github/workflows/hdf5_1.13.2.yml

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
name: Ubuntu_mpich
2+
3+
on:
4+
push:
5+
branches: [ master, dev ]
6+
paths-ignore:
7+
- '**.md'
8+
- '**.txt'
9+
- 'docs/**'
10+
- 'case_studies/**'
11+
pull_request:
12+
branches: [ master, dev ]
13+
paths-ignore:
14+
- '**.md'
15+
- '**.txt'
16+
- 'case_studies/**'
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Set up dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install automake autoconf libtool libtool-bin m4
27+
# The MPICH installed on github actions is too slow
28+
# sudo apt-get install mpich
29+
# mpicc -v
30+
# zlib
31+
sudo apt-get install zlib1g-dev
32+
- name: Build MPICH
33+
run: |
34+
WORKDIR=$(pwd)
35+
rm -rf ${WORKDIR}/MPICH
36+
mkdir ${WORKDIR}/MPICH
37+
cd ${WORKDIR}/MPICH
38+
wget -q https://www.mpich.org/static/downloads/4.0.2/mpich-4.0.2.tar.gz
39+
gzip -dc mpich-4.0.2.tar.gz | tar -xf -
40+
cd mpich-4.0.2
41+
./configure --prefix=${WORKDIR}/MPICH \
42+
--silent \
43+
--enable-romio \
44+
--with-file-system=ufs \
45+
--with-device=ch3:sock \
46+
--disable-fortran \
47+
CC=gcc
48+
make -s LIBTOOLFLAGS=--silent V=1 -j 4 install > qout 2>&1
49+
make -s -j 4 distclean >> qout 2>&1
50+
cd ${WORKDIR}
51+
- name: Install HDF5
52+
run: |
53+
WORKDIR=$(pwd)
54+
rm -rf ${WORKDIR}/HDF5
55+
mkdir ${WORKDIR}/HDF5
56+
cd ${WORKDIR}/HDF5
57+
VERSION=1.13.2
58+
wget -cq https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.13/hdf5-${VERSION}/src/hdf5-${VERSION}.tar.gz
59+
tar -zxf hdf5-${VERSION}.tar.gz
60+
cd hdf5-${VERSION}
61+
./configure --prefix=${WORKDIR}/HDF5 \
62+
--silent \
63+
--disable-fortran \
64+
--disable-tests \
65+
--enable-parallel \
66+
--enable-build-mode=production \
67+
CC=${WORKDIR}/MPICH/bin/mpicc
68+
make -s LIBTOOLFLAGS=--silent V=1 -j 4 install > qout 2>&1
69+
make -s -j 4 distclean >> qout 2>&1
70+
cd ${WORKDIR}
71+
- name: Install NetCDF
72+
run: |
73+
WORKDIR=$(pwd)
74+
rm -rf ${WORKDIR}/NetCDF
75+
mkdir ${WORKDIR}/NetCDF
76+
cd ${WORKDIR}/NetCDF
77+
wget -qc https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.7.4.tar.gz
78+
tar -zxf v4.7.4.tar.gz
79+
cd netcdf-c-4.7.4
80+
./configure --prefix=${WORKDIR}/NetCDF \
81+
--silent \
82+
--disable-dap \
83+
CC=${WORKDIR}/MPICH/bin/mpicc \
84+
CPPFLAGS="-I${WORKDIR}/HDF5/include" \
85+
LDFLAGS="-L${WORKDIR}//HDF5/lib" \
86+
LIBS="-lhdf5"
87+
make -s LIBTOOLFLAGS=--silent V=1 -j 4 install > qout 2>&1
88+
make -s -j 4 distclean >> qout 2>&1
89+
cd ${WORKDIR}
90+
- name: Build and test Log-layout based VOL
91+
run: |
92+
WORKDIR=$(pwd)
93+
echo ">>>>>>>> autoreconf -i"
94+
autoreconf -i
95+
echo ">>>>>>>> ./configure --with-hdf5=${WORKDIR}/HDF5 \
96+
--enable-test-netcdf4=${WORKDIR}/NetCDF \
97+
--enable-test-hdf5-iotest \
98+
--with-mpi=${WORKDIR}/MPICH"
99+
./configure --with-hdf5=${WORKDIR}/HDF5 \
100+
--enable-test-netcdf4=${WORKDIR}/NetCDF \
101+
--enable-test-hdf5-iotest \
102+
--with-mpi=${WORKDIR}/MPICH
103+
# Do NOT test QMCPACK, as it requires FFTW which fails to build
104+
echo ">>>>>>>> make -j 4"
105+
make -j 4
106+
# Do NOT parallel build, cmake for external tests can fail
107+
echo ">>>>>>>> make tests"
108+
make tests
109+
echo ">>>>>>>> make check"
110+
make check
111+
echo ">>>>>>>> make ptest"
112+
make ptest
113+
echo ">>>>>>>> make -j4 -s V=1 LIBTOOLFLAGS=--silent distcheck DISTCHECK_CONFIGURE_FLAGS="--silent --with-hdf5=${WORKDIR}/HDF5 --with-mpi=${WORKDIR}/MPICH""
114+
make -j4 -s V=1 LIBTOOLFLAGS=--silent distcheck DISTCHECK_CONFIGURE_FLAGS="--silent --with-hdf5=${WORKDIR}/HDF5 --with-mpi=${WORKDIR}/MPICH"
115+
cd ${WORKDIR}
116+
- name: Print log
117+
if: ${{ always() }}
118+
run: |
119+
WORKDIR=$(pwd)
120+
cat ${WORKDIR}/config.log
121+
ls -laht ${WORKDIR}
122+
[ -f ${WORKDIR}/H5VL_log-1.3.0/_build/sub/config.log ] && cat ${WORKDIR}/H5VL_log-1.3.0/_build/sub/config.log
123+
cat ${WORKDIR}/tests/basic/*.log
124+
cat ${WORKDIR}/tests/dynamic/*.log
125+
cat ${WORKDIR}/tests/testcases/*.log
126+
cat ${WORKDIR}/tests/nc4/*.log
127+
cat ${WORKDIR}/tests/external/hdf5_iotest/*.log
128+
# cat ${WORKDIR}/tests/external/openpmd/*.log
129+
cat ${WORKDIR}/examples/*.log
130+
cat ${WORKDIR}/examples/hdf5_examples/*.log
131+
cat ${WORKDIR}/utils/*/*.log
132+

.github/workflows/mac_mpich.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ jobs:
2828
- name: Install HDF5
2929
run: |
3030
WORKDIR=$(pwd)
31-
rm -rf hdf5-1.13.2.tar.gz hdf5-1.13.2 ${WORKDIR}/.local/hdf5 qout
32-
wget -qc https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.13/hdf5-1.13.2/src/hdf5-1.13.2.tar.gz
33-
tar -zxf hdf5-1.13.2.tar.gz
34-
cd hdf5-1.13.2
31+
VERSION=1.13.3
32+
rm -rf hdf5-${VERSION}.tar.gz hdf5-${VERSION} ${WORKDIR}/.local/hdf5 qout
33+
wget -cq https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.13/hdf5-${VERSION}/src/hdf5-${VERSION}.tar.gz
34+
tar -zxf hdf5-${VERSION}.tar.gz
35+
cd hdf5-${VERSION}
3536
./configure --prefix=${WORKDIR}/.local/hdf5/1.13.0 \
3637
--silent \
3738
--disable-fortran \

.github/workflows/ubuntu_mpich.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ jobs:
5454
rm -rf ${WORKDIR}/HDF5
5555
mkdir ${WORKDIR}/HDF5
5656
cd ${WORKDIR}/HDF5
57-
wget -qc https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.13/hdf5-1.13.2/src/hdf5-1.13.2.tar.gz
58-
tar -zxf hdf5-1.13.2.tar.gz
59-
cd hdf5-1.13.2
57+
VERSION=1.13.3
58+
wget -cq https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.13/hdf5-${VERSION}/src/hdf5-${VERSION}.tar.gz
59+
tar -zxf hdf5-${VERSION}.tar.gz
60+
cd hdf5-${VERSION}
6061
./configure --prefix=${WORKDIR}/HDF5 \
6162
--silent \
6263
--disable-fortran \

.github/workflows/ubuntu_openmpi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
rm -rf HDF5
3939
mkdir HDF5
4040
cd HDF5
41-
VERSION=1.13.2
41+
VERSION=1.13.3
4242
wget -cq https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.13/hdf5-${VERSION}/src/hdf5-${VERSION}.tar.gz
4343
tar -zxf hdf5-${VERSION}.tar.gz
4444
cd hdf5-${VERSION}

0 commit comments

Comments
 (0)