Skip to content

Commit 1072557

Browse files
committed
Fix latency time measurement
1 parent 44ef929 commit 1072557

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benchmarks/bench_load_latency.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,12 @@ def print_run_settings(
270270
mm_begin_cpu = mm_begin_timestamp.cpu().numpy()
271271
mm_end_cpu = mm_end_timestamp.cpu().numpy()
272272

273-
gpu_freq = iris.hip.get_wall_clock_rate(cur_rank) * 1e-3
273+
gpu_freq = iris.hip.get_wall_clock_rate(cur_rank)
274+
274275
for destination_rank in range(num_ranks):
275276
delta = mm_end_cpu[destination_rank, :] - mm_begin_cpu[destination_rank, :]
276277
avg_cc = float(delta.sum() / max(1, delta.size) / max(1, niter))
277-
local_latency[destination_rank] = avg_cc / gpu_freq
278+
local_latency[destination_rank] = avg_cc * 1e6 / gpu_freq
278279

279280
latency_matrix = mpi_allgather(local_latency.cpu())
280281

0 commit comments

Comments
 (0)