You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Allow user to specify the number of warmup iteration runs. Also print out the wall clock time for each iteration and the average wall clock time for the whole run.
Differential Revision: D66801912
help=f"Replay iteration to start collecting profiler after warmup (if --do-warm-up is True). Default start from {self.profiler_num_replays_start} replay if --enables-profiler is True",
277
+
help=f"Replay iteration to start collecting profiler after warmup runs. Default start from {self.profiler_num_replays_start} replay if --enables-profiler is True",
279
278
)
280
279
parser.add_argument(
281
280
"--profiler-num-replays",
@@ -393,12 +392,19 @@ def reportBenchTime(self):
393
392
ifnotself.is_dry_run:
394
393
print("\n{} Performance of replayed comms {}".format("="*20, "="*20))
395
394
print(
396
-
"{}\n Total latency (us) of comms in trace {}:\n{}".format(
395
+
"{}\n Total latency (us) of comms in trace: {}.\n{}".format(
397
396
"-"*50,
398
397
self.totalTraceLatency,
399
398
"-"*50,
400
399
)
401
400
)
401
+
print(
402
+
"{}\n Average latency (us) of comms in trace: {}. \n{}".format(
0 commit comments