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

Last change on this file since 755 was 749, checked in by meunier, 10 years ago
  • Updating tsar_generic_xbar topcell so that the -NCYCLES option be considered even when debug is deactivated
  • Updating the simulation scripts to reflect benchmarks evolutions
File size: 8.7 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_app_name = {}
9m_app_name['mandel'] = "Mandelbrot"
10m_app_name['filter'] = "Filter"
11m_app_name['filt_ga'] = "Filter (opt.)"
12m_app_name['histogram'] = "Histogram"
13m_app_name['kmeans'] = "Kmeans"
14m_app_name['pca'] = "PCA"
15m_app_name['mat_mult'] = "Matrix Mult."
16m_app_name['barnes'] = "Barnes"
17m_app_name['fmm'] = "FMM"
18m_app_name['ocean'] = "Ocean"
19m_app_name['raytrace'] = "Raytrace"
20m_app_name['radiosity'] = "Radiosity"
21m_app_name['waters'] = "Water Sp."
22m_app_name['watern'] = "Water Nsq."
23m_app_name['cholesky'] = "Cholesky"
24m_app_name['lu'] = "LU"
25m_app_name['fft'] = "FFT"
26m_app_name['radix'] = "Radix"
27m_app_name['fft_ga'] = "FFT"
28m_app_name['radix_ga'] = "Radix"
29
30m_metric_id = {}
31m_metric_tag = {}
32m_metric_tag['counter_reset']      = "[000]"
33m_metric_tag['ncycles']            = "[001]"
34m_metric_tag['local_read']         = "[002]"
35m_metric_tag['remote_read']        = "[003]"
36m_metric_tag['read_cost']          = "[004]"
37m_metric_tag['local_write']        = "[005]"
38m_metric_tag['remote_write']       = "[006]"
39m_metric_tag['write_flits_local']  = "[007]"
40m_metric_tag['write_flits_remote'] = "[008]"
41m_metric_tag['write_cost']         = "[009]"
42m_metric_tag['local_ll']           = "[010]"
43m_metric_tag['remote_ll']          = "[011]"
44m_metric_tag['ll_cost']            = "[012]"
45m_metric_tag['local_sc']           = "[013]"
46m_metric_tag['remote_sc']          = "[014]"
47m_metric_tag['sc_cost']            = "[015]"
48m_metric_tag['local_cas']          = "[016]"
49m_metric_tag['remote_cas']         = "[017]"
50m_metric_tag['cas_cost']           = "[018]"
51m_metric_tag['req_trig_update']    = "[019]"
52m_metric_tag['local_update']       = "[020]"
53m_metric_tag['remote_update']      = "[021]"
54m_metric_tag['update_cost']        = "[022]"
55m_metric_tag['req_trig_m_inv']     = "[023]"
56m_metric_tag['local_m_inv']        = "[024]"
57m_metric_tag['remote_m_inv']       = "[025]"
58m_metric_tag['m_inv_cost']         = "[026]"
59m_metric_tag['broadcast']          = "[027]"
60m_metric_tag['local_cleanup']      = "[028]"
61m_metric_tag['remote_cleanup']     = "[029]"
62m_metric_tag['cleanup_cost']       = "[030]"
63m_metric_tag['nb_read_miss']       = "[031]"
64m_metric_tag['write_miss']         = "[032]"
65m_metric_tag['write_dirty']        = "[033]"
66m_metric_tag['read_hit_trt']       = "[034]" # Reads blocked by a hit in the TRT
67m_metric_tag['trans_full_trt']     = "[035]" # Transactions blocked because the TRT is full
68m_metric_tag['put']                = "[036]"
69m_metric_tag['get']                = "[037]"
70m_metric_tag['write_broadcast']    = "[038]"
71
72m_metric_tag['total_read']         = "[040]"
73m_metric_tag['total_write']        = "[041]"
74m_metric_tag['total_ll']           = "[042]"
75m_metric_tag['total_sc']           = "[043]"
76m_metric_tag['total_cas']          = "[044]"
77m_metric_tag['total_update']       = "[045]"
78m_metric_tag['total_m_inv']        = "[046]"
79m_metric_tag['total_cleanup']      = "[047]"
80m_metric_tag['total_direct']       = "[048]"
81
82m_metric_tag['nonwrite_broadcast'] = "[050]"
83m_metric_tag['broadcast_cost']     = "[051]"
84m_metric_tag['direct_cost']        = "[052]"
85m_metric_tag['total_stacked']      = "|060]"
86
87all_metrics = m_metric_tag.keys()
88all_tags = m_metric_tag.values()
89
90m_metric_name = {}
91m_metric_name['counter_reset']      = "Counters reset at cycle"
92m_metric_name['ncycles']            = "Number of Cycles"
93m_metric_name['local_read']         = "Number of Local Reads (Miss in L1)"
94m_metric_name['remote_read']        = "Number of Remote Reads (Miss in L1)"
95m_metric_name['read_cost']          = "Read Cost"
96m_metric_name['local_write']        = "Number of Local Writes"
97m_metric_name['remote_write']       = "Number of Remote Writes"
98m_metric_name['write_flits_local']  = "Number of Local Write Flits"
99m_metric_name['write_flits_remote'] = "Number of Remote Write Flits"
100m_metric_name['write_cost']         = "Write Cost"
101m_metric_name['local_ll']           = "Number of Local LL"
102m_metric_name['remote_ll']          = "Number of Remote LL"
103m_metric_name['ll_cost']            = "LL Cost"
104m_metric_name['local_sc']           = "Number of Local SC"
105m_metric_name['remote_sc']          = "Number of Remote SC"
106m_metric_name['sc_cost']            = "SC Cost"
107m_metric_name['local_cas']          = "Number of Local CAS"
108m_metric_name['remote_cas']         = "Number of Remote CAS"
109m_metric_name['cas_cost']           = "CAS Cost"
110m_metric_name['req_trig_update']    = "Number of Requests Triggering an Update"
111m_metric_name['local_update']       = "Number of Local Updates"
112m_metric_name['remote_update']      = "Number of Remote Updates"
113m_metric_name['update_cost']        = "Update Cost"
114m_metric_name['req_trig_m_inv']     = "Number of Requests Triggering a M.inv"
115m_metric_name['local_m_inv']        = "Number of Local Multi Inval"
116m_metric_name['remote_m_inv']       = "Number of Remote Multi Inval"
117m_metric_name['m_inv_cost']         = "Multi Inval Cost"
118m_metric_name['broadcast']          = "Number of Broadcasts"
119m_metric_name['broadcast']          = "Total Number of Broadcasts"
120m_metric_name['local_cleanup']      = "Number of Local Cleanups"
121m_metric_name['remote_cleanup']     = "Number of Remote Cleanups"
122m_metric_name['cleanup_cost']       = "Cleanup Cost"
123m_metric_name['nb_read_miss']       = "Number of Read Miss (in L2)"
124m_metric_name['write_miss']         = "Number of Write Miss (in L2)"
125m_metric_name['write_dirty']        = "Number of Write Dirty (from L2 to Memory)"
126m_metric_name['read_hit_trt']       = "Number of Reads Blocked by a Hit in TRT" # Reads blocked by a hit in the TRT
127m_metric_name['trans_full_trt']     = "Number of Transactions Blocked because the TRT is Full" # Transactions blocked because the TRT is full
128m_metric_name['put']                = "Number of PUT to Memory"
129m_metric_name['get']                = "Number of GET from Memory"
130m_metric_name['write_broadcast']    = "Number of Broadcasts Trig. by Writes"
131
132m_metric_name['total_read']         = "Total Number of Reads"
133m_metric_name['total_write']        = "Total Number of Writes"
134m_metric_name['total_ll']           = "Total Number of LL"
135m_metric_name['total_sc']           = "Total Number of SC"
136m_metric_name['total_cas']          = "Total Number of CAS"
137m_metric_name['total_update']       = "Total Number of Updates"
138m_metric_name['total_m_inv']        = "Total Number of Multi Inval"
139m_metric_name['total_cleanup']      = "Total Number of Cleanups"
140m_metric_name['total_direct']       = "Total Number of Direct Requests"
141m_metric_name['nonwrite_broadcast'] = "Number of Broadcasts not Trig. by Writes"
142m_metric_name['broadcast_cost']     = "Broadcast Cost"
143m_metric_name['direct_cost']        = "Direct Requests Cost"
144m_metric_name['total_stacked']      = "??" # Normalization factor
145
146
147
148m_metric_norm = {} # "N" (None), P (#procs), C (#cycles), W (#writes), R (#reads), D (#direct req -- R ou W), n (value with n proc(s))
149m_metric_norm['req_trig_update']   = "C"
150m_metric_norm['local_update']      = "C"
151m_metric_norm['remote_update']     = "C"
152m_metric_norm['update_cost']       = "C"
153m_metric_norm['req_trig_m_inv']    = "C"
154m_metric_norm['local_m_inv']       = "C"
155m_metric_norm['remote_m_inv']      = "C"
156m_metric_norm['m_inv_cost']        = "C"
157m_metric_norm['broadcast']         = "C"
158m_metric_norm['total_update']      = "C"
159m_metric_norm['total_m_inv']       = "C"
160
161m_norm_factor_name = {}
162m_norm_factor_name['N']   = ""
163m_norm_factor_name['P']   = "Normalized w.r.t.\\nthe Number of Processors"
164m_norm_factor_name['C']   = "Normalized w.r.t.\\nthe Number of Cycles (x 1000)"
165m_norm_factor_name['W']   = "Normalized w.r.t.\\nthe Number of Writes"
166m_norm_factor_name['R']   = "Normalized w.r.t.\\nthe Number of Reads"
167m_norm_factor_name['D']   = "Normalized w.r.t.\\nthe Number of Direct Requests"
168m_norm_factor_name['1']   = "Normalized w.r.t.\\nthe Value on 1 Processor"
169m_norm_factor_name['4']   = "Normalized w.r.t.\\nthe Value on 4 Processors"
170m_norm_factor_name['8']   = "Normalized w.r.t.\\nthe Value on 8 Processors"
171m_norm_factor_name['16']  = "Normalized w.r.t.\\nthe Value on 16 Processors"
172m_norm_factor_name['32']  = "Normalized w.r.t.\\nthe Value on 32 Processors"
173m_norm_factor_name['64']  = "Normalized w.r.t.\\nthe Value on 64 Processors"
174m_norm_factor_name['128'] = "Normalized w.r.t.\\nthe Value on 128 Processors"
175m_norm_factor_name['256'] = "Normalized w.r.t.\\nthe Value on 256 Processors"
176
177
178
179colors = [ "\"#008000\"", "\"#000080\"", "\"#BADC98\"", "\"#BA98DC\"", "\"#98DCBA\"", "\"#98BADC\"", "\"#BA9876\"", "\"#BA7698\"", "\"#98BA76\"", "\"#9876BA\"", "\"#76BA98\"", "\"#7698BA\"" ]
180
181
Note: See TracBrowser for help on using the repository browser.