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