source: trunk/platforms/tsar_generic_xbar/scripts/counter_defs.py @ 1032

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