summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-05-11 22:23:58 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-05-11 22:23:58 (GMT)
commit09d2a0e719fd3b41bbecf38768e7b70b623bda08 (patch)
tree64453dda5ddd42d18998ee79c3969f72ed4e10e6 /src
parent6c722c38466583ff9de207975cd68f60df6eb1c5 (diff)
downloadhdf5-09d2a0e719fd3b41bbecf38768e7b70b623bda08.zip
hdf5-09d2a0e719fd3b41bbecf38768e7b70b623bda08.tar.gz
hdf5-09d2a0e719fd3b41bbecf38768e7b70b623bda08.tar.bz2
[svn-r3914] Purpose:
Replace Kludge with Another Kludge Description: The MPI_Get_count function isn't found on most systems. We need to replace this with a configure call which checks and defines the macro H5_HAVE_MPI_GET_COUNT or something. Solution: If-def'ed out the code for everyone (since H5_HAVE_MPI_GET_COUNT is never defined anywhere). Platforms tested: SDSC HP N9000
Diffstat (limited to 'src')
-rw-r--r--src/H5FDmpio.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index 55db611..48d9155 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -1168,7 +1168,12 @@ H5FD_mpio_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id, haddr_t add
* So I'm commenting this out until it can be investigated. The
* returned `bytes_written' isn't used anyway because of Kim's
* kludge to avoid bytes_written<0. Likewise in H5FD_mpio_write(). */
-#ifndef LAM_MPI /*Robb's kludge*/
+
+#ifdef H5_HAVE_MPI_GET_COUNT /* Bill and Albert's kludge*/
+ /* Yet Another KLUDGE, Albert Cheng & Bill Wendling, 2001-05-11.
+ * Many systems don't support MPI_Get_count so we need to do a
+ * configure thingy to fix this. */
+
/* How many bytes were actually read? */
if (MPI_SUCCESS != MPI_Get_count(&mpi_stat, MPI_BYTE, &bytes_read))
HRETURN_ERROR(H5E_INTERNAL, H5E_MPI, FAIL, "MPI_Get_count failed");
@@ -1437,7 +1442,12 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id/*unused*/,
* So I'm commenting this out until it can be investigated. The
* returned `bytes_written' isn't used anyway because of Kim's
* kludge to avoid bytes_written<0. Likewise in H5FD_mpio_read(). */
-#ifndef LAM_MPI /*Robb's kludge*/
+
+#ifdef H5_HAVE_MPI_GET_COUNT /* Bill and Albert's kludge*/
+ /* Yet Another KLUDGE, Albert Cheng & Bill Wendling, 2001-05-11.
+ * Many systems don't support MPI_Get_count so we need to do a
+ * configure thingy to fix this. */
+
/* How many bytes were actually written? */
if (MPI_SUCCESS!= MPI_Get_count(&mpi_stat, MPI_BYTE, &bytes_written))
HGOTO_ERROR(H5E_INTERNAL, H5E_MPI, FAIL, "MPI_Get_count failed");