Skip to content

Commit 6c56694

Browse files
authored
Fix tritonbench integration issue (#463)
1 parent 0a19c36 commit 6c56694

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
@@ -475,19 +475,9 @@ def _inner() -> Callable[..., Any] | object:
475475
["--input-id", str(start_idx), "--num-inputs", str(shard_size)]
476476
)
477477

478-
# Re-parse args with the new input range
479-
tb_args, unknown_args = tb_parser.parse_known_args(tritonbench_args)
480-
481-
# Use the public API to load and run the operator
482-
from tritonbench.operators import load_opbench_by_name
483-
484-
op_class = load_opbench_by_name(operator_name)
485-
benchmark = op_class(tb_args=tb_args, extra_args=unknown_args)
486-
benchmark.run()
478+
from tritonbench.run import run as tritonbench_run
487479

488-
# Print results if available
489-
if hasattr(benchmark, "output"):
490-
print(benchmark.output)
480+
tritonbench_run(tritonbench_args)
491481

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

0 commit comments

Comments
 (0)