Skip to content

Commit

Permalink
Small bug fixes (#17)
Browse files Browse the repository at this point in the history
- Fixed issue with regex when using `--label-regex` with `sbench-analyze plot`
- Removed deprecated `gpu_timers` parameter
  • Loading branch information
iomaganaris committed Apr 8, 2024
1 parent 701a613 commit 8575e02
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion stencil_benchmarks/scripts/sbench_a100_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def main():
gpu_architecture='sm_80',
verify=False,
dry_runs=1,
gpu_timers=True,
alignment=128,
dtype='float32')

Expand Down
6 changes: 3 additions & 3 deletions stencil_benchmarks/scripts/sbench_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ def plot(csv, uniform, ylim, title, auto_group, group, select, filter,

regexes = []
for regex in label_regex:
splitter = label_regex[0]
if label_regex[-1] != splitter:
splitter = regex[0]
if regex[-1] != splitter:
raise ValueError('expected input in the form /pattern/repl/')
pattern, repl = label_regex[1:-1].split(splitter, 1)
pattern, repl = regex[1:-1].split(splitter, 1)
regexes.append((re.compile(pattern), repl))

for index, row in df.iterrows():
Expand Down
1 change: 0 additions & 1 deletion stencil_benchmarks/scripts/sbench_mi100_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def main():
gpu_architecture='gfx908',
verify=False,
dry_runs=100,
gpu_timers=True,
alignment=512,
dtype='float32')

Expand Down
1 change: 0 additions & 1 deletion stencil_benchmarks/scripts/sbench_mi50_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def main():
gpu_architecture='gfx906',
verify=False,
dry_runs=1,
gpu_timers=True,
alignment=64,
dtype='float32')

Expand Down
1 change: 0 additions & 1 deletion stencil_benchmarks/scripts/sbench_v100_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def main():
gpu_architecture='sm_70',
verify=False,
dry_runs=1,
gpu_timers=True,
alignment=128,
dtype='float32')

Expand Down

0 comments on commit 8575e02

Please sign in to comment.