summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-08-24 15:54:13 (GMT)
committerGitHub <noreply@github.com>2023-08-24 15:54:13 (GMT)
commit216d2191c7878cee81e24757872207681f2f3488 (patch)
treebba81c139025193ddca6e9e2f5160572efc87ebe /testpar/testphdf5.c
parent14645ae83ea4739182a8b8e8555b75f53c623acb (diff)
downloadhdf5-216d2191c7878cee81e24757872207681f2f3488.zip
hdf5-216d2191c7878cee81e24757872207681f2f3488.tar.gz
hdf5-216d2191c7878cee81e24757872207681f2f3488.tar.bz2
Skip atomicity tests for OpenMPI major versions < 5 (#3421)
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);