summaryrefslogtreecommitdiffstats
path: root/testpar/t_dset.c
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2012-09-07 22:14:08 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2012-09-07 22:14:08 (GMT)
commit4990fdaba646ea90bfd28a0d1a08863690656c1c (patch)
treec81acfb871c69e3c4100ebfc05332ee65231e469 /testpar/t_dset.c
parent394f5403a0f257933cd6859ef34337a5075de6e6 (diff)
downloadhdf5-4990fdaba646ea90bfd28a0d1a08863690656c1c.zip
hdf5-4990fdaba646ea90bfd28a0d1a08863690656c1c.tar.gz
hdf5-4990fdaba646ea90bfd28a0d1a08863690656c1c.tar.bz2
[svn-r22743] Purpose:
HDFFV-8143 Provide a routine(s) for telling the user why the library broke collective data access Description: Daily test failed from the previous commit r22735. (ember) Follow actual_io function to sync before go futher as this is similar function. Tested: jam (linux32-LE), koala-pp (linux64-LE), ember
Diffstat (limited to 'testpar/t_dset.c')
-rw-r--r--testpar/t_dset.c39
1 files changed, 21 insertions, 18 deletions
diff --git a/testpar/t_dset.c b/testpar/t_dset.c
index d9139d3..3fa9a8c 100644
--- a/testpar/t_dset.c
+++ b/testpar/t_dset.c
@@ -3146,6 +3146,17 @@ test_no_collective_cause_mode(int selection_mode)
/* set to global value as default */
int l_facc_type = facc_type;
+ /* Set up MPI parameters */
+ MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
+ MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
+
+ MPI_Barrier(MPI_COMM_WORLD);
+
+ HDassert(mpi_size >= 1);
+
+ mpi_comm = MPI_COMM_WORLD;
+ mpi_info = MPI_INFO_NULL;
+
/* Create the dataset creation plist */
dcpl = H5Pcreate(H5P_DATASET_CREATE);
VRFY((dcpl >= 0), "dataset creation plist created successfully");
@@ -3193,15 +3204,6 @@ test_no_collective_cause_mode(int selection_mode)
VRFY((sid >= 0), "H5Screate_simple succeeded");
}
- /* Set up MPI parameters */
- MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
- MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
-
-
- HDassert(mpi_size >= 1);
-
- mpi_comm = MPI_COMM_WORLD;
- mpi_info = MPI_INFO_NULL;
filename = (const char *)GetTestParameters();
HDassert(filename != NULL);
@@ -3496,6 +3498,16 @@ test_no_collective_cause_mode_filter(int selection_mode)
H5Z_filter_t filter_info;
#endif
+ /* Set up MPI parameters */
+ MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
+ MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
+
+ MPI_Barrier(MPI_COMM_WORLD);
+
+ HDassert(mpi_size >= 1);
+
+ mpi_comm = MPI_COMM_WORLD;
+ mpi_info = MPI_INFO_NULL;
/* Create the dataset creation plist */
dcpl = H5Pcreate(H5P_DATASET_CREATE);
@@ -3523,15 +3535,6 @@ test_no_collective_cause_mode_filter(int selection_mode)
sid = H5Screate_simple (RANK, dims, NULL);
VRFY((sid >= 0), "H5Screate_simple succeeded");
- /* Set up MPI parameters */
- MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
- MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
-
-
- HDassert(mpi_size >= 1);
-
- mpi_comm = MPI_COMM_WORLD;
- mpi_info = MPI_INFO_NULL;
filename = (const char *)GetTestParameters();
HDassert(filename != NULL);