-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_all_preprocessing.sh
90 lines (79 loc) · 3 KB
/
run_all_preprocessing.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
f="$(basename -- $1)";
outputdir=$1"/results/preprocessing";
mkdir $1"/results";
mkdir $outputdir;
#./bin/run_ordering $1"/"$f".tpgr" $1"/"$f".btch" 32;
#
#hour=0
#while [ $hour -lt 24 ]
#do
#./bin/construct_hourly_tch $1"/"$f $hour 32
#((hour++))
#done
#
#
#./bin/construct_cpd $1"/"$f".tpgr" $outputdir;
#echo ./bin/run_ordering $1"/"$f".tpgr" $1"/"$f".btch" 12;
#
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# split the time dependent data for building stch and mtch
./bin/split_data $1"/"$f".tpgr"
# build stch and mtch, input are number of core used
./bin/construct_stch_mtch $1"/"$f 12
# build tch, input are number of core used
./bin/run_ordering $1"/"$f".tpgr" $1"/"$f".btch" 12;
# build landmark heuristic
./bin/generate_landmarks $1"/"$f".tpgr" 4
./bin/generate_landmarks $1"/"$f".tpgr" 8
./bin/generate_landmarks $1"/"$f".tpgr" 12
./bin/generate_landmarks $1"/"$f".tpgr" 16
# build forward tcpd
./bin/construct_fw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
# build backward tcpd
./bin/construct_bw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
# generate random queries
./bin/generate_queries $1"/"$f".tpgr" 10000
# we only build RTPD for target row
./bin/construct_reverse_fw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
# hour=0
# while [ $hour -lt 24 ]
# do
# ./bin/construct_hourly_tch $1"/"$f $hour 32
# ((hour++))
# done
# #
# ./bin/split_data $1"/"$f".tpgr" 5
# ./bin/construct_hourly_tch $1"/"$f 0 32
# ./bin/run_ordering $1"/"$f".tpgr" $1"/"$f".btch" 32;
# ./bin/generate_landmarks $1"/"$f".tpgr" 4
# ./bin/generate_landmarks $1"/"$f".tpgr" 8
# ./bin/generate_landmarks $1"/"$f".tpgr" 12
# ./bin/generate_landmarks $1"/"$f".tpgr" 16
# ./bin/construct_fw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
# ./bin/construct_bw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
# ./bin/generate_queries $1"/"$f".tpgr" 10000
# ./bin/construct_reverse_fw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
elif [[ "$OSTYPE" == "darwin"* ]]; then
# APPLE Machine
# split the time dependent data for building stch and mtch
./bin/split_data $1"/"$f".tpgr"
# build stch and mtch, input are number of core used
./bin/construct_stch_mtch $1"/"$f 12
# build tch, input are number of core used
./bin/run_ordering $1"/"$f".tpgr" $1"/"$f".btch" 12;
# build landmark heuristic
./bin/generate_landmarks $1"/"$f".tpgr" 4
./bin/generate_landmarks $1"/"$f".tpgr" 8
./bin/generate_landmarks $1"/"$f".tpgr" 12
./bin/generate_landmarks $1"/"$f".tpgr" 16
# build forward tcpd
./bin/construct_fw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
# build backward tcpd
./bin/construct_bw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
# generate random queries
./bin/generate_queries $1"/"$f".tpgr" 10000
# we only build RTPD for target row
./bin/construct_reverse_fw_tch_cpd $1"/"$f".tpgr" $1"/"$f".btch" $outputdir;
fi
###