1 | |
---|
2 | individual_metrics = [ 'req_trig_update', 'local_update', 'remote_update', 'update_cost', 'req_trig_m_inv', 'local_m_inv', 'remote_m_inv', 'm_inv_cost', 'broadcast', 'total_update', 'total_m_inv' ] |
---|
3 | |
---|
4 | grouped_metrics = [ 'update_cost', 'm_inv_cost' ] |
---|
5 | |
---|
6 | stacked_metrics = [ 'nonwrite_broadcast', 'write_broadcast', 'local_m_inv', 'remote_m_inv', 'local_update', 'remote_update' ] |
---|
7 | |
---|
8 | m_prot_name = {} |
---|
9 | m_prot_name['dhccp'] = "DHCCP" |
---|
10 | m_prot_name['rwt'] = "RWT" |
---|
11 | m_prot_name['hmesi'] = "HMESI" |
---|
12 | m_prot_name['wtidl'] = "WT IDEAL" |
---|
13 | m_prot_name['th0'] = "TH. 0" |
---|
14 | |
---|
15 | m_app_name = {} |
---|
16 | m_app_name['barnes'] = "Barnes" |
---|
17 | m_app_name['blackscholes'] = "Blackscholes" |
---|
18 | m_app_name['cholesky'] = "Cholesky" |
---|
19 | m_app_name['fal_sh_1'] = "False Sharing 1" |
---|
20 | m_app_name['fal_sh_2'] = "False Sharing 2" |
---|
21 | m_app_name['fft'] = "FFT" |
---|
22 | m_app_name['fft_ga'] = "FFT" |
---|
23 | m_app_name['filter'] = "Convol" |
---|
24 | m_app_name['filt_ga'] = "Convol" |
---|
25 | m_app_name['fmm'] = "FMM" |
---|
26 | m_app_name['histogram'] = "Histogram" |
---|
27 | m_app_name['histogram-pad'] = "Histogram" |
---|
28 | m_app_name['histo-opt'] = "Histogram" |
---|
29 | m_app_name['histo-opt-nopad'] = "Histogram" |
---|
30 | m_app_name['kmeans'] = "Kmeans" |
---|
31 | m_app_name['kmeans-opt'] = "Kmeans" |
---|
32 | m_app_name['linear_regression'] = "Linear Reg." |
---|
33 | m_app_name['lu'] = "LU" |
---|
34 | m_app_name['mandel'] = "Mandelbrot" |
---|
35 | m_app_name['mat_mult'] = "Matrix Mult." |
---|
36 | m_app_name['mat_mult-opt'] = "Matrix Mult." |
---|
37 | m_app_name['pca'] = "PCA" |
---|
38 | m_app_name['pca-opt'] = "PCA" |
---|
39 | m_app_name['ocean'] = "Ocean" |
---|
40 | m_app_name['radix'] = "Radix" |
---|
41 | m_app_name['radix_ga'] = "Radix" |
---|
42 | m_app_name['raytrace'] = "Raytrace" |
---|
43 | m_app_name['radiosity'] = "Radiosity" |
---|
44 | m_app_name['string_match'] = "String Match" |
---|
45 | m_app_name['waters'] = "Water Sp." |
---|
46 | m_app_name['watern'] = "Water Nsq." |
---|
47 | |
---|
48 | m_metric_id = {} |
---|
49 | m_metric_tag = {} |
---|
50 | m_metric_tag['counter_reset'] = "[000]" |
---|
51 | m_metric_tag['ncycles'] = "[001]" |
---|
52 | |
---|
53 | m_metric_tag['local_read'] = "[010]" |
---|
54 | m_metric_tag['remote_read'] = "[011]" |
---|
55 | m_metric_tag['read_cost'] = "[012]" |
---|
56 | |
---|
57 | m_metric_tag['local_write'] = "[020]" |
---|
58 | m_metric_tag['remote_write'] = "[021]" |
---|
59 | m_metric_tag['write_flits_local'] = "[022]" |
---|
60 | m_metric_tag['write_flits_remote'] = "[023]" |
---|
61 | m_metric_tag['write_cost'] = "[024]" |
---|
62 | m_metric_tag['write_l1_miss_ncc'] = "[025]" |
---|
63 | |
---|
64 | m_metric_tag['local_ll'] = "[030]" |
---|
65 | m_metric_tag['remote_ll'] = "[031]" |
---|
66 | m_metric_tag['ll_cost'] = "[032]" |
---|
67 | |
---|
68 | m_metric_tag['local_sc'] = "[040]" |
---|
69 | m_metric_tag['remote_sc'] = "[041]" |
---|
70 | m_metric_tag['sc_cost'] = "[042]" |
---|
71 | |
---|
72 | m_metric_tag['local_cas'] = "[050]" |
---|
73 | m_metric_tag['remote_cas'] = "[051]" |
---|
74 | m_metric_tag['cas_cost'] = "[052]" |
---|
75 | |
---|
76 | m_metric_tag['req_trig_update'] = "[060]" |
---|
77 | m_metric_tag['local_update'] = "[061]" |
---|
78 | m_metric_tag['remote_update'] = "[062]" |
---|
79 | m_metric_tag['update_cost'] = "[063]" |
---|
80 | |
---|
81 | m_metric_tag['req_trig_m_inv'] = "[070]" |
---|
82 | m_metric_tag['local_m_inv'] = "[071]" |
---|
83 | m_metric_tag['remote_m_inv'] = "[072]" |
---|
84 | m_metric_tag['m_inv_cost'] = "[073]" |
---|
85 | |
---|
86 | m_metric_tag['broadcast'] = "[080]" |
---|
87 | m_metric_tag['write_broadcast'] = "[081]" |
---|
88 | m_metric_tag['getm_broadcast'] = "[082]" |
---|
89 | |
---|
90 | m_metric_tag['local_cleanup'] = "[090]" |
---|
91 | m_metric_tag['remote_cleanup'] = "[091]" |
---|
92 | m_metric_tag['cleanup_cost'] = "[092]" |
---|
93 | m_metric_tag['local_cleanup_d'] = "[093]" |
---|
94 | m_metric_tag['remote_cleanup_d'] = "[094]" |
---|
95 | m_metric_tag['cleanup_d_cost'] = "[095]" |
---|
96 | |
---|
97 | m_metric_tag['read_miss'] = "[100]" |
---|
98 | m_metric_tag['write_miss'] = "[101]" |
---|
99 | m_metric_tag['write_dirty'] = "[102]" |
---|
100 | m_metric_tag['getm_miss'] = "[103]" |
---|
101 | |
---|
102 | m_metric_tag['read_hit_trt'] = "[110]" # Reads blocked by a hit in the TRT |
---|
103 | m_metric_tag['trans_full_trt'] = "[111]" # Transactions blocked because the TRT is full |
---|
104 | m_metric_tag['put'] = "[120]" |
---|
105 | m_metric_tag['get'] = "[121]" |
---|
106 | m_metric_tag['min_heap_slots_av'] = "[130]" |
---|
107 | |
---|
108 | m_metric_tag['ncc_to_cc_read'] = "[140]" |
---|
109 | m_metric_tag['ncc_to_cc_write'] = "[141]" |
---|
110 | |
---|
111 | m_metric_tag['local_getm'] = "[150]" |
---|
112 | m_metric_tag['remote_getm'] = "[151]" |
---|
113 | m_metric_tag['getm_cost'] = "[152]" |
---|
114 | |
---|
115 | m_metric_tag['local_inval_ro'] = "[160]" |
---|
116 | m_metric_tag['remote_inval_ro'] = "[161]" |
---|
117 | m_metric_tag['inval_ro_cost'] = "[162]" |
---|
118 | |
---|
119 | |
---|
120 | |
---|
121 | all_metrics = m_metric_tag.keys() |
---|
122 | all_tags = m_metric_tag.values() |
---|
123 | |
---|
124 | m_metric_name = {} |
---|
125 | m_metric_name['counter_reset'] = "Counters reset at cycle" |
---|
126 | m_metric_name['ncycles'] = "Number of Cycles" |
---|
127 | |
---|
128 | m_metric_name['local_read'] = "Number of Local Reads (Miss in L1)" |
---|
129 | m_metric_name['remote_read'] = "Number of Remote Reads (Miss in L1)" |
---|
130 | m_metric_name['read_cost'] = "Read Cost" |
---|
131 | |
---|
132 | m_metric_name['local_write'] = "Number of Local Writes" |
---|
133 | m_metric_name['remote_write'] = "Number of Remote Writes" |
---|
134 | m_metric_name['write_flits_local'] = "Number of Local Write Flits" |
---|
135 | m_metric_name['write_flits_remote'] = "Number of Remote Write Flits" |
---|
136 | m_metric_name['write_cost'] = "Write Cost" |
---|
137 | |
---|
138 | m_metric_name['local_ll'] = "Number of Local LL" |
---|
139 | m_metric_name['remote_ll'] = "Number of Remote LL" |
---|
140 | m_metric_name['ll_cost'] = "LL Cost" |
---|
141 | |
---|
142 | m_metric_name['local_sc'] = "Number of Local SC" |
---|
143 | m_metric_name['remote_sc'] = "Number of Remote SC" |
---|
144 | m_metric_name['sc_cost'] = "SC Cost" |
---|
145 | |
---|
146 | m_metric_name['local_cas'] = "Number of Local CAS" |
---|
147 | m_metric_name['remote_cas'] = "Number of Remote CAS" |
---|
148 | m_metric_name['cas_cost'] = "CAS Cost" |
---|
149 | |
---|
150 | m_metric_name['req_trig_update'] = "Number of Requests Triggering an Update" |
---|
151 | m_metric_name['local_update'] = "Number of Local Updates" |
---|
152 | m_metric_name['remote_update'] = "Number of Remote Updates" |
---|
153 | m_metric_name['update_cost'] = "Update Cost" |
---|
154 | |
---|
155 | m_metric_name['req_trig_m_inv'] = "Number of Requests Triggering a M.inv" |
---|
156 | m_metric_name['local_m_inv'] = "Number of Local Multi Inval" |
---|
157 | m_metric_name['remote_m_inv'] = "Number of Remote Multi Inval" |
---|
158 | m_metric_name['m_inv_cost'] = "Multi Inval Cost" |
---|
159 | |
---|
160 | m_metric_name['broadcast'] = "Total Number of Broadcasts" |
---|
161 | m_metric_name['write_broadcast'] = "Number of Broadcasts Trig. by Writes" |
---|
162 | m_metric_name['nonwrite_broadcast'] = "Number of Broadcasts not Trig. by Writes" |
---|
163 | m_metric_name['getm_broadcast'] = "Number of Broadcasts Trig. by GetM" |
---|
164 | |
---|
165 | m_metric_name['local_cleanup'] = "Number of Local Cleanups" |
---|
166 | m_metric_name['remote_cleanup'] = "Number of Remote Cleanups" |
---|
167 | m_metric_name['cleanup_cost'] = "Cleanup Cost" |
---|
168 | m_metric_name['local_cleanup_d'] = "Number of Local Cleanups with Data" |
---|
169 | m_metric_name['remote_cleanup_d'] = "Number of Remote Cleanups with Data" |
---|
170 | m_metric_name['cleanup_d_cost'] = "Cleanup with Data Cost" |
---|
171 | |
---|
172 | m_metric_name['read_miss'] = "Number of Read Miss (in L2)" |
---|
173 | m_metric_name['write_miss'] = "Number of Write Miss (in L2)" |
---|
174 | m_metric_name['write_dirty'] = "Number of Write Dirty (from L2 to Memory)" |
---|
175 | m_metric_name['getm_miss'] = "Number of GetM Miss (in L2)" |
---|
176 | |
---|
177 | m_metric_name['read_hit_trt'] = "Number of Reads Blocked by a Hit in TRT" # Reads blocked by a hit in the TRT |
---|
178 | m_metric_name['trans_full_trt'] = "Number of Transactions Blocked because the TRT is Full" # Transactions blocked because the TRT is full |
---|
179 | m_metric_name['put'] = "Number of PUT to Memory" |
---|
180 | m_metric_name['get'] = "Number of GET from Memory" |
---|
181 | m_metric_name['min_heap_slots_av'] = "Minimum Number of Heap Slots available" |
---|
182 | |
---|
183 | m_metric_name['ncc_to_cc_read'] = "Number or Reads trig. NCC to CC" |
---|
184 | m_metric_name['ncc_to_cc_write'] = "Number of Writes trig. NCC to CC" |
---|
185 | |
---|
186 | m_metric_name['local_getm'] = "Number of Local GetM" |
---|
187 | m_metric_name['remote_getm'] = "Number of Remote GetM" |
---|
188 | m_metric_name['getm_cost'] = "GetM Cost" |
---|
189 | |
---|
190 | m_metric_name['local_inval_ro'] = "Number of Local Inval RO" |
---|
191 | m_metric_name['remote_inval_ro'] = "Number of Remote Inval RO" |
---|
192 | m_metric_name['inval_ro_cost'] = "Inval RO Cost" |
---|
193 | |
---|
194 | |
---|
195 | m_metric_name['total_read'] = "Total Number of Reads" |
---|
196 | m_metric_name['total_write'] = "Total Number of Writes" |
---|
197 | m_metric_name['total_ll'] = "Total Number of LL" |
---|
198 | m_metric_name['total_sc'] = "Total Number of SC" |
---|
199 | m_metric_name['total_cas'] = "Total Number of CAS" |
---|
200 | m_metric_name['total_update'] = "Total Number of Updates" |
---|
201 | m_metric_name['total_m_inv'] = "Total Number of Multi Inval" |
---|
202 | m_metric_name['total_cleanup'] = "Total Number of Cleanups" |
---|
203 | m_metric_name['total_cleanup_d'] = "Total Number of Cleanups with Data" |
---|
204 | m_metric_name['total_direct'] = "Total Number of Direct Requests" |
---|
205 | m_metric_name['total_ncc_to_cc'] = "Total Number of NCC to CC Changes" |
---|
206 | m_metric_name['broadcast_cost'] = "Broadcast Cost" |
---|
207 | m_metric_name['coherence_cost'] = "Coherence Cost" |
---|
208 | m_metric_name['direct_cost'] = "Direct Requests Cost" |
---|
209 | m_metric_name['total_stacked'] = "??" # Normalization factor, does not have a name (unused) |
---|
210 | |
---|
211 | |
---|
212 | |
---|
213 | m_metric_norm = {} # "N" (None), P (#procs), C (#cycles), W (#writes), R (#reads), D (#direct req -- R ou W), n (value with n proc(s)) |
---|
214 | m_metric_norm['req_trig_update'] = "C" |
---|
215 | m_metric_norm['local_update'] = "C" |
---|
216 | m_metric_norm['remote_update'] = "C" |
---|
217 | m_metric_norm['update_cost'] = "C" |
---|
218 | m_metric_norm['req_trig_m_inv'] = "C" |
---|
219 | m_metric_norm['local_m_inv'] = "C" |
---|
220 | m_metric_norm['remote_m_inv'] = "C" |
---|
221 | m_metric_norm['m_inv_cost'] = "C" |
---|
222 | m_metric_norm['broadcast'] = "C" |
---|
223 | m_metric_norm['total_update'] = "C" |
---|
224 | m_metric_norm['total_m_inv'] = "C" |
---|
225 | |
---|
226 | m_norm_factor_name = {} |
---|
227 | m_norm_factor_name['N'] = "" |
---|
228 | m_norm_factor_name['P'] = "Normalized w.r.t.\\nthe Number of Processors" |
---|
229 | m_norm_factor_name['C'] = "Normalized w.r.t.\\nthe Number of Cycles (x 1000)" |
---|
230 | m_norm_factor_name['W'] = "Normalized w.r.t.\\nthe Number of Writes" |
---|
231 | m_norm_factor_name['R'] = "Normalized w.r.t.\\nthe Number of Reads" |
---|
232 | m_norm_factor_name['D'] = "Normalized w.r.t.\\nthe Number of Direct Requests" |
---|
233 | m_norm_factor_name['1'] = "Normalized w.r.t.\\nthe Value on 1 Processor" |
---|
234 | m_norm_factor_name['4'] = "Normalized w.r.t.\\nthe Value on 4 Processors" |
---|
235 | m_norm_factor_name['8'] = "Normalized w.r.t.\\nthe Value on 8 Processors" |
---|
236 | m_norm_factor_name['16'] = "Normalized w.r.t.\\nthe Value on 16 Processors" |
---|
237 | m_norm_factor_name['32'] = "Normalized w.r.t.\\nthe Value on 32 Processors" |
---|
238 | m_norm_factor_name['64'] = "Normalized w.r.t.\\nthe Value on 64 Processors" |
---|
239 | m_norm_factor_name['128'] = "Normalized w.r.t.\\nthe Value on 128 Processors" |
---|
240 | m_norm_factor_name['256'] = "Normalized w.r.t.\\nthe Value on 256 Processors" |
---|
241 | |
---|
242 | |
---|
243 | |
---|
244 | #colors = [ "\"#008000\"", "\"#000080\"", "\"#BADC98\"", "\"#BA98DC\"", "\"#98DCBA\"", "\"#98BADC\"", "\"#BA9876\"", "\"#BA7698\"", "\"#98BA76\"", "\"#9876BA\"", "\"#76BA98\"", "\"#7698BA\"" ] |
---|
245 | colors = [ "\"#008000\"", "\"#FEDCBA\"", "\"#9876BA\"", "\"#000080\"", "\"#98DCBA\"", "\"#98BADC\"", "\"#BA9876\"", "\"#BA7698\"", "\"#98BA76\"", "\"#BADC98\"", "\"#76BA98\"", "\"#7698BA\"" ] |
---|
246 | |
---|
247 | |
---|