File tree Expand file tree Collapse file tree 14 files changed +455
-3
lines changed
reproduce_case_studies_of_cgo2018_paper
Kripke_representative_loop_Optimized
Kripke_representative_loop
Tiny_DNN_representative_loop_Optimized
Tiny_DNN_representative_loop Expand file tree Collapse file tree 14 files changed +455
-3
lines changed Original file line number Diff line number Diff line change
1
+ cd reproduce_case_studies_of_cgo2018_paper
2
+ ReproduceBaseDIR=$PWD
3
+
4
+ cd ..
5
+ mkdir CCPROF_result
6
+ cd CCPROF_result
7
+ RESULTDIR=$PWD
8
+
9
+ # ##################################################### Generate cache stat ##########################################################
10
+ cd $ReproduceBaseDIR
11
+
12
+ cd ADI_PolyBench
13
+ sh ccProf_cache_stat.sh
14
+ cd $ReproduceBaseDIR
15
+
16
+ cd HimenoBMT
17
+ sh ccProf_cache_stat.sh
18
+ cd $ReproduceBaseDIR
19
+
20
+ cd Kripke_representative_loop
21
+ sh ccProf_cache_stat.sh
22
+ cd $ReproduceBaseDIR
23
+
24
+ cd MKL_FFT_Optimized
25
+ sh ccProf_cache_stat.sh
26
+ cd $ReproduceBaseDIR
27
+
28
+ cd Tiny_DNN_representative_loop_Optimized
29
+ sh ccProf_cache_stat.sh
30
+ cd $ReproduceBaseDIR
31
+
32
+ cd ADI_PolyBench_Optimized
33
+ sh ccProf_cache_stat.sh
34
+ cd $ReproduceBaseDIR
35
+
36
+ cd HimenoBMT_Optimized
37
+ sh ccProf_cache_stat.sh
38
+ cd $ReproduceBaseDIR
39
+
40
+ cd Kripke_representative_loop_Optimized
41
+ sh ccProf_cache_stat.sh
42
+ cd $ReproduceBaseDIR
43
+
44
+ cd NW_Rodinia
45
+ sh ccProf_cache_stat.sh
46
+ cd $ReproduceBaseDIR
47
+
48
+ cd MKL_FFT
49
+ sh ccProf_cache_stat.sh
50
+ cd $ReproduceBaseDIR
51
+
52
+ cd NW_Rodinia_Optimized
53
+ sh ccProf_cache_stat.sh
54
+ cd $ReproduceBaseDIR
55
+
56
+ cd Tiny_DNN_representative_loop
57
+ sh ccProf_cache_stat.sh
58
+ cd $ReproduceBaseDIR
59
+
60
+ # ############################################ Evaluation ###################################################
61
+ # rm $RESULTDIR/CCProfPerformanceMetrics_table2.txt
62
+ python getStat_cache.py
63
+
64
+ cat * Stat.txt >> $RESULTDIR /CCProfPerformanceMetrics_table2.txt
65
+ rm * Stat.txt
66
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/poly/polybench-c-4.2.1-beta/stencils/adi
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /adi_O0
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /adi_O3
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 > cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/poly/polybench-c-4.2.1-beta_optimized/stencils/adi
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /adi_O0
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /adi_O3
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 > cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/himenoBMT/himenoBMT_org
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /himenoBMTxpa_O0
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /himenoBMTxpa_O3
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 S 20 > cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/himenoBMT/himenoBMT_optimized
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /himenoBMTxpa_O0
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /himenoBMTxpa_O3
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 S 20 > cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/kripke/representative
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /loop_O0
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /loop_O3
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 > cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/kripke/representative
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /loop_reorder_O0
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /loop_reorder_O3
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 > cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/dftc
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /_results/intel_lp64_sequential_libem64t/basic_dp_complex_dft_2d_4096.out
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /_results/intel_lp64_sequential_libem64t/basic_dp_complex_dft_2d_4096.out
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 > cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/dftc
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /_results/intel_lp64_sequential_libem64t/basic_dp_complex_dft_2d_4096_pad.out
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /_results/intel_lp64_sequential_libem64t/basic_dp_complex_dft_2d_4096_pad.out
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 > cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BENCHMARK_RELATIVE_LOCATION=$CCPROFDIR /../benchmarks/rodinia_3.1/openmp/nw
3
+ BENCHMARK_BINARY=$BENCHMARK_RELATIVE_LOCATION /needle_O0
4
+ BENCHMARK_BINARY_O3=$BENCHMARK_RELATIVE_LOCATION /needle_O3
5
+ mkdir workspace
6
+ cd workspace
7
+
8
+ WORKSPACE=$PWD
9
+ # ######################################################################
10
+ echo $BENCHMARK_RELATIVE_LOCATION
11
+ cd $BENCHMARK_RELATIVE_LOCATION
12
+ sh compile.sh
13
+
14
+
15
+ OMP_NUM_THREADS=1 sudo $CCPROFDIR /PAPI/PAPI/src/libpfm4/perf_examples/task -e L1-DCACHE-LOADS -e L1-DCACHE-LOAD-MISSES -e LLC_MISSES -e LLC_REFERENCES $BENCHMARK_BINARY_O3 16384 10 1> cacheOutScratch
16
+
17
+ mv cacheOutScratch $WORKSPACE /
18
+ cd $WORKSPACE
19
+ grep -Ri -C 0 " scaling, ena" cacheOutScratch > cacheOutScratch1
20
+ rm cacheStat_L1L_L1M_L2M_LLCM
21
+ awk ' {if($2=="L1-DCACHE-LOADS")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
22
+ awk ' {if($2=="L1-DCACHE-LOAD-MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
23
+ awk ' {if($2=="LLC_REFERENCES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
24
+ awk ' {if($2=="LLC_MISSES")print $1}' cacheOutScratch1 >> cacheStat_L1L_L1M_L2M_LLCM
25
+
26
+ sed -i ' s/,//g' cacheStat_L1L_L1M_L2M_LLCM
27
+
28
+ rm cacheOutScratch1
29
+
30
+
31
+
32
+
You can’t perform that action at this time.
0 commit comments