Commit a1a26df8 authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

plot_comm_comp: accept --per-thread option as an alias of --per-core

parent b14f6b8d
......@@ -15,6 +15,7 @@ BOTTOM_OPT = "--bottom="
STREAM_TOP_OPT = "--stream-top="
STREAM_BOTTOM_OPT = "--stream-bottom="
PER_CORE_OPT = "--per-core"
PER_THREAD_OPT = "--per-thread"
STREAM_BENCH_DISPLAY_OPT = "--stream="
TITLE_OPT = "--title="
OUTPUT_FILENAME_OPT = "--o="
......
......@@ -32,7 +32,7 @@ def man():
print(TOP_OPT)
print(STREAM_TOP_OPT)
print(STREAM_BENCH_DISPLAY_OPT, "[copy|add|triad|scale]")
print(PER_CORE_OPT, "[=<nb cores>]")
print(PER_CORE_OPT, PER_THREAD_OPT, "[=<nb cores>]")
print(OUTPUT_FILENAME_OPT)
print(TITLE_OPT)
print(NETWORK_BANDWIDTH_OPT)
......@@ -63,6 +63,9 @@ def parse_options(options):
files = []
for opt in options:
if opt.startswith(PER_THREAD_OPT):
opt = opt.replace(PER_THREAD_OPT, PER_CORE_OPT)
if opt == SLIDE_FORMAT_OPT:
slide_format = True
elif opt == MERGE_FORMAT_OPT:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment