2010-06-03 21:24:43 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This shell file tests the bm_ile program for parallel I/O.
|
2018-08-24 22:59:58 +08:00
|
|
|
# Ed Hartnett
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2018-08-24 22:59:58 +08:00
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
for type_name in floats ints shorts
|
|
|
|
do
|
|
|
|
echo "*** Running bm_file for parallel access on simple ${type_name} test files, 1D to 6D..."
|
|
|
|
header="-h"
|
2018-08-24 22:59:58 +08:00
|
|
|
for i in 1 2 3
|
2010-06-03 21:24:43 +08:00
|
|
|
do
|
|
|
|
test $i = 1 && chunksizes="100000"
|
|
|
|
test $i = 2 && chunksizes="316:316"
|
|
|
|
test $i = 3 && chunksizes="46:46:46"
|
|
|
|
for numproc in 1 4 16
|
|
|
|
do
|
2018-08-25 02:48:42 +08:00
|
|
|
@MPIEXEC@ -n $numproc ./bm_file -p -d ${header} -s ${numproc} -f 4 -o p_${type_name}2_${i}D_3.nc -c 0:-1:0:${chunksizes} ${type_name}2_${i}D_3.nc
|
2017-03-09 08:01:10 +08:00
|
|
|
${NCDUMP} -n tst_${type_name}2_${i}D p_${type_name}2_${i}D_3.nc > p_${type_name}2_${i}D.cdl
|
2010-06-03 21:24:43 +08:00
|
|
|
diff tst_${type_name}2_${i}D.cdl p_${type_name}2_${i}D.cdl &> /dev/null
|
|
|
|
header=
|
|
|
|
done
|
|
|
|
done
|
|
|
|
echo '*** SUCCESS!!!'
|
|
|
|
done
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
exit 0
|