File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -709,7 +709,8 @@ def bench_optype(ctx: BenchmarkContext,
709
709
if test_correctness :
710
710
assert all ([
711
711
bt .test_correctness (op_type , expand_fn_add_inputs )
712
- for bt in bench_tensors
712
+ for bt in bench_tensors [:cuda_graph_nops if cuda_graph_nops
713
+ is not None else arg_pool_size ]
713
714
])
714
715
715
716
return timer
@@ -778,7 +779,7 @@ def print_timers(timers: List[TMeasurement],
778
779
if args and args .cuda_graph_nops :
779
780
print (f"The timings reported above is for { args .cuda_graph_nops } "
780
781
"consecutive invocations of the benchmarking functions. "
781
- "Please divide by {args.cuda_graph_nops} for single invocation "
782
+ f "Please divide by { args .cuda_graph_nops } for single invocation "
782
783
"timings " )
783
784
784
785
You can’t perform that action at this time.
0 commit comments