mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Add hdf5 collective metadata api detection to configure-based build
This commit is contained in:
parent
72c1948980
commit
9491ea2c5b
@ -923,7 +923,7 @@ if test "x$enable_netcdf_4" = xyes; then
|
|||||||
[AC_MSG_ERROR([Can't find or link to the hdf5 high-level. Use --disable-netcdf-4, or see config.log for errors.])])
|
[AC_MSG_ERROR([Can't find or link to the hdf5 high-level. Use --disable-netcdf-4, or see config.log for errors.])])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([hdf5.h], [], [AC_MSG_ERROR([Compiling a test with HDF5 failed. Either hdf5.h cannot be found, or config.log should be checked for other reason.])])
|
AC_CHECK_HEADERS([hdf5.h], [], [AC_MSG_ERROR([Compiling a test with HDF5 failed. Either hdf5.h cannot be found, or config.log should be checked for other reason.])])
|
||||||
AC_CHECK_FUNCS([H5Pget_fapl_mpiposix H5Pget_fapl_mpio H5Pset_deflate H5Z_SZIP H5free_memory])
|
AC_CHECK_FUNCS([H5Pget_fapl_mpiposix H5Pget_fapl_mpio H5Pset_deflate H5Z_SZIP H5free_memory H5Pset_all_coll_metadata_ops])
|
||||||
|
|
||||||
# The user may have parallel HDF5 based on MPI POSIX.
|
# The user may have parallel HDF5 based on MPI POSIX.
|
||||||
if test "x$ac_cv_func_H5Pget_fapl_mpiposix" = xyes; then
|
if test "x$ac_cv_func_H5Pget_fapl_mpiposix" = xyes; then
|
||||||
@ -935,6 +935,11 @@ if test "x$enable_netcdf_4" = xyes; then
|
|||||||
AC_DEFINE([USE_PARALLEL_MPIO], [1], [if true, compile in parallel netCDF-4 based on MPI/IO])
|
AC_DEFINE([USE_PARALLEL_MPIO], [1], [if true, compile in parallel netCDF-4 based on MPI/IO])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check to see if HDF5 library has collective metadata APIs, (HDF5 >= 1.10.0)
|
||||||
|
if test "x$ac_cv_func_H5Pset_all_coll_metadata_ops" = xyes; then
|
||||||
|
AC_DEFINE([HDF5_HAS_COLL_METADATA_OPS], [1], [if true, use collective metadata ops in parallel netCDF-4])
|
||||||
|
fi
|
||||||
|
|
||||||
# If parallel is available in hdf5, enable it in the C code. Also add some stuff to netcdf.h.
|
# If parallel is available in hdf5, enable it in the C code. Also add some stuff to netcdf.h.
|
||||||
hdf5_parallel=no
|
hdf5_parallel=no
|
||||||
if test "x$ac_cv_func_H5Pget_fapl_mpio" = xyes -o "x$ac_cv_func_H5Pget_fapl_mpiposix" = xyes; then
|
if test "x$ac_cv_func_H5Pget_fapl_mpio" = xyes -o "x$ac_cv_func_H5Pget_fapl_mpiposix" = xyes; then
|
||||||
|
Loading…
Reference in New Issue
Block a user