From 849982b40ffdba55bfc1ffb6f604389732a2aad8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 29 Jun 2023 16:39:32 +0200 Subject: CPU-DPU: do not scale down data size in BROADCAST benchmark --- Microbenchmarks/CPU-DPU/host/app.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Microbenchmarks') diff --git a/Microbenchmarks/CPU-DPU/host/app.c b/Microbenchmarks/CPU-DPU/host/app.c index 633f080..0a0c36a 100644 --- a/Microbenchmarks/CPU-DPU/host/app.c +++ b/Microbenchmarks/CPU-DPU/host/app.c @@ -84,7 +84,7 @@ int main(int argc, char **argv) { // Input arguments const unsigned int input_size_dpu = input_size / nr_of_dpus; #ifdef BROADCAST - const unsigned int transfer_size = input_size_dpu; + const unsigned int transfer_size = input_size; #else const unsigned int transfer_size = input_size; #endif @@ -118,7 +118,7 @@ int main(int argc, char **argv) { i++; } #elif BROADCAST - DPU_ASSERT(dpu_broadcast_to(dpu_set, DPU_MRAM_HEAP_POINTER_NAME, 0, bufferA, input_size_dpu * sizeof(T), DPU_XFER_DEFAULT)); + DPU_ASSERT(dpu_broadcast_to(dpu_set, DPU_MRAM_HEAP_POINTER_NAME, 0, bufferA, input_size * sizeof(T), DPU_XFER_DEFAULT)); #else DPU_FOREACH(dpu_set, dpu, i) { DPU_ASSERT(dpu_prepare_xfer(dpu, bufferA + input_size_dpu * i)); @@ -197,7 +197,7 @@ int main(int argc, char **argv) { */ // Check output bool status = true; -#ifdef BROADCAST +#ifdef BROADCASTX for (i = 0; i < input_size/nr_of_dpus; i++) { if(B[i] != bufferC[i]){ status = false; -- cgit v1.2.3