summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorJordan Henderson <jhenderson@hdfgroup.org>2018-07-26 17:50:26 (GMT)
committerJordan Henderson <jhenderson@hdfgroup.org>2018-07-26 17:50:26 (GMT)
commite1e10743cf342509b5e89b50fc43fb1d52a9c8d2 (patch)
tree4801126aeea3b4ac5960dfa41169a5fe0fe4e6c3 /testpar
parent5550fb330a00ef75b6ab6daa6d8dae8bcf832185 (diff)
downloadhdf5-e1e10743cf342509b5e89b50fc43fb1d52a9c8d2.zip
hdf5-e1e10743cf342509b5e89b50fc43fb1d52a9c8d2.tar.gz
hdf5-e1e10743cf342509b5e89b50fc43fb1d52a9c8d2.tar.bz2
Add configure check for MPI_Mprobe and MPI_Imrecv functions
Add line to libhdf5settings file for status of Parallel writes to filtered datasets status Surround Parallel Compression code in MPI_VERSION >= 3 checks Add disabled message for Parallel Compression built w/ MPI-2 Modify Parallel Compression tests to only run the parallel filtered read tests when parallel filtered writes are disabled Update big I/O code to handle being built with MPI-2 Add checks to CMakeLists.txt for MPI_Mprobe and MPI_Imrecv
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_filters_parallel.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/testpar/t_filters_parallel.c b/testpar/t_filters_parallel.c
index 3647732..f436c8f 100644
--- a/testpar/t_filters_parallel.c
+++ b/testpar/t_filters_parallel.c
@@ -37,6 +37,7 @@ size_t cur_filter_idx = 0;
static herr_t set_dcpl_filter(hid_t dcpl);
+#if MPI_VERSION >= 3
/* Tests for writing data in parallel */
static void test_write_one_chunk_filtered_dataset(void);
static void test_write_filtered_dataset_no_overlap(void);
@@ -52,6 +53,7 @@ static void test_write_cmpd_filtered_dataset_no_conversion_unshared(void);
static void test_write_cmpd_filtered_dataset_no_conversion_shared(void);
static void test_write_cmpd_filtered_dataset_type_conversion_unshared(void);
static void test_write_cmpd_filtered_dataset_type_conversion_shared(void);
+#endif
/* Tests for reading data in parallel */
static void test_read_one_chunk_filtered_dataset(void);
@@ -69,8 +71,10 @@ static void test_read_cmpd_filtered_dataset_no_conversion_shared(void);
static void test_read_cmpd_filtered_dataset_type_conversion_unshared(void);
static void test_read_cmpd_filtered_dataset_type_conversion_shared(void);
+#if MPI_VERSION >= 3
/* Other miscellaneous tests */
static void test_shrinking_growing_chunks(void);
+#endif
/*
* Tests for attempting to round-trip the data going from
@@ -82,7 +86,9 @@ static void test_shrinking_growing_chunks(void);
* written in parallel -> read serially
*/
static void test_write_serial_read_parallel(void);
+#if MPI_VERSION >= 3
static void test_write_parallel_read_serial(void);
+#endif
static MPI_Comm comm = MPI_COMM_WORLD;
static MPI_Info info = MPI_INFO_NULL;
@@ -90,6 +96,7 @@ static int mpi_rank;
static int mpi_size;
static void (*tests[])(void) = {
+#if MPI_VERSION >= 3
test_write_one_chunk_filtered_dataset,
test_write_filtered_dataset_no_overlap,
test_write_filtered_dataset_overlap,
@@ -104,6 +111,7 @@ static void (*tests[])(void) = {
test_write_cmpd_filtered_dataset_no_conversion_shared,
test_write_cmpd_filtered_dataset_type_conversion_unshared,
test_write_cmpd_filtered_dataset_type_conversion_shared,
+#endif
test_read_one_chunk_filtered_dataset,
test_read_filtered_dataset_no_overlap,
test_read_filtered_dataset_overlap,
@@ -119,8 +127,10 @@ static void (*tests[])(void) = {
test_read_cmpd_filtered_dataset_type_conversion_unshared,
test_read_cmpd_filtered_dataset_type_conversion_shared,
test_write_serial_read_parallel,
+#if MPI_VERSION >= 3
test_write_parallel_read_serial,
test_shrinking_growing_chunks,
+#endif
};
/*
@@ -143,6 +153,7 @@ set_dcpl_filter(hid_t dcpl)
}
}
+#if MPI_VERSION >= 3
/*
* Tests parallel write of filtered data in the special
* case where a dataset is composed of a single chunk.
@@ -2458,6 +2469,7 @@ test_write_cmpd_filtered_dataset_type_conversion_shared(void)
return;
}
+#endif
/*
* Tests parallel read of filtered data in the special
@@ -5528,6 +5540,7 @@ test_write_serial_read_parallel(void)
return;
}
+#if MPI_VERSION >= 3
/*
* Tests parallel write of filtered data
* to a dataset. After the write has
@@ -5839,6 +5852,7 @@ test_shrinking_growing_chunks(void)
return;
}
+#endif
int
main(int argc, char** argv)