mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Added scripts to test volume computation
This commit is contained in:
parent
5ad51b5289
commit
fd91947fb8
39
examples/contour_tree_distributed/hact_test_volume.sh
Executable file
39
examples/contour_tree_distributed/hact_test_volume.sh
Executable file
@ -0,0 +1,39 @@
|
||||
#!/bin/sh
|
||||
GTCT_DIR=${GTCT_DIR:-${HOME}/devel/parallel-peak-pruning/ContourTree/SweepAndMergeSerial/out}
|
||||
RED=""
|
||||
GREEN=""
|
||||
NC=""
|
||||
if [ -t 1 ]; then
|
||||
# If stdout is a terminal, color Pass and FAIL green and red, respectively
|
||||
RED=$(tput setaf 1)
|
||||
GREEN=$(tput setaf 2)
|
||||
NC=$(tput sgr0)
|
||||
fi
|
||||
|
||||
echo "Removing previously generated files"
|
||||
rm *.log *.dat
|
||||
|
||||
echo "Copying target file "$1 "into current directory"
|
||||
filename=${1##*/}
|
||||
fileroot=${filename%.txt}
|
||||
cp $1 ${filename}
|
||||
|
||||
echo "Splitting data into "$2" x "$2" parts"
|
||||
./split_data_2d.py ${filename} $2
|
||||
rm ${filename}
|
||||
|
||||
echo "Running HACT"
|
||||
n_parts=$(($2*$2))
|
||||
mpirun -np 4 ./ContourTree_Distributed --vtkm-device Any --preSplitFiles --saveTreeCompilerData --augmentHierarchicalTree --numBlocks=${n_parts} ${fileroot}_part_%d_of_${n_parts}.txt
|
||||
rm ${fileroot}_part_*_of_${n_parts}.txt
|
||||
|
||||
echo "Compiling Outputs"
|
||||
sort -u TreeWithVolumes_Rank_*.txt > outsort${fileroot}_$2x$2.txt
|
||||
rm TreeWithVolumes_Rank_*.txt
|
||||
|
||||
echo "Diffing"
|
||||
diff outsort${fileroot}_$2x$2.txt ${GTCT_DIR}/outsort${fileroot}.txt
|
||||
if test $? -eq 0; then echo "${GREEN}Pass${NC}"; rm outsort${fileroot}_$2x$2.txt; else echo "${RED}FAIL${NC}"; fi;
|
||||
|
||||
# echo "Generating Dot files"
|
||||
# ./makedot.sh
|
99
examples/contour_tree_distributed/testrun_volume.sh
Executable file
99
examples/contour_tree_distributed/testrun_volume.sh
Executable file
@ -0,0 +1,99 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p out
|
||||
DATA_DIR=${DATA_DIR:-${HOME}/devel/parallel-peak-pruning/Data/2D}
|
||||
|
||||
if [ ! -d $DATA_DIR ]; then
|
||||
echo "Error: Directory $DATA_DIR does not exist!"
|
||||
exit 1;
|
||||
fi;
|
||||
|
||||
echo
|
||||
echo "Starting Timing Runs"
|
||||
echo
|
||||
echo "8x9 Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/8x9test.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/8x9test.txt 4
|
||||
# ./hact_test_volume.sh $DATA_DIR/8x9test.txt 8
|
||||
echo
|
||||
echo "Vancouver Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vanc.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vanc.txt 4
|
||||
# ./hact_test_volume.sh $DATA_DIR/vanc.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vanc.txt 16
|
||||
echo
|
||||
echo "Vancouver SWSW Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWSW.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWSW.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWSW.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vancouverSWSW.txt 16
|
||||
echo
|
||||
echo "Vancouver SWNW Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWNW.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWNW.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWNW.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vancouverSWNW.txt 16
|
||||
echo
|
||||
echo "Vancouver SWSE Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWSE.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWSE.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWSE.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vancouverSWSE.txt 16
|
||||
echo
|
||||
echo "Vancouver SWNE Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWNE.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWNE.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSWNE.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vancouverSWNE.txt 16
|
||||
echo
|
||||
echo "Vancouver NE Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverNE.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverNE.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverNE.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vancouverNE.txt 16
|
||||
echo
|
||||
echo "Vancouver NW Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverNW.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverNW.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverNW.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vancouverNW.txt 16
|
||||
echo
|
||||
echo "Vancouver SE Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSE.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSE.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSE.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vancouverSE.txt 16
|
||||
echo
|
||||
echo "Vancouver SW Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSW.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSW.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/vancouverSW.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/vancouverSW.txt 16
|
||||
echo
|
||||
echo "Icefields Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/icefield.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/icefield.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/icefield.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/icefield.txt 16
|
||||
# ./hact_test_volume.sh $DATA_DIR/icefield.txt 32
|
||||
# ./hact_test_volume.sh $DATA_DIR/icefield.txt 64
|
||||
echo
|
||||
# echo "GTOPO30 Full Tiny Test Set"
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo_full_tiny.txt 2
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo_full_tiny.txt 4
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo_full_tiny.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo_full_tiny.txt 16
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo_full_tiny.txt 32
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo_full_tiny.txt 64
|
||||
# echo
|
||||
echo "GTOPO30 UK Tile Test Set"
|
||||
./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 2
|
||||
./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 4
|
||||
./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 8
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 16
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 32
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 64
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 128
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 256
|
||||
# ./hact_test_volume.sh $DATA_DIR/gtopo30w020n40.txt 512
|
||||
echo "Done"
|
Loading…
Reference in New Issue
Block a user