Skip to content

Commit 448c3ba

Browse files
authored
Merge pull request #12855 from edgargabriel/topic/hdf5-testsuite
pr-checks: run hdf5 testsuite
2 parents 30b1fb0 + 071bba8 commit 448c3ba

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/hdf5-tests.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: HDF5
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
hdf5-testsuite:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- name: Install dependencies
10+
run: |
11+
sudo apt update
12+
sudo apt install -y --no-install-recommends wget
13+
- uses: actions/checkout@v4
14+
with:
15+
submodules: recursive
16+
- name: Build Open MPI
17+
run: |
18+
./autogen.pl
19+
./configure --prefix=/opt/openmpi --with-pmix=internal --with-prrte=internal --with-hwloc=internal --with-libevent=internal --disable-mpi-fortran --disable-oshmem
20+
make -j 8 && make install
21+
- name: Install HDF5
22+
run: |
23+
wget https://github.com/HDFGroup/hdf5/releases/latest/download/hdf5.tar.gz
24+
tar -xzf hdf5.tar.gz
25+
mv hdf5-1* hdf5
26+
cd hdf5
27+
export PATH=/opt/openmpi/bin:${PATH}
28+
export LD_LIBRARY_PATH=/opt/openmpi/lib:${LD_LIBRARY_PATH}
29+
echo ${PATH}
30+
echo ${LD_LIBRARY_PATH}
31+
./configure --enable-parallel
32+
make -j 8
33+
- name: Tweak MPI
34+
run: |
35+
# Tweak MPI
36+
mca_params="$HOME/.prte/mca-params.conf"
37+
mkdir -p "$(dirname "$mca_params")"
38+
echo rmaps_default_mapping_policy = :oversubscribe >> "$mca_params"
39+
- name: Run testsuite (ompio)
40+
run: |
41+
export PATH=/opt/openmpi/bin:${PATH}
42+
export LD_LIBRARY_PATH=/opt/openmpi/lib:${LD_LIBRARY_PATH}
43+
HDF5TestExpress=0 mpirun --mca io ompio -np 4 ./hdf5/testpar/t_shapesame
44+
mpirun --mca io ompio -np 4 ./hdf5/testpar/t_filters_parallel
45+
mpirun --mca io ompio -np 4 ./hdf5/testpar/testphdf5
46+
- name: Run testsuite (romio)
47+
run: |
48+
export PATH=/opt/openmpi/bin:${PATH}
49+
export LD_LIBRARY_PATH=/opt/openmpi/lib:${LD_LIBRARY_PATH}
50+
HDF5TestExpress=0 mpirun --mca io ^ompio -np 4 ./hdf5/testpar/t_shapesame
51+
mpirun --mca io ^ompio -np 4 ./hdf5/testpar/t_filters_parallel
52+
mpirun --mca io ^ompio -np 4 ./hdf5/testpar/testphdf5

0 commit comments

Comments
 (0)