Skip to content

Commit bbbf4c5

Browse files
authored
Change HDF5 develop to use cmake and fix CI integration (#136)
* update CI versions and change HDF5 develop to use cmake * change upload version * fix CI * change HDF5 compilation flags * update VOL ASYNC version in CI and drop debug * fix CI * add build log for E3SM * add build log for E3SM * fix action syntax * bump version * update E3SM dependecy * update GitHub Ubuntu CI image version * fix NERSC integration * fix typo * improve CI usage * fix CI * changes in GitLab CI integration * change build
1 parent 977e879 commit bbbf4c5

13 files changed

+194
-95
lines changed

.github/workflows/clang-format-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111
- name: Run clang-format style check for C programs.
12-
uses: DoozyX/clang-format-lint-action@v0.11
12+
uses: DoozyX/clang-format-lint-action@v0.18.2
1313
with:
1414
source: '.'
1515
extensions: 'c,h,cpp,hpp'

.github/workflows/clang-format-fix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212
- name: Run clang-format style check for C programs.
13-
uses: DoozyX/clang-format-lint-action@v0.11
13+
uses: DoozyX/clang-format-lint-action@v0.18.2
1414
with:
1515
source: '.'
1616
extensions: 'c,h,cpp,hpp'

.github/workflows/h5bench-hdf5-1.10.4.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
branches:
1010
- master
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
h5bench:
14-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1519
container:
1620
image: hpcio/hdf5-1.10.4
1721
timeout-minutes: 60
@@ -217,13 +221,9 @@ jobs:
217221
cd build
218222
./h5bench --debug --abort-on-failure ../samples/sync-macsio.json
219223
220-
- name: Setup tmate session
221-
if: ${{ failure() }}
222-
uses: mxschmitt/action-tmate@v3
223-
224224
- name: Upload artifact
225225
if: always()
226-
uses: actions/upload-artifact@v2
226+
uses: actions/upload-artifact@v4
227227
with:
228228
name: test
229229
path: build/storage/**/std*

.github/workflows/h5bench-hdf5-1.10.7.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
branches:
1010
- master
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
h5bench:
14-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1519
container:
1620
image: hpcio/hdf5-1.10.7
1721
timeout-minutes: 60
@@ -217,13 +221,9 @@ jobs:
217221
cd build
218222
./h5bench --debug --abort-on-failure ../samples/sync-macsio.json
219223
220-
- name: Setup tmate session
221-
if: ${{ failure() }}
222-
uses: mxschmitt/action-tmate@v3
223-
224224
- name: Upload artifact
225225
if: always()
226-
uses: actions/upload-artifact@v2
226+
uses: actions/upload-artifact@v4
227227
with:
228228
name: test
229229
path: build/h5bench_e3sm-prefix/src/h5bench_e3sm-stamp/*

.github/workflows/h5bench-hdf5-1.10.8.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
branches:
1010
- master
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
h5bench:
14-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1519
container:
1620
image: hpcio/hdf5-1.10.8
1721
timeout-minutes: 60
@@ -217,13 +221,9 @@ jobs:
217221
cd build
218222
./h5bench --debug --abort-on-failure ../samples/sync-macsio.json
219223
220-
- name: Setup tmate session
221-
if: ${{ failure() }}
222-
uses: mxschmitt/action-tmate@v3
223-
224224
- name: Upload artifact
225225
if: always()
226-
uses: actions/upload-artifact@v2
226+
uses: actions/upload-artifact@v4
227227
with:
228228
name: test
229229
path: build/storage/**/std*

.github/workflows/h5bench-hdf5-1.12.0.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
branches:
1010
- master
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
h5bench:
14-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1519
container:
1620
image: hpcio/hdf5-1.12.0
1721
timeout-minutes: 60
@@ -252,13 +256,9 @@ jobs:
252256
cd build
253257
./h5bench --debug --abort-on-failure ../samples/sync-macsio.json
254258
255-
- name: Setup tmate session
256-
if: ${{ failure() }}
257-
uses: mxschmitt/action-tmate@v3
258-
259259
- name: Upload artifact
260260
if: always()
261-
uses: actions/upload-artifact@v2
261+
uses: actions/upload-artifact@v4
262262
with:
263263
name: test
264264
path: build/storage/**/std*

.github/workflows/h5bench-hdf5-1.14.0.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
branches:
1010
- master
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
h5bench:
14-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1519
container:
1620
image: hpcio/hdf5-1.14.0
1721
timeout-minutes: 60
@@ -507,13 +511,9 @@ jobs:
507511
508512
./h5bench --debug --abort-on-failure ../samples/async-amrex.json
509513
510-
- name: Setup tmate session
511-
if: ${{ failure() }}
512-
uses: mxschmitt/action-tmate@v3
513-
514514
- name: Upload artifact
515515
if: always()
516-
uses: actions/upload-artifact@v2
516+
uses: actions/upload-artifact@v4
517517
with:
518518
name: test
519519
path: build*/storage/**/std*

.github/workflows/h5bench-hdf5-1.14.1.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
branches:
1010
- master
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
h5bench:
14-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1519
container:
1620
image: hpcio/hdf5-1.14.1
1721
timeout-minutes: 60
@@ -507,13 +511,9 @@ jobs:
507511
508512
./h5bench --debug --abort-on-failure ../samples/async-amrex.json
509513
510-
- name: Setup tmate session
511-
if: ${{ failure() }}
512-
uses: mxschmitt/action-tmate@v3
513-
514514
- name: Upload artifact
515515
if: always()
516-
uses: actions/upload-artifact@v2
516+
uses: actions/upload-artifact@v4
517517
with:
518518
name: test
519519
path: build*/storage/**/std*

.github/workflows/h5bench-hdf5-develop-test.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55

66
workflow_dispatch:
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
h5bench:
10-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1115
timeout-minutes: 60
1216
env:
1317
OMPI_ALLOW_RUN_AS_ROOT: 1
@@ -28,21 +32,29 @@ jobs:
2832
git clone https://github.com/HDFGroup/hdf5.git
2933
3034
# VOL-ASYNC
31-
git clone --recursive https://github.com/hpc-io/vol-async.git --branch v1.7 /opt/vol-async
35+
git clone --recursive https://github.com/hpc-io/vol-async.git --branch v1.9 /opt/vol-async
3236
3337
python3 -m pip install pytest
3438
3539
- name: Build HDF5 develop
3640
run: |
3741
export HDF5_DIR=/opt/hdf5
38-
export HDF5_LIBTOOL=/usr/bin/libtoolize
39-
42+
4043
mkdir $HDF5_DIR
44+
mkdir hdf5/build
4145
42-
cd hdf5
46+
cd hdf5/build
4347
44-
./autogen.sh
45-
./configure --prefix=$HDF5_DIR --enable-parallel --enable-threadsafe --enable-unsupported
48+
cmake \
49+
-DCMAKE_INSTALL_PREFIX=$HDF5_DIR \
50+
-DHDF5_ENABLE_PARALLEL=ON \
51+
-DHDF5_ENABLE_THREADSAFE=ON \
52+
-DHDF5_ALLOW_UNSUPPORTED=ON \
53+
-DBUILD_TESTING=OFF \
54+
-DHDF5_BUILD_HL_LIB=OFF \
55+
-DHDF5_BUILD_EXAMPLES=OFF \
56+
-DHDF5_BUILD_TOOLS:BOOL=OFF \
57+
-DCMAKE_C_COMPILER=mpicc ..
4658
4759
make -j 2
4860
make install
@@ -146,14 +158,12 @@ jobs:
146158
147159
ctest --verbose .
148160
149-
- name: Setup tmate session
150-
if: ${{ failure() }}
151-
uses: mxschmitt/action-tmate@v3
152-
153161
- name: Upload artifact
154162
if: always()
155-
uses: actions/upload-artifact@v2
163+
uses: actions/upload-artifact@v4
156164
with:
157165
name: test
158-
path: build*/storage/**/std*
166+
path: |
167+
build*/storage/**/std*
168+
build*/h5bench_e3sm-prefix/src/h5bench_e3sm-stamp/h5bench_e3sm-build-*.log
159169
retention-days: 5

.github/workflows/h5bench-hdf5-develop.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
h5bench:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
timeout-minutes: 60
1212
env:
1313
OMPI_ALLOW_RUN_AS_ROOT: 1
@@ -28,19 +28,27 @@ jobs:
2828
git clone https://github.com/HDFGroup/hdf5.git
2929
3030
# VOL-ASYNC
31-
git clone --recursive https://github.com/hpc-io/vol-async.git --branch v1.7 /opt/vol-async
31+
git clone --recursive https://github.com/hpc-io/vol-async.git --branch v1.9 /opt/vol-async
3232
3333
- name: Build HDF5 develop
3434
run: |
3535
export HDF5_DIR=/opt/hdf5
36-
export HDF5_LIBTOOL=/usr/bin/libtoolize
37-
36+
3837
mkdir $HDF5_DIR
38+
mkdir hdf5/build
3939
40-
cd hdf5
40+
cd hdf5/build
4141
42-
./autogen.sh
43-
./configure --prefix=$HDF5_DIR --enable-parallel --enable-threadsafe --enable-unsupported
42+
cmake \
43+
-DCMAKE_INSTALL_PREFIX=$HDF5_DIR \
44+
-DHDF5_ENABLE_PARALLEL=ON \
45+
-DHDF5_ENABLE_THREADSAFE=ON \
46+
-DHDF5_ALLOW_UNSUPPORTED=ON \
47+
-DBUILD_TESTING=OFF \
48+
-DHDF5_BUILD_HL_LIB=OFF \
49+
-DHDF5_BUILD_EXAMPLES=OFF \
50+
-DHDF5_BUILD_TOOLS:BOOL=OFF \
51+
-DCMAKE_C_COMPILER=mpicc ..
4452
4553
make -j 2
4654
make install
@@ -148,10 +156,6 @@ jobs:
148156
149157
./h5bench --debug --abort-on-failure ../samples/async-write-read-contig-1d-small.json
150158
151-
- name: Setup tmate session
152-
if: ${{ failure() }}
153-
uses: mxschmitt/action-tmate@v3
154-
155159
- name: Test h5bench SYNC write 1D contiguous (memory) strided (file)
156160
run: |
157161
export HDF5_HOME=/opt/hdf5
@@ -639,14 +643,12 @@ jobs:
639643
640644
./h5bench --debug --abort-on-failure ../samples/async-amrex.json
641645
642-
- name: Setup tmate session
643-
if: ${{ failure() }}
644-
uses: mxschmitt/action-tmate@v3
645-
646646
- name: Upload artifact
647647
if: always()
648-
uses: actions/upload-artifact@v2
648+
uses: actions/upload-artifact@v4
649649
with:
650650
name: test
651-
path: build*/storage/**/std*
651+
path: |
652+
build*/storage/**/std*
653+
build*/h5bench_e3sm-prefix/src/h5bench_e3sm-stamp/h5bench_e3sm-build-*.log
652654
retention-days: 5

0 commit comments

Comments
 (0)