aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2008-10-28 17:53:31 +0000
committertradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2008-10-28 17:53:31 +0000
commitf7002523f8962935769110933611b271516c6b0e (patch)
treeee0c8b9f194a830b4a480c288705d6a15691412b
parent18e930cd2c57657e6f13dc7e2c0cb944f19adf48 (diff)
use collective transfers when writing datasets using parallel HDF5
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@138 7842ec3a-9562-4be5-9c5b-06ba18f2b668
-rw-r--r--src/DumpVar.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c
index ab5d6b1..c657ac5 100644
--- a/src/DumpVar.c
+++ b/src/DumpVar.c
@@ -769,13 +769,11 @@ static void WriteDataCollective (const cGH *GH, const ioRequest *request,
}
HDF5_ERROR (dataset = H5Dcreate (file, name, hdf5type, filespace, plist));
HDF5_ERROR (H5Pclose (plist));
- if (CCTK_MyProc (GH) == 0)
- {
- IOHDF5Util_DumpCommonAttributes (GH, request, dataset);
- }
+ IOHDF5Util_DumpCommonAttributes (GH, request, dataset);
/* increase the buffer size if the default isn't sufficient */
HDF5_ERROR (plist = H5Pcreate (H5P_DATASET_XFER));
+ HDF5_ERROR (H5Pset_dxpl_mpio (plist, H5FD_MPIO_COLLECTIVE));
buffersize = H5Dget_storage_size (dataset);
if (buffersize > H5Pget_buffer (plist, NULL, NULL))
{