|
|
@ -60,7 +60,7 @@ def read_cache_hitrate_from_csv(fname) -> float: |
|
|
|
|
|
|
|
def generate_speedup_table(): |
|
|
|
baseline = read_total_time_from_csv(dram_result) |
|
|
|
columns = [ "Configuration", "Speedup", "Cache Hitrate" ] |
|
|
|
columns = [ "Configuration", "Speedup", "Cache Hitrate", "Raw Time" ] |
|
|
|
|
|
|
|
names = [ |
|
|
|
"DDR-SDRAM (Baseline)", |
|
|
@ -91,10 +91,32 @@ def generate_speedup_table(): |
|
|
|
] |
|
|
|
|
|
|
|
data = [ |
|
|
|
[ names[0], f"x{speedup[0]:1.2f}", r" \textemdash " ], |
|
|
|
[ names[1], f"x{speedup[1]:1.2f}", r" \textemdash " ], |
|
|
|
[ names[2], f"x{speedup[2]:1.2f}", f"{cachehr[2]:2.2f} \%" ], |
|
|
|
[ names[3], f"x{speedup[3]:1.2f}", f"{cachehr[3]:2.2f} \%" ] |
|
|
|
[ names[0], f"x{speedup[0]:1.2f}", r" \textemdash ", f"{rawtime[0]:.2f} ms" ], |
|
|
|
[ names[1], f"x{speedup[1]:1.2f}", r" \textemdash ", f"{rawtime[1]:.2f} ms" ], |
|
|
|
[ names[2], f"x{speedup[2]:1.2f}", f"{cachehr[2]:2.2f} \%", f"{rawtime[2]:.2f} ms" ], |
|
|
|
[ names[3], f"x{speedup[3]:1.2f}", f"{cachehr[3]:2.2f} \%", f"{rawtime[3]:.2f} ms" ] |
|
|
|
] |
|
|
|
|
|
|
|
return pd.DataFrame(data, columns=columns) |
|
|
|
|
|
|
|
|
|
|
|
def generate_rawtime_base_table(): |
|
|
|
baseline = read_total_time_from_csv(dram_result) |
|
|
|
columns = [ "Configuration", "Raw Time" ] |
|
|
|
|
|
|
|
names = [ |
|
|
|
"DDR-SDRAM (Baseline)", |
|
|
|
"HBM (Upper Limit)" |
|
|
|
] |
|
|
|
|
|
|
|
rawtime = [ |
|
|
|
read_total_time_from_csv(dram_result), |
|
|
|
read_total_time_from_csv(hbm_result) |
|
|
|
] |
|
|
|
|
|
|
|
data = [ |
|
|
|
[ names[0], f"{rawtime[0]:.2f} ms" ], |
|
|
|
[ names[1], f"{rawtime[1]:.2f} ms" ] |
|
|
|
] |
|
|
|
|
|
|
|
return pd.DataFrame(data, columns=columns) |
|
|
@ -135,7 +157,9 @@ def main(): |
|
|
|
donut_plot(read_timings_from_csv(distprefetch_result), "plot-timing-distprefetch.pdf") |
|
|
|
donut_plot(read_timings_from_csv(dram_result), "plot-timing-dram.pdf") |
|
|
|
donut_plot(read_timings_from_csv(hbm_result), "plot-timing-hbm.pdf") |
|
|
|
tex_table(generate_speedup_table(), "table-qdpspeedup.tex") |
|
|
|
donut_plot(read_timings_from_csv(prefetch_result), "plot-timing-prefetch.pdf") |
|
|
|
tex_table(generate_speedup_table(), "table-qdp-speedup.tex") |
|
|
|
tex_table(generate_rawtime_base_table(), "table-qdp-baseline.tex") |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|