summaryrefslogtreecommitdiffstats
path: root/src/H5Dio.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2004-11-24 21:11:36 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2004-11-24 21:11:36 (GMT)
commitcb58a0d8c677a8efd0e896ea690084c97953d6bc (patch)
treea1ddbdb32a6fc44a864bac639af115d5f10ab34b /src/H5Dio.c
parentf206b7cec1153622c07b9f58d30e1f96eaeeb2fd (diff)
downloadhdf5-cb58a0d8c677a8efd0e896ea690084c97953d6bc.zip
hdf5-cb58a0d8c677a8efd0e896ea690084c97953d6bc.tar.gz
hdf5-cb58a0d8c677a8efd0e896ea690084c97953d6bc.tar.bz2
[svn-r9574] Purpose:
Adding code for using MPI derived datatype to handle collective IO Description: No testing yet, won't affect the library. Solution: Platforms tested: linux 2.4 + mpich 1.2.6 Aix 5.1 + mpcc_r Misc. update:
Diffstat (limited to 'src/H5Dio.c')
-rw-r--r--src/H5Dio.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c
index 8e0a4d4..ff8739d 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -3307,26 +3307,27 @@ H5D_ioinfo_init(H5D_t *dset, const H5D_dxpl_cache_t *dxpl_cache, hid_t dxpl_id,
/* Check if we can use the optimized parallel I/O routines */
if(opt==TRUE) {
/* Set the pointers to the MPI-specific routines */
+ if((H5S_SELECT_IS_REGULAR(file_space) == TRUE) &&
+ (H5S_SELECT_IS_REGULAR(mem_space) == TRUE)){
io_info->ops.read = H5D_mpio_spaces_read;
io_info->ops.write = H5D_mpio_spaces_write;
-
+ }
+
+ #ifdef KYANG
+ else {
+ io_info->ops.read = H5D_mpio_spaces_span_read;
+ io_info->ops.write = H5D_mpio_spaces_span_write;
+ }
+ #endif
/* Indicate that the I/O will be parallel */
*use_par_opt_io=TRUE;
} /* end if */
else {
/* Indicate that the I/O will _NOT_ be parallel */
-#ifdef KYANG
- printf("coming to span write \n");
- io_info->ops.read = H5D_mpio_spaces_span_read;
- io_info->ops.write = H5D_mpio_spaces_span_write;
- *use_par_opt_io = TRUE;
-#else
*use_par_opt_io=FALSE;
io_info->ops.read = H5D_select_read;
io_info->ops.write = H5D_select_write;
-#endif
-
} /* end else */