[MOAB-dev] [PATCH] Required syncronization in mhdf_parallel.c

Jed Brown jed at 59A2.org
Sat Nov 14 17:37:40 CST 2009


This test creates a file in serial and then modifies it in parallel.
Before this patch, there was nothing to stop rank 1 from trying to open
the file before rank 0 is done creating it.  Of course rank 1 cannot
finish opening the file until rank 0 also calls H5Fopen(), but
H5Fis_hdf5() will fail if the file does not exist or is not valid when
rank 1 is checking.  This patch inserts an MPI_Barrier() which forces
the necessary syncronization, now the test always passes.
---
 parallel/mhdf_parallel.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Required-syncronization-in-mhdf_parallel.c.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20091115/3d70e627/attachment.bin>


More information about the moab-dev mailing list