summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-09-01 16:57:18 (GMT)
committerGitHub <noreply@github.com>2023-09-01 16:57:18 (GMT)
commit3efcbfb1f938fa05f6c648d9d594644912053096 (patch)
treeaabedcd9517cc3a100dbe90c29a5556affa3bdf7 /testpar/testphdf5.c
parenteeb98559711a638e41cba85502f34fd990822d90 (diff)
downloadhdf5-3efcbfb1f938fa05f6c648d9d594644912053096.zip
hdf5-3efcbfb1f938fa05f6c648d9d594644912053096.tar.gz
hdf5-3efcbfb1f938fa05f6c648d9d594644912053096.tar.bz2
Skip atomicity tests for OpenMPI major versions < 5 (#3421) (#3470)
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);