Commit ad31d16f768ad97171bf574427b5eed1d292ba3c

Authored by Rizwana Begum
1 parent f38f9843

cleanup

Showing 1 changed file with 0 additions and 10 deletions
figures/notuning_wtuning.py
... ... @@ -108,19 +108,12 @@ def energy_time(args, budget_list, cluster_thresh, perf_cost, energy_cost):
108 108 if point["speedup"] > optimal_point["speedup"]:
109 109 optimal_point = point
110 110  
111   -# if frontiers_data["data"].index(data) == 5:
112   -# print filtered_data
113   -# print optimal_point
114   -
115 111 local_rect_points=[]
116 112 for point in filtered_data:
117 113 if (optimal_point["speedup"] - point["speedup"]) < 0:
118 114 print "something is wrong!"
119 115  
120 116 if (optimal_point["speedup"] - point["speedup"]) * 100 / optimal_point["speedup"] <= cluster_thresh:
121   - # if optimal_point != point:
122   - # print optimal_point
123   - # print point
124 117 data_to_plot.append(point)
125 118 sample_points.append(frontiers_data["data"].index(data))
126 119 local_rect_points.append(point)
... ... @@ -140,7 +133,6 @@ def energy_time(args, budget_list, cluster_thresh, perf_cost, energy_cost):
140 133 current_sample = -1
141 134 length = 1
142 135 lengths = []
143   - prev_tr_sample = 0
144 136 energy = 0
145 137 performance = 0
146 138 aggr_energy = 0
... ... @@ -186,11 +178,9 @@ def energy_time(args, budget_list, cluster_thresh, perf_cost, energy_cost):
186 178 if index < len(samplepoints):
187 179 if idx == samplepoints[index]-2:
188 180 done = 1
189   - prev_tr_sample = samplepoints[index]-2
190 181 else:
191 182 if idx == samplepoints[-2]:
192 183 done = 1
193   - prev_tr_sample = samplepoints[-2]
194 184 idx += 1
195 185  
196 186 # When there are no common points, transition
... ...