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 @@ -475,19 +475,9 @@ def _inner() -> Callable[..., Any] | object:
475
475
["--input-id" , str (start_idx ), "--num-inputs" , str (shard_size )]
476
476
)
477
477
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
487
479
488
- # Print results if available
489
- if hasattr (benchmark , "output" ):
490
- print (benchmark .output )
480
+ tritonbench_run (tritonbench_args )
491
481
492
482
# Force garbage collection multiple times to ensure memory is freed
493
483
for _ in range (3 ):
You can’t perform that action at this time.
0 commit comments