Skip to content

Commit e737b8f

Browse files
adamomainzfacebook-github-bot
authored andcommitted
specifying logged benchmark name for tritonBench servicelab logging
Summary: more specific logging in our logging table based on servicelab benchmark names Reviewed By: nmacchioni Differential Revision: D64627855 fbshipit-source-id: 47e250c5d8a34a912e7885e1f997a90a9dd8bc10
1 parent 0a9cd8f commit e737b8f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

userbenchmark/triton/run.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ def get_parser(args=None):
159159
action="store_true",
160160
help="Benchmarking aten ops in torchbenchmark/operator_loader.",
161161
)
162+
parser.add_argument(
163+
"--logging-name",
164+
type=str,
165+
default=None,
166+
help="Override default name for logging in scuba.",
167+
)
162168

163169
if not hasattr(torch_version, "git_version"):
164170
parser.add_argument("--log-scuba", action="store_true", help="Log to scuba.")
@@ -199,9 +205,11 @@ def _run(args: argparse.Namespace, extra_args: List[str]) -> BenchmarkOperatorRe
199205
from .fb.utils import log_benchmark
200206

201207
if "hardware" in args:
202-
log_benchmark(metrics, args.op, args.hardware)
208+
log_benchmark(
209+
metrics, args.op, args.hardware, logging_op_name=args.logging_name
210+
)
203211
else:
204-
log_benchmark(metrics, args.op)
212+
log_benchmark(metrics, args.op, logging_op_name=args.logging_name)
205213
if args.plot:
206214
try:
207215
opbench.plot()

0 commit comments

Comments
 (0)