From 3341ff57ab4464a4c3d15504df228ddc779c9fd4 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 15 Dec 2023 15:07:17 +0100 Subject: MRAM-Latency: correctly calculate and label throughput --- Microbenchmarks/MRAM-Latency/host/app.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Microbenchmarks/MRAM-Latency') diff --git a/Microbenchmarks/MRAM-Latency/host/app.c b/Microbenchmarks/MRAM-Latency/host/app.c index 3b5c530..3f8b1d2 100644 --- a/Microbenchmarks/MRAM-Latency/host/app.c +++ b/Microbenchmarks/MRAM-Latency/host/app.c @@ -143,14 +143,14 @@ int main(int argc, char **argv) { printf("[::] DMA UPMEM | n_dpus=%d n_ranks=%d n_tasklets=%d e_type=%s n_elements=%u block_size_B=%d" " | latency_mram_read_us=%f latency_mram_write_us=%f" " throughput_dpu_mram_read_MBps=%f throughput_dpu_mram_write_MBps=%f" - " throughput_mram_read_MBps=%f throughput_mram_write_MBps=%f\n", + " throughput_tasklet_mram_read_MBps=%f throughput_tasklet_mram_write_MBps=%f\n", nr_of_dpus, nr_of_ranks, NR_TASKLETS, XSTR(T), input_size_dpu, BLOCK_SIZE, ((double)result.r_cycles * 1e6 / clocks_per_sec) / result.count, ((double)result.w_cycles * 1e6 / clocks_per_sec) / result.count, - input_size * sizeof(T) / ((double)result.r_cycles * 1e6 / clocks_per_sec), - input_size * sizeof(T) / ((double)result.w_cycles * 1e6 / clocks_per_sec), - input_size * sizeof(T) / ((double)result.r_cycles * 1e6 * NR_TASKLETS / clocks_per_sec), - input_size * sizeof(T) / ((double)result.w_cycles * 1e6 * NR_TASKLETS / clocks_per_sec)); + input_size_dpu * sizeof(T) / ((double)result.r_cycles * 1e6 / clocks_per_sec), + input_size_dpu * sizeof(T) / ((double)result.w_cycles * 1e6 / clocks_per_sec), + input_size_dpu * sizeof(T) / ((double)result.r_cycles * 1e6 * NR_TASKLETS / clocks_per_sec), + input_size_dpu * sizeof(T) / ((double)result.w_cycles * 1e6 * NR_TASKLETS / clocks_per_sec)); } #endif i++; -- cgit v1.2.3