Commit 3b0c7aa8f70b6ab8ff42416facb7807a27dd850d

Authored by Dave Werner
1 parent 9455bb7d

Updated Optimal Performance Point for Gobmk Across Inefficiencies(Fig. 3)

figures/plots/496/2d_best_point_variation_mulineff/gobmk_2d_stable_point_mulineff_cpi_mpki.pdf
No preview for this file type
figures/stable_point_multi_ineff.py
@@ -138,8 +138,10 @@ def plot_2d_stable_point_mulineff_cpi_mpki(args): @@ -138,8 +138,10 @@ def plot_2d_stable_point_mulineff_cpi_mpki(args):
138 benchmarks, labels = get_benchmarks(args) 138 benchmarks, labels = get_benchmarks(args)
139 benchmarks = ['gobmk'] 139 benchmarks = ['gobmk']
140 budgets = get_mul_ineffs() 140 budgets = get_mul_ineffs()
141 - colors=['r','b','g','y']  
142 - linestyles=['-','--',':','-'] 141 + colors = [ 'r' , 'b' , 'g' , 'y' ]
  142 + linestyles = [ '-' , '--' , '-' , '-' ]
  143 + linewidths = [ 1 , 1 , 1 , 1 ]
  144 + linedashes = [ [] , [5,1] , [2,0.5,1,0.5] , [] ] # [ on_len, off_len....]
143 145
144 legend_size = 8 146 legend_size = 8
145 147
@@ -213,12 +215,14 @@ def plot_2d_stable_point_mulineff_cpi_mpki(args): @@ -213,12 +215,14 @@ def plot_2d_stable_point_mulineff_cpi_mpki(args):
213 memfpoints = [memf for memf in [data_to_plot[sample]["mem_freq"] for sample in range(len(data_to_plot))]] 215 memfpoints = [memf for memf in [data_to_plot[sample]["mem_freq"] for sample in range(len(data_to_plot))]]
214 samplepoints = [sample for sample in range(len(data_to_plot))] 216 samplepoints = [sample for sample in range(len(data_to_plot))]
215 217
216 - if budget < 2:  
217 - ax_cpuf.plot(samplepoints, cpufpoints, color=colors[budgets.index(budget)], linestyle=linestyles[budgets.index(budget)], label=budget)  
218 - ax_memf.plot(samplepoints, memfpoints, color=colors[budgets.index(budget)], linestyle=linestyles[budgets.index(budget)], label=budget)  
219 - else :  
220 - ax_cpuf.plot(samplepoints, cpufpoints, color=colors[budgets.index(budget)], linestyle=linestyles[budgets.index(budget)], label="\infty")  
221 - ax_memf.plot(samplepoints, memfpoints, color=colors[budgets.index(budget)], linestyle=linestyles[budgets.index(budget)], label="\infty") 218 + label = budget if budget < 2 else "\infty"
  219 + ax_cpuf.plot(samplepoints, cpufpoints, color=colors[budgets.index(budget)],
  220 + linestyle=linestyles[budgets.index(budget)], label=label,
  221 + linewidth=linewidths[budgets.index(budget)], dashes= linedashes[budgets.index(budget)])
  222 +
  223 + ax_memf.plot(samplepoints, memfpoints, color=colors[budgets.index(budget)],
  224 + linestyle=linestyles[budgets.index(budget)], label=label,
  225 + linewidth=linewidths[budgets.index(budget)], dashes= linedashes[budgets.index(budget)])
222 226
223 samplepoints = [sample for sample in range(len(frontiers_data["data"]))] 227 samplepoints = [sample for sample in range(len(frontiers_data["data"]))]
224 cpi = get_cpi(bmark, dir_path) 228 cpi = get_cpi(bmark, dir_path)