summaryrefslogtreecommitdiffstats
path: root/src/H5Dmpio.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-05-18 14:51:41 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-05-18 14:51:41 (GMT)
commit886039ab68cf0c9a3242fb96676c815141571d38 (patch)
treee5afdded132497dd0f439beb5bc7b46ded5a155c /src/H5Dmpio.c
parent7aaa1ad2297b8e109cbff503be0cc4e73ada0871 (diff)
downloadhdf5-886039ab68cf0c9a3242fb96676c815141571d38.zip
hdf5-886039ab68cf0c9a3242fb96676c815141571d38.tar.gz
hdf5-886039ab68cf0c9a3242fb96676c815141571d38.tar.bz2
[svn-r22377] make the file and memory MPI datatypes as default properties in the
DXPL so that we don't have to insert and remove them everytime we perform collective I/O. Test with h5committest
Diffstat (limited to 'src/H5Dmpio.c')
-rw-r--r--src/H5Dmpio.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c
index 45cf6a1..70eda7e 100644
--- a/src/H5Dmpio.c
+++ b/src/H5Dmpio.c
@@ -1548,7 +1548,7 @@ H5D__final_collective_io(H5D_io_info_t *io_info, const H5D_type_info_t *type_inf
FUNC_ENTER_STATIC
/* Pass buf type, file type to the file driver. */
- if(H5FD_mpi_setup_collective(io_info->dxpl_id, *mpi_buf_type, *mpi_file_type) < 0)
+ if(H5FD_mpi_setup_collective(io_info->dxpl_id, mpi_buf_type, mpi_file_type) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set MPI-I/O properties")
plist_is_setup = TRUE;
@@ -1562,11 +1562,6 @@ H5D__final_collective_io(H5D_io_info_t *io_info, const H5D_type_info_t *type_inf
} /* end else */
done:
- /* Reset the dxpl settings */
- if(plist_is_setup)
- if(H5FD_mpi_teardown_collective(io_info->dxpl_id) < 0)
- HDONE_ERROR(H5E_DATASPACE, H5E_CANTFREE, FAIL, "unable to reset dxpl values")
-
#ifdef H5D_DEBUG
if(H5DEBUG(D))
HDfprintf(H5DEBUG(D),"ret_value before leaving final_collective_io=%d\n",ret_value);