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

Jason Kraftcheck kraftche at cae.wisc.edu
Mon Nov 16 08:29:19 CST 2009


Jed Brown wrote:
> 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.

Thanks.  I applied this patch and the option string munging one.

- jason


More information about the moab-dev mailing list