summaryrefslogtreecommitdiffstats
path: root/src/H5Smpio.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2018-11-27 18:31:54 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2018-11-27 18:31:54 (GMT)
commit8cf3bfb14bd2a80f13d269a9e84cd99f86f19254 (patch)
treee03a64d73ec6cd4b2cfc2d801e22056e839d00a2 /src/H5Smpio.c
parentbd820f7861bcc4a1cda364171e045f9aff81fafc (diff)
downloadhdf5-8cf3bfb14bd2a80f13d269a9e84cd99f86f19254.zip
hdf5-8cf3bfb14bd2a80f13d269a9e84cd99f86f19254.tar.gz
hdf5-8cf3bfb14bd2a80f13d269a9e84cd99f86f19254.tar.bz2
Yanked all MPI-1 calls
Diffstat (limited to 'src/H5Smpio.c')
-rw-r--r--src/H5Smpio.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/H5Smpio.c b/src/H5Smpio.c
index e71e2cb..935d279 100644
--- a/src/H5Smpio.c
+++ b/src/H5Smpio.c
@@ -879,18 +879,14 @@ H5S_mpio_hyper_type(const H5S_t *space, size_t elmt_size,
HMPI_GOTO_ERROR(FAIL, "MPI_Type_contiguous failed", mpi_code)
}
-#if MPI_VERSION >= 2
-{
/* As of version 4.0, OpenMPI now turns off MPI-1 API calls by default,
* so we're using the MPI-2 version even though we don't need the lb
* value.
*/
- MPI_Aint unused_lb_arg;
- MPI_Type_get_extent(inner_type, &unused_lb_arg, &inner_extent);
-}
-#else
- MPI_Type_extent(inner_type, &inner_extent);
-#endif
+ {
+ MPI_Aint unused_lb_arg;
+ MPI_Type_get_extent(inner_type, &unused_lb_arg, &inner_extent);
+ }
stride_in_bytes = inner_extent * (MPI_Aint)d[i].strid;
/* If the element count is larger than what a 32 bit integer can hold,
@@ -1511,18 +1507,14 @@ static herr_t H5S_mpio_create_large_type (hsize_t num_elements,
}
}
-#if MPI_VERSION >= 2
-{
/* As of version 4.0, OpenMPI now turns off MPI-1 API calls by default,
* so we're using the MPI-2 version even though we don't need the lb
* value.
*/
- MPI_Aint unused_lb_arg;
- MPI_Type_get_extent(old_type, &unused_lb_arg, &old_extent);
-}
-#else
- MPI_Type_extent(old_type, &old_extent);
-#endif
+ {
+ MPI_Aint unused_lb_arg;
+ MPI_Type_get_extent(old_type, &unused_lb_arg, &old_extent);
+ }
/* Set up the arguments for MPI_Type_struct constructor */
type[0] = outer_type;