2010-10-21 01:20:28 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-08-17 00:55:11 +08:00
|
|
|
# This .in file is processed at build time into a shell that runs some
|
2020-02-08 21:36:29 +08:00
|
|
|
# parallel I/O tests for netCDF/HDF5 parallel I/O.
|
2017-03-09 08:01:10 +08:00
|
|
|
|
2018-08-17 00:55:11 +08:00
|
|
|
# Ed Hartnett, Dennis Heimbigner, Ward Fisher
|
2010-10-21 01:20:28 +08:00
|
|
|
|
2020-04-02 06:20:33 +08:00
|
|
|
set -e
|
|
|
|
|
2020-02-08 21:36:29 +08:00
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
|
|
|
|
2010-10-21 01:20:28 +08:00
|
|
|
echo
|
2019-12-21 05:00:59 +08:00
|
|
|
echo "Testing MPI parallel I/O with various other mode flags..."
|
|
|
|
@MPIEXEC@ -n 1 ./tst_mode
|
2016-02-02 07:15:58 +08:00
|
|
|
echo
|
2010-10-21 01:20:28 +08:00
|
|
|
echo "Testing MPI parallel I/O without netCDF..."
|
2018-08-16 21:33:04 +08:00
|
|
|
@MPIEXEC@ -n 4 ./tst_mpi_parallel
|
2010-10-21 01:20:28 +08:00
|
|
|
echo
|
|
|
|
echo "Testing very simple parallel I/O with 4 processors..."
|
2018-08-16 21:33:04 +08:00
|
|
|
@MPIEXEC@ -n 4 ./tst_parallel
|
2010-10-21 01:20:28 +08:00
|
|
|
echo
|
|
|
|
echo "Testing simple parallel I/O with 16 processors..."
|
2018-08-16 21:33:04 +08:00
|
|
|
@MPIEXEC@ -n 16 ./tst_parallel3
|
2016-06-10 01:23:14 +08:00
|
|
|
echo
|
2010-06-03 21:24:43 +08:00
|
|
|
echo "num_proc time(s) write_rate(B/s)"
|
2018-08-16 21:33:04 +08:00
|
|
|
@MPIEXEC@ -n 1 ./tst_parallel4
|
|
|
|
@MPIEXEC@ -n 2 ./tst_parallel4
|
|
|
|
@MPIEXEC@ -n 4 ./tst_parallel4
|
|
|
|
@MPIEXEC@ -n 8 ./tst_parallel4
|
2016-02-02 07:15:58 +08:00
|
|
|
|
2020-02-08 21:36:29 +08:00
|
|
|
# These work but are commented out to speed up the testing.
|
2018-08-16 21:33:04 +08:00
|
|
|
#@MPIEXEC@ -n 16 ./tst_parallel4
|
|
|
|
#@MPIEXEC@ -n 32 ./tst_parallel4
|
|
|
|
#@MPIEXEC@ -n 64 ./tst_parallel4
|
2018-05-14 22:11:32 +08:00
|
|
|
echo
|
|
|
|
echo "Testing collective writes with some 0 element writes..."
|
2018-08-16 21:33:04 +08:00
|
|
|
@MPIEXEC@ -n 4 ./tst_parallel5
|
2018-05-14 22:11:32 +08:00
|
|
|
|
2010-10-21 01:20:28 +08:00
|
|
|
echo
|
|
|
|
echo "Parallel Performance Test for NASA"
|
2018-08-16 21:33:04 +08:00
|
|
|
@MPIEXEC@ -n 4 ./tst_nc4perf
|
2016-06-10 01:23:14 +08:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Parallel I/O test for Collective I/O, contributed by HDF Group."
|
2018-08-16 21:33:04 +08:00
|
|
|
@MPIEXEC@ -n 1 ./tst_simplerw_coll_r
|
|
|
|
@MPIEXEC@ -n 2 ./tst_simplerw_coll_r
|
|
|
|
@MPIEXEC@ -n 4 ./tst_simplerw_coll_r
|
2019-12-20 20:22:53 +08:00
|
|
|
|
2020-01-18 02:33:58 +08:00
|
|
|
# Only run these tests if HDF5 supports parallel filters (v1.10.2 and
|
|
|
|
# later).
|
2020-01-18 03:13:45 +08:00
|
|
|
if test "@HAS_PAR_FILTERS@" = "yes"; then
|
2020-01-18 02:33:58 +08:00
|
|
|
echo
|
|
|
|
echo "Parallel I/O test with zlib."
|
|
|
|
@MPIEXEC@ -n 1 ./tst_parallel_zlib
|
|
|
|
@MPIEXEC@ -n 4 ./tst_parallel_zlib
|
|
|
|
|
|
|
|
echo
|
2020-02-06 08:40:31 +08:00
|
|
|
echo "Parallel I/O more tests with zlib and szip (if present in HDF5)."
|
|
|
|
@MPIEXEC@ -n 1 ./tst_parallel_compress
|
|
|
|
@MPIEXEC@ -n 4 ./tst_parallel_compress
|
2020-01-18 02:33:58 +08:00
|
|
|
fi
|
2021-09-03 00:18:42 +08:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Parallel I/O test for quantize feature."
|
|
|
|
@MPIEXEC@ -n 4 ./tst_quantize_par
|
|
|
|
|