summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpio.c
diff options
context:
space:
mode:
authorEvan Ramos <evan@hpccharm.com>2020-12-18 20:30:31 (GMT)
committerGitHub <noreply@github.com>2020-12-18 20:30:31 (GMT)
commit996d07102d426ae673dff0bb49409e5ae4d1aecf (patch)
tree7e459142adfae2defea2362ea96560b726ddc51d /src/H5FDmpio.c
parentadfac394c21cde8dd75f574534464ca69e3a00df (diff)
downloadhdf5-996d07102d426ae673dff0bb49409e5ae4d1aecf.zip
hdf5-996d07102d426ae673dff0bb49409e5ae4d1aecf.tar.gz
hdf5-996d07102d426ae673dff0bb49409e5ae4d1aecf.tar.bz2
H5FD__mpio_read: Fix MPI_Bcast datatype (#205)
Signed-off-by: Evan Ramos <evan@hpccharm.com>
Diffstat (limited to 'src/H5FDmpio.c')
-rw-r--r--src/H5FDmpio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index a4e0baf..2f5ed64 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -1271,7 +1271,11 @@ H5FD__mpio_read(H5FD_t *_file, H5FD_mem_t H5_ATTR_UNUSED type, hid_t H5_ATTR_UNU
* of the data. (QAK - 2019/1/2)
*/
if (rank0_bcast)
- if (MPI_SUCCESS != MPI_Bcast(&bytes_read, 1, MPI_LONG_LONG, 0, file->comm))
+#if MPI_VERSION >= 3
+ if (MPI_SUCCESS != MPI_Bcast(&bytes_read, 1, MPI_COUNT, 0, file->comm))
+#else
+ if (MPI_SUCCESS != MPI_Bcast(&bytes_read, 1, MPI_INT, 0, file->comm))
+#endif
HMPI_GOTO_ERROR(FAIL, "MPI_Bcast failed", 0)
/* Get the type's size */