summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 430b8a6..ed0510c 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -487,6 +487,14 @@ main(int argc, char **argv)
AddTest((mpi_size < 2) ? "-fiodc" : "fiodc", file_image_daisy_chain_test, NULL,
"file image ops daisy chain", NULL);
+ /* Atomicity operations are not supported for OpenMPI versions < major
+ * version 5 and will sporadically fail.
+ */
+#if defined(OPEN_MPI) && defined(OMPI_MAJOR_VERSION) && (OMPI_MAJOR_VERSION < 5)
+ if (MAINPROCESS)
+ printf("OpenMPI major version is < 5. Atomicity tests will be skipped due to support for atomicity "
+ "operations not being implemented.\n");
+#else
if ((mpi_size < 2) && MAINPROCESS) {
printf("Atomicity tests need at least 2 processes to participate\n");
printf("8 is more recommended.. Atomicity tests will be skipped \n");
@@ -497,6 +505,7 @@ main(int argc, char **argv)
else if (mpi_size >= 2 && facc_type == FACC_MPIO) {
AddTest("atomicity", dataset_atomicity, NULL, "dataset atomic updates", PARATESTFILE);
}
+#endif
AddTest("denseattr", test_dense_attr, NULL, "Store Dense Attributes", PARATESTFILE);