summaryrefslogtreecommitdiffstats
path: root/src/H5Distore.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-06-30 15:53:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-06-30 15:53:02 (GMT)
commit87a5f6480cbf866b1a72de7092dac9cca6e0ef2c (patch)
treee514487f5500c93ba7b262a42f327375c7821ab4 /src/H5Distore.c
parent007affb6dfc894e2e81a90ae7790473ff6dc26b0 (diff)
downloadhdf5-87a5f6480cbf866b1a72de7092dac9cca6e0ef2c.zip
hdf5-87a5f6480cbf866b1a72de7092dac9cca6e0ef2c.tar.gz
hdf5-87a5f6480cbf866b1a72de7092dac9cca6e0ef2c.tar.bz2
[svn-r7122] Purpose:
Code cleanup/Feature removal Description: Remove "round robin" writing of metadata in MPI VFDs (and a couple of other places). This never really worked the way I hoped it would and it causes problems on certain machines. Platforms tested: FreeBSD 4.8 (sleipnir) w/parallel Too small for triple check.
Diffstat (limited to 'src/H5Distore.c')
-rw-r--r--src/H5Distore.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5Distore.c b/src/H5Distore.c
index 4847948..acb871d 100644
--- a/src/H5Distore.c
+++ b/src/H5Distore.c
@@ -2159,7 +2159,6 @@ H5F_istore_allocate(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
MPI_Comm mpi_comm=MPI_COMM_NULL; /* MPI communicator for file */
int mpi_rank=(-1); /* This process's rank */
int mpi_size=(-1); /* Total # of processes */
- int mpi_round=0; /* Current process responsible for I/O */
int mpi_code; /* MPI return code */
unsigned blocks_written=0; /* Flag to indicate that chunk was actually written */
unsigned using_mpi=0; /* Flag to indicate that the file is being accessed with an MPI-capable file driver */
@@ -2355,11 +2354,10 @@ H5F_istore_allocate(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
/* Check if this file is accessed with an MPI-capable file driver */
if(using_mpi) {
/* Round-robin write the chunks out from only one process */
- if(mpi_round==mpi_rank) {
+ if(H5_PAR_META_WRITE==mpi_rank) {
if (H5F_block_write(f, H5FD_MEM_DRAW, udata.addr, udata.key.nbytes, dxpl_id, chunk)<0)
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "unable to write raw data to file");
} /* end if */
- mpi_round = (mpi_round+1)%mpi_size;
/* Indicate that blocks are being written */
blocks_written=1;