Skip to content

Commit

Permalink
Merge branch 'master' into exodiff-changeset-modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema authored Feb 18, 2025
2 parents 98db272 + 308a412 commit 0755cf2
Show file tree
Hide file tree
Showing 12 changed files with 65 additions and 57 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_netcdf_no_hdf5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
compiler: [ gnu, clang, mpi ]
netcdf: [ 4.9.2 ]
netcdf: [ 4.9.3 ]
steps:

- name: Harden Runner
Expand All @@ -48,7 +48,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.compiler }}-${{ matrix.netcdf }}
key: TPL-v5-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.netcdf }}
key: TPL-v3-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.netcdf }}

- name: Build TPL-${{ matrix.compiler }}-${{ matrix.netcdf }}
if: steps.cache-TPL.outputs.cache-hit != 'true'
Expand All @@ -67,7 +67,7 @@ jobs:
strategy:
fail-fast: false
matrix:
netcdf: [ 4.9.2 ]
netcdf: [ 4.9.3 ]
config:
- {
name: "Debug serial build",
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.config.compiler }}-${{ matrix.netcdf }}
key: TPL-v5-${{ runner.os }}-${{ matrix.config.compiler }}-${{ matrix.netcdf }}
key: TPL-v3-${{ runner.os }}-${{ matrix.config.compiler }}-${{ matrix.netcdf }}

- name: Check Cache
shell: bash -l {0}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
matrix:
compiler: [ gnu, clang, mpi ]
hdf5: [ V110, V114 ]
netcdf: [ 4.9.2 ]
netcdf: [ 4.9.3 ]
cgns: [ 4.4.0 ]
steps:

Expand All @@ -48,7 +48,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v2-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v4-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}

- name: Build TPL-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
if: steps.cache-TPL.outputs.cache-hit != 'true'
Expand All @@ -71,7 +71,7 @@ jobs:
matrix:
compiler: [ gnu, clang, mpi ]
hdf5: [ V110, V114 ]
netcdf: [ 4.9.2 ]
netcdf: [ 4.9.3 ]
cgns: [ 4.4.0 ]
steps:

Expand All @@ -91,7 +91,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v2-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v4-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}

- name: Check Cache
shell: bash -l {0}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
matrix:
compiler: [ gnu, clang, mpi ]
hdf5: [ V114 ]
netcdf: [ 4.9.2 ]
netcdf: [ 4.9.3 ]
cgns: [ 4.4.0 ]
steps:

Expand All @@ -49,7 +49,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v2-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v3-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}

- name: Build TPL-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
if: steps.cache-TPL.outputs.cache-hit != 'true'
Expand All @@ -69,7 +69,7 @@ jobs:
fail-fast: false
matrix:
hdf5: [ V114 ]
netcdf: [ 4.9.2 ]
netcdf: [ 4.9.3 ]
cgns: [ 4.4.0 ]
config:
- {
Expand Down Expand Up @@ -396,7 +396,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.config.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v2-${{ runner.os }}-${{ matrix.config.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v3-${{ runner.os }}-${{ matrix.config.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}

- name: Check Cache
shell: bash -l {0}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/coverity-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
matrix:
compiler: [ gnu ]
hdf5: [ V110 ]
netcdf: [ 4.9.2 ]
hdf5: [ V114 ]
netcdf: [ 4.9.3 ]
cgns: [ 4.4.0 ]
steps:

Expand All @@ -39,7 +39,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v2-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v3-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}

- name: Build TPL-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
if: steps.cache-TPL.outputs.cache-hit != 'true'
Expand All @@ -61,8 +61,8 @@ jobs:
strategy:
matrix:
compiler: [ gnu ]
hdf5: [ V110 ]
netcdf: [ 4.9.2 ]
hdf5: [ V114 ]
netcdf: [ 4.9.3 ]
cgns: [ 4.4.0 ]
steps:

Expand All @@ -82,7 +82,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v2-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v3-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}

- name: Check Cache
shell: bash -l {0}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/intel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
compiler: [ intel, mpi ]
hdf5: [ V114 ]
netcdf: [ 4.9.2 ]
netcdf: [ 4.9.3 ]
cgns: [ 4.4.0 ]

defaults:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v5intel-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v3intel-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}

- name: Build TPL-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
if: steps.cache-TPL.outputs.cache-hit != 'true'
Expand All @@ -93,7 +93,7 @@ jobs:
matrix:
compiler: [ intel, mpi ]
hdf5: [ V114 ]
netcdf: [ 4.9.2 ]
netcdf: [ 4.9.3 ]
cgns: [ 4.4.0 ]
steps:

Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/environments/${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v5intel-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}
key: TPL-v3intel-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-${{ matrix.cgns }}

- name: Check Cache
shell: bash -l {0}
Expand Down
4 changes: 2 additions & 2 deletions TPL/matio/runcmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ cmake .. -DCMAKE_C_COMPILER:FILEPATH=${CC} \
-DMATIO_DEFAULT_FILE_VERSION=${DEFAULT_VERSION} \
-DMATIO_MAT73:BOOL=${HDF5} \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PATH} \
-DCMAKE_INSTALL_RPATH=${INSTALL_PATH}/lib \
-DCMAKE_INSTALL_LIBDIR:PATH=lib \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DMATIO_WITH_HDF5:BOOL=${HDF5} \
-DMATIO_WITH_ZLIB:BOOL=ON \
-DHDF5_ROOT:PATH=${INSTALL_PATH} \
-DHDF5_DIR:PATH=${INSTALL_PATH} \
-DHDF5_DIR:PATH=${INSTALL_PATH}/cmake \
${LOCAL_ZLIB} ${EXTRA_DEPS}


Expand Down
5 changes: 3 additions & 2 deletions TPL/netcdf/runcmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ fi
if [[ "$HDF5" == "ON" || "$HDF5" == "YES" ]]
then
export HDF5_PLUGIN_PATH=${INSTALL_PATH}/lib/hdf5/lib/plugin
HDF5_INFO="-DHDF5_ROOT:PATH=${INSTALL_PATH} -DHDF5_DIR:PATH=${INSTALL_PATH} -D${PREFIX}ENABLE_NETCDF4:BOOL=ON -D${PREFIX}PLUGIN_INSTALL_DIR=YES"
HDF5_INFO="-DHDF5_ROOT:PATH=${INSTALL_PATH} -DHDF5_DIR:PATH=${INSTALL_PATH} -D${PREFIX}ENABLE_HDF5:BOOL=ON -D${PREFIX}PLUGIN_INSTALL_DIR=YES"
else
HDF5_INFO="-DENABLE_HDF5=OFF -D${PREFIX}ENABLE_NETCDF4:BOOL=OFF"
HDF5_INFO="-DENABLE_HDF5=OFF -D${PREFIX}ENABLE_HDF5:BOOL=OFF"
fi

NEEDS_ZLIB="${NEEDS_ZLIB:-NO}"
Expand Down Expand Up @@ -64,6 +64,7 @@ cmake .. -DCMAKE_C_COMPILER:FILEPATH=${CC} \
-DBUILD_SHARED_LIBS:BOOL=${SHARED} \
-DBUILD_TESTING:BOOL=OFF \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PATH} \
-DCMAKE_INSTALL_RPATH=${INSTALL_PATH}/lib \
-DCMAKE_INSTALL_LIBDIR:PATH=lib \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_PREFIX_PATH=${INSTALL_PATH} \
Expand Down
3 changes: 2 additions & 1 deletion cmake/modules/FindMatio.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ else(Matio_LIBRARIES AND Matio_INCLUDE_DIRS)
file(STRINGS "${inc_path}/matio_pubconf.h" matio_default_version REGEX " MAT_FT_DEFAULT ")
string(REGEX MATCH "4|73" default_version "${matio_default_version}")
if (default_version EQUAL 73)
add_package_dependency(Matio DEPENDS_ON HDF5)
add_library(MATIO::HDF5 INTERFACE IMPORTED)

endif()
endif()

Expand Down
Loading

0 comments on commit 0755cf2

Please sign in to comment.