diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2022-03-30 22:58:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 22:58:55 (GMT) |
commit | ab48ed6df05f38dde776056363487f3629aa4cd4 (patch) | |
tree | 7d0affbbb69f3786d38620ede69787f2d1e4d42a /src/H5mpi.c | |
parent | 82bf2e97f740c30f74a884dc93be3052ac4a0557 (diff) | |
download | hdf5-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/H5mpi.c')
-rw-r--r-- | src/H5mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5mpi.c b/src/H5mpi.c index 15fb785..f5d709a 100644 --- a/src/H5mpi.c +++ b/src/H5mpi.c @@ -628,7 +628,7 @@ H5_mpio_gatherv_alloc(void *send_buf, int send_count, MPI_Datatype send_type, co { size_t recv_buf_num_entries = 0; void * recv_buf = NULL; -#if MPI_VERSION >= 3 +#if H5_CHECK_MPI_VERSION(3, 0) MPI_Count type_lb; MPI_Count type_extent; #else @@ -645,7 +645,7 @@ H5_mpio_gatherv_alloc(void *send_buf, int send_count, MPI_Datatype send_type, co HDassert(out_buf && out_buf_num_entries); /* Retrieve the extent of the MPI Datatype being used */ -#if MPI_VERSION >= 3 +#if H5_CHECK_MPI_VERSION(3, 0) if (MPI_SUCCESS != (mpi_code = MPI_Type_get_extent_x(recv_type, &type_lb, &type_extent))) #else if (MPI_SUCCESS != (mpi_code = MPI_Type_get_extent(recv_type, &type_lb, &type_extent))) |