summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-03-30 22:58:55 (GMT)
committerGitHub <noreply@github.com>2022-03-30 22:58:55 (GMT)
commitab48ed6df05f38dde776056363487f3629aa4cd4 (patch)
tree7d0affbbb69f3786d38620ede69787f2d1e4d42a /src/H5private.h
parent82bf2e97f740c30f74a884dc93be3052ac4a0557 (diff)
downloadhdf5-ab48ed6df05f38dde776056363487f3629aa4cd4.zip
hdf5-ab48ed6df05f38dde776056363487f3629aa4cd4.tar.gz
hdf5-ab48ed6df05f38dde776056363487f3629aa4cd4.tar.bz2
Add H5_CHECK_MPI_VERSION macro to check for at least MPI version of (version, subversion) (#1556)
* Fix MPI version check for MPI_Aint_diff usage * Add H5_CHECK_MPI_VERSION macro Adds new H5_CHECK_MPI_VERSION macro to check for MPI library version/subversion pair of at least the specified pair
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index a83ecf0..08e8a5e 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1739,6 +1739,15 @@ typedef struct H5_debug_t {
} H5_debug_t;
#ifdef H5_HAVE_PARALLEL
+
+/*
+ * Check that the MPI library version is at least version
+ * `mpi_version` and subversion `mpi_subversion`
+ */
+#define H5_CHECK_MPI_VERSION(mpi_version, mpi_subversion) \
+ ((MPI_VERSION > (mpi_version)) || \
+ ((MPI_VERSION == (mpi_version)) && (MPI_SUBVERSION >= (mpi_subversion))))
+
extern hbool_t H5_coll_api_sanity_check_g;
#endif /* H5_HAVE_PARALLEL */