Skip to content

pr-checks: run hdf5 testsuite #12855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/hdf5-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: HDF5

on: [pull_request]

jobs:
hdf5-testsuite:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y --no-install-recommends wget
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Open MPI
run: |
./autogen.pl
./configure --prefix=/opt/openmpi --with-pmix=internal --with-prrte=internal --with-hwloc=internal --with-libevent=internal --disable-mpi-fortran --disable-oshmem
make -j 8 && make install
- name: Install HDF5
run: |
wget https://github.com/HDFGroup/hdf5/releases/latest/download/hdf5.tar.gz
tar -xzf hdf5.tar.gz
mv hdf5-1* hdf5
cd hdf5
export PATH=/opt/openmpi/bin:${PATH}
export LD_LIBRARY_PATH=/opt/openmpi/lib:${LD_LIBRARY_PATH}
echo ${PATH}
echo ${LD_LIBRARY_PATH}
./configure --enable-parallel
make -j 8
- name: Tweak MPI
run: |
# Tweak MPI
mca_params="$HOME/.prte/mca-params.conf"
mkdir -p "$(dirname "$mca_params")"
echo rmaps_default_mapping_policy = :oversubscribe >> "$mca_params"
- name: Run testsuite (ompio)
run: |
export PATH=/opt/openmpi/bin:${PATH}
export LD_LIBRARY_PATH=/opt/openmpi/lib:${LD_LIBRARY_PATH}
HDF5TestExpress=0 mpirun --mca io ompio -np 4 ./hdf5/testpar/t_shapesame
mpirun --mca io ompio -np 4 ./hdf5/testpar/t_filters_parallel
mpirun --mca io ompio -np 4 ./hdf5/testpar/testphdf5
- name: Run testsuite (romio)
run: |
export PATH=/opt/openmpi/bin:${PATH}
export LD_LIBRARY_PATH=/opt/openmpi/lib:${LD_LIBRARY_PATH}
HDF5TestExpress=0 mpirun --mca io ^ompio -np 4 ./hdf5/testpar/t_shapesame
mpirun --mca io ^ompio -np 4 ./hdf5/testpar/t_filters_parallel
mpirun --mca io ^ompio -np 4 ./hdf5/testpar/testphdf5
Loading