File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -629,19 +629,9 @@ def _inner() -> Callable[..., Any] | object:
629
629
["--input-id" , str (start_idx ), "--num-inputs" , str (shard_size )]
630
630
)
631
631
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
641
633
642
- # Print results if available
643
- if hasattr (benchmark , "output" ):
644
- print (benchmark .output )
634
+ tritonbench_run (tritonbench_args )
645
635
646
636
# Force garbage collection multiple times to ensure memory is freed
647
637
for _ in range (3 ):
You can’t perform that action at this time.
0 commit comments