Skip to content
Snippets Groups Projects
Commit 9578bbc7 authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Test] fix Mb/s -> MB/s in throughput end2end test

parent 10f60496
No related branches found
No related tags found
No related merge requests found
......@@ -157,8 +157,8 @@ def throughput_test_rtlsim(model, batchsize=100):
res["cycles"] = cycles
res["runtime[ms]"] = runtime_s * 1000
res["throughput[images/s]"] = batchsize / runtime_s
res["DRAM_in_bandwidth[Mb/s]"] = i_bytes * 0.000001 / runtime_s
res["DRAM_out_bandwidth[Mb/s]"] = o_bytes * 0.000001 / runtime_s
res["DRAM_in_bandwidth[MB/s]"] = i_bytes * 0.000001 / runtime_s
res["DRAM_out_bandwidth[MB/s]"] = o_bytes * 0.000001 / runtime_s
res["fclk[mhz]"] = fclk_mhz
res["N"] = batchsize
......
......@@ -803,7 +803,7 @@ class TestEnd2End:
ret_str += "\n" + "Raw data:"
ret_str += "\n" + "{:<8} {:<16} {:<16} {:<16} {:<16} {:<16}".format(
"N", "runtime[ms]", "fclk[mhz]", "fps", "DRAM rd[Mb/s]", "DRAM wr[Mb/s]"
"N", "runtime[ms]", "fclk[mhz]", "fps", "DRAM rd[MB/s]", "DRAM wr[MB/s]"
)
for k in bsize_range:
v = ret[k]
......@@ -812,8 +812,8 @@ class TestEnd2End:
np.round(v["runtime[ms]"], 4),
v["fclk[mhz]"],
np.round(v["throughput[images/s]"], 2),
np.round(v["DRAM_in_bandwidth[Mb/s]"], 2),
np.round(v["DRAM_out_bandwidth[Mb/s]"], 2),
np.round(v["DRAM_in_bandwidth[MB/s]"], 2),
np.round(v["DRAM_out_bandwidth[MB/s]"], 2),
)
ret_str += "\n" + "-----------------------------"
warnings.warn(ret_str)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment