Skip to content

Commit 42effe5

Browse files
committed
Fix tritonbench integration issue
1 parent 75749f9 commit 42effe5

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

benchmarks/run.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -629,19 +629,9 @@ def _inner() -> Callable[..., Any] | object:
629629
["--input-id", str(start_idx), "--num-inputs", str(shard_size)]
630630
)
631631

632-
# Re-parse args with the new input range
633-
tb_args, unknown_args = tb_parser.parse_known_args(tritonbench_args)
634-
635-
# Use the public API to load and run the operator
636-
from tritonbench.operators import load_opbench_by_name
637-
638-
op_class = load_opbench_by_name(operator_name)
639-
benchmark = op_class(tb_args=tb_args, extra_args=unknown_args)
640-
benchmark.run()
632+
from tritonbench.run import run as tritonbench_run
641633

642-
# Print results if available
643-
if hasattr(benchmark, "output"):
644-
print(benchmark.output)
634+
tritonbench_run(tritonbench_args)
645635

646636
# Force garbage collection multiple times to ensure memory is freed
647637
for _ in range(3):

0 commit comments

Comments
 (0)