forked from HDFGroup/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'canonical/develop' into fix_chunk_addre…
…ss_bugs
- Loading branch information
Showing
254 changed files
with
8,713 additions
and
2,756 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: hdf5 VFD CI main | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
build_sys: | ||
description: "build system used" | ||
required: true | ||
type: string | ||
build_mode: | ||
description: "release vs. debug build" | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
# Test HDF5 VFDs that are always built by default | ||
#hdf5_vfd_standard: | ||
# uses: ./.github/workflows/vfd-standard.yml | ||
# with: | ||
# build_sys: "${{ inputs.build_sys }}" | ||
# build_mode: "${{ inputs.build_mode }}" | ||
|
||
# Test HDF5 MPI I/O VFD | ||
#hdf5_vfd_mpiio: | ||
# uses: ./.github/workflows/vfd-mpiio.yml | ||
# with: | ||
# build_sys: "${{ inputs.build_sys }}" | ||
# build_mode: "${{ inputs.build_mode }}" | ||
|
||
# Test HDF5 Direct VFD | ||
#hdf5_vfd_direct: | ||
# uses: ./.github/workflows/vfd-direct.yml | ||
# with: | ||
# build_sys: "${{ inputs.build_sys }}" | ||
# build_mode: "${{ inputs.build_mode }}" | ||
|
||
#Test HDF5 Mirror VFD | ||
#hdf5_vfd_mirror: | ||
# uses: ./.github/workflows/vfd-mirror.yml | ||
# with: | ||
# build_sys: "${{ inputs.build_sys }}" | ||
# build_mode: "${{ inputs.build_mode }}" | ||
|
||
#Test HDF5 ROS3 VFD | ||
#hdf5_vfd_ros3: | ||
# uses: ./.github/workflows/vfd-ros3.yml | ||
# with: | ||
# build_sys: "${{ inputs.build_sys }}" | ||
# build_mode: "${{ inputs.build_mode }}" | ||
|
||
#Test HDF5 HDFS VFD | ||
#hdf5_vfd_hdfs: | ||
# uses: ./.github/workflows/vfd-hdfs.yml | ||
# with: | ||
# build_sys: "${{ inputs.build_sys }}" | ||
# build_mode: "${{ inputs.build_mode }}" | ||
|
||
# Test HDF5 Subfiling VFD | ||
hdf5_vfd_subfiling: | ||
uses: ./.github/workflows/vfd-subfiling.yml | ||
with: | ||
build_sys: "${{ inputs.build_sys }}" | ||
build_mode: "${{ inputs.build_mode }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
name: Test HDF5 Subfiling VFD | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
build_sys: | ||
description: "build system used" | ||
required: true | ||
type: string | ||
build_mode: | ||
description: "release vs. debug build" | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build_and_test: | ||
strategy: | ||
# Let jobs run to completion even if one fails | ||
fail-fast: false | ||
matrix: | ||
os_name: ["Ubuntu"] | ||
# os_name: ["Ubuntu", "MacOS"] | ||
mpi_lib: ["OpenMPI"] | ||
# mpi_lib: ["OpenMPI", "MPICH"] | ||
include: | ||
- os_name: "Ubuntu" | ||
os: ubuntu-latest | ||
mpi_lib: "OpenMPI" | ||
# - os_name: "Ubuntu" | ||
# os: ubuntu-latest | ||
# mpi_lib: "MPICH" | ||
# - os_name: "MacOS" | ||
# os: macos-latest | ||
# mpi_lib: "OpenMPI" | ||
# - os_name: "MacOS" | ||
# os: macos-latest | ||
# mpi_lib: "MPICH" | ||
|
||
# Sets the job's name from the properties | ||
name: "Test HDF5 Subfiling VFD (${{ inputs.build_sys }} ${{ inputs.build_mode }}) on ${{ matrix.os_name }} with ${{ matrix.mpi_lib }}" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Install Linux Dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt-get install automake autoconf libtool libtool-bin | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
|
||
# For now, just install OpenMPI or MPICH with the package | ||
# manager. Eventually, we should pick one or 2 release | ||
# versions of each, then build and cache those installations | ||
- name: Install OpenMPI | ||
run: | | ||
sudo apt update | ||
sudo apt-get install libopenmpi-dev | ||
echo "CC=mpicc" >> $GITHUB_ENV | ||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.mpi_lib == 'OpenMPI' }} | ||
|
||
- name: Install MPICH | ||
run: | | ||
sudo apt update | ||
sudo apt-get install libmpich-dev | ||
echo "CC=mpicc" >> $GITHUB_ENV | ||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.mpi_lib == 'MPICH' }} | ||
|
||
- name: Checkout HDF5 | ||
uses: actions/[email protected] | ||
|
||
- name: Configure HDF5 with Subfiling VFD (Autotools) | ||
shell: bash | ||
run: | | ||
sh ./autogen.sh | ||
mkdir "${{ runner.workspace }}/build" | ||
cd "${{ runner.workspace }}/build" | ||
$GITHUB_WORKSPACE/configure \ | ||
--enable-build-mode=${{ inputs.build_mode }} \ | ||
--enable-shared \ | ||
--disable-static \ | ||
--enable-parallel \ | ||
--enable-subfiling-vfd \ | ||
if: ${{ inputs.build_sys == 'Autotools' }} | ||
|
||
- name: Configure HDF5 with Subfiling VFD (CMake) | ||
shell: bash | ||
run: | | ||
mkdir ${{ runner.workspace }}/build | ||
cd ${{ runner.workspace }}/build | ||
cmake -DCMAKE_BUILD_TYPE=${{ inputs.build_mode }} \ | ||
-DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/hdf5_build \ | ||
-DBUILD_STATIC_LIBS=OFF \ | ||
-DHDF5_TEST_VFD:BOOL=ON \ | ||
-DHDF5_ENABLE_PARALLEL:BOOL=ON \ | ||
-DHDF5_ENABLE_SUBFILING_VFD:BOOL=ON \ | ||
-DMPIEXEC_MAX_NUMPROCS=2 \ | ||
$GITHUB_WORKSPACE | ||
cat src/libhdf5.settings | ||
if: ${{ inputs.build_sys == 'CMake' }} | ||
|
||
- name: Build HDF5 (Autotools) | ||
shell: bash | ||
working-directory: ${{ runner.workspace }}/build | ||
run: make -j3 | ||
if: ${{ inputs.build_sys == 'Autotools' }} | ||
|
||
- name: Build HDF5 (CMake) | ||
shell: bash | ||
working-directory: ${{ runner.workspace }}/build | ||
run: | | ||
cmake --build . --parallel 3 --config ${{ inputs.build_mode }} | ||
echo "LD_LIBRARY_PATH=${{ runner.workspace }}/build/bin" >> $GITHUB_ENV | ||
if: ${{ inputs.build_sys == 'CMake' }} | ||
|
||
- name: Test HDF5 Subfiling VFD (Autotools) | ||
working-directory: ${{ runner.workspace }}/build/testpar | ||
# For now, just run the tests directly setup for use with the | ||
# Subfiling VFD. We can expand on this once the library's tests | ||
# are better separated into categories for VFD testing. | ||
run: | | ||
mpirun -np 2 t_subfiling_vfd | ||
mpirun -np 2 t_vfd | ||
if: ${{ inputs.build_sys == 'Autotools' }} | ||
|
||
- name: Test HDF5 Subfiling VFD (CMake) | ||
working-directory: ${{ runner.workspace }}/build | ||
run: | | ||
# For now, just run the tests directly setup for use with the | ||
# Subfiling VFD. We can expand on this once the library's tests | ||
# are better separated into categories for VFD testing. | ||
ctest --build-config ${{ inputs.build_mode }} -VV \ | ||
-R "MPI_TEST_t_subfiling_vfd|MPI_TEST_t_vfd|H5_ph5_subfiling" | ||
if: ${{ inputs.build_sys == 'CMake' }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: hdf5 VFD CI | ||
|
||
# Run VFD CI daily at 07:00 CDT (12:00 UTC) | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 12 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build_and_test: | ||
strategy: | ||
matrix: | ||
build_sys: ["CMake", "Autotools"] | ||
build_mode: ["Release", "production", "Debug", "debug"] | ||
include: | ||
- build_sys: "CMake" | ||
build_mode: "Release" | ||
- build_sys: "CMake" | ||
build_mode: "Debug" | ||
- build_sys: "Autotools" | ||
build_mode: "production" | ||
- build_sys: "Autotools" | ||
build_mode: "debug" | ||
# Exclude mismatched configurations | ||
exclude: | ||
- build_sys: "CMake" | ||
build_mode: "production" | ||
- build_sys: "CMake" | ||
build_mode: "debug" | ||
- build_sys: "Autotools" | ||
build_mode: "Release" | ||
- build_sys: "Autotools" | ||
build_mode: "Debug" | ||
|
||
# Sets the job's name from the properties | ||
name: "${{ matrix.build_sys }} ${{ matrix.build_mode }} Workflows" | ||
|
||
# Don't run the action if the commit message says to skip CI | ||
if: "!contains(github.event.head_commit.message, 'skip-ci')" | ||
|
||
uses: ./.github/workflows/vfd-main.yml | ||
with: | ||
build_sys: ${{ matrix.build_sys }} | ||
build_mode: ${{ matrix.build_mode }} |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.