-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreproduce_result.sh
156 lines (121 loc) · 4.25 KB
/
reproduce_result.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
cd reproduce_case_studies_of_cgo2018_paper
ReproduceBaseDIR=$PWD
cd ..
mkdir CCPROF_result
cd CCPROF_result
RESULTDIR=$PWD
########################################################## CCProf RCD calculation and prediction ###############
cd $ReproduceBaseDIR
cd ADI_PolyBench
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/ADI_PolyBench_result
cd $ReproduceBaseDIR
cd HimenoBMT
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/HimenoBMT_result
cd $ReproduceBaseDIR
cd Kripke_representative_loop
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/Kripke_representative_loop_result
cd $ReproduceBaseDIR
cd MKL_FFT_Optimized
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/MKL_FFT_Optimized_result
cd $ReproduceBaseDIR
cd Tiny_DNN_representative_loop_Optimized
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/Tiny_DNN_representative_loop_Optimized_result
cd $ReproduceBaseDIR
cd ADI_PolyBench_Optimized
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/ADI_PolyBench_Optimized_result
cd $ReproduceBaseDIR
cd HimenoBMT_Optimized
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/HimenoBMT_Optimized_result
cd $ReproduceBaseDIR
cd Kripke_representative_loop_Optimized
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/Kripke_representative_loop_Optimized_result
cd $ReproduceBaseDIR
cd NW_Rodinia
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/NW_Rodinia_result
cd $ReproduceBaseDIR
cd MKL_FFT
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/MKL_FFT_result
cd $ReproduceBaseDIR
cd NW_Rodinia_Optimized
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/NW_Rodinia_Optimized_result
cd $ReproduceBaseDIR
cd Tiny_DNN_representative_loop
sh ccProf_run_and_cdf.sh
cd workspace
python ccProfAnalysis.py > $RESULTDIR/Tiny_DNN_representative_loop_result
cd $ReproduceBaseDIR
###################################################### Generate Performance Metrices ##########################################################
cd $ReproduceBaseDIR
cd ADI_PolyBench
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd HimenoBMT
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd Kripke_representative_loop
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd MKL_FFT_Optimized
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd Tiny_DNN_representative_loop_Optimized
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd ADI_PolyBench_Optimized
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd HimenoBMT_Optimized
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd Kripke_representative_loop_Optimized
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd NW_Rodinia
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd MKL_FFT
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd NW_Rodinia_Optimized
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
cd Tiny_DNN_representative_loop
sh ccProf_runtime_cache_stat.sh
cd $ReproduceBaseDIR
############################################# Evaluation ###################################################
rm $RESULTDIR/CCProfPerformanceMetrics_table2.txt
python getStat_overhead.py
python getStat_speedup.py
python getStat_cache.py
cat *Stat.txt >> $RESULTDIR/CCProfPerformanceMetrics_table2.txt
rm *Stat.txt
################################################# plotting ##################################################
cd $CCPROFDIR
sh plot.sh
echo "Results have been generated. Navigate to " $RESULTDIR
echo "for Evaluation metrices, read file " $RESULTDIR/CCProfPerformanceMetrics_table2.txt
cat $RESULTDIR/CCProfPerformanceMetrics_table2.txt
echo "For figure 9 of the paper, navigate to " $RESULTDIR "/*.pdf"
echo "To verify results of CCProf analysis navigate to " $RESULTDIR " and *result files(e.a, compare ADI_PolyBench_result and ADI_PolyBench_Optimized_result) "