You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: devops/scripts/benchmarks/compare.py
+49-62Lines changed: 49 additions & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -46,24 +46,6 @@ class BenchmarkHistoricAverage:
46
46
# TODO Ensure ONEAPI_DEVICE_SELECTOR? GPU name itself?
47
47
48
48
49
-
classOutputFile:
50
-
"""
51
-
Represents a text file to output, but only output the file when manually
52
-
specified.
53
-
"""
54
-
55
-
def__init__(self, output_path: str):
56
-
self.output_path=output_path
57
-
self.output_content= []
58
-
59
-
defwrite_file(self):
60
-
withopen(self.output_path, "w") asf:
61
-
f.write("\n".join(self.output_content))
62
-
63
-
defprintln(self, text: str):
64
-
self.output_content.append(text)
65
-
66
-
67
49
classCompare:
68
50
"""Class containing logic for comparisons between results"""
69
51
@@ -358,18 +340,25 @@ def to_hist(
358
340
parser_avg.add_argument(
359
341
"--regression-filter",
360
342
type=str,
361
-
help="If provided, only regressions matching provided regex will cause exit status 1.",
343
+
help="If provided, only regressions in tests matching provided regex will cause exit status 1.",
362
344
default=None,
363
345
)
346
+
parser_avg.add_argument(
347
+
"--regression-filter-type",
348
+
type=str,
349
+
help="Name to use in logging for tests that fall within the filter defined by --regression-filter; i.e. if --regression-filter filters for SYCL benchmarks, --regression-filter-type could be 'SYCL'.",
350
+
default="filtered",
351
+
)
364
352
parser_avg.add_argument(
365
353
"--dry-run",
366
354
action="store_true",
367
355
help="Do not return error upon regressions.",
368
356
)
369
357
parser_avg.add_argument(
370
358
"--produce-github-summary",
371
-
action="store_true",
372
-
help="Produce a github CI summary file.",
359
+
type=str,
360
+
help="Create a github CI summary file using the provided filename",
0 commit comments