From d25ae864fa6a9461ac9bbb65122c4465ee36690d Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 15 Nov 2024 14:55:31 +0100 Subject: CPU-DPU microbenchmark: use default number of threads per pool --- Microbenchmarks/CPU-DPU/host/app.c | 7 ++----- Microbenchmarks/CPU-DPU/support/params.h | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Microbenchmarks/CPU-DPU/host/app.c b/Microbenchmarks/CPU-DPU/host/app.c index 8d4dcba..92727ce 100644 --- a/Microbenchmarks/CPU-DPU/host/app.c +++ b/Microbenchmarks/CPU-DPU/host/app.c @@ -78,18 +78,15 @@ int main(int argc, char **argv) { uint32_t nr_of_dpus; uint32_t nr_of_ranks; - char ntpp[24]; - // Timer declaration Timer timer; - snprintf(ntpp, 24, "nrThreadPerPool=%d", p.n_threads); // Allocate DPUs and load binary start(&timer, 4, 0); #if NR_DPUS - DPU_ASSERT(dpu_alloc(NR_DPUS, ntpp, &dpu_set)); + DPU_ASSERT(dpu_alloc(NR_DPUS, NULL, &dpu_set)); #elif NR_RANKS - DPU_ASSERT(dpu_alloc_ranks(NR_RANKS, ntpp, &dpu_set)); + DPU_ASSERT(dpu_alloc_ranks(NR_RANKS, NULL, &dpu_set)); #else #error "NR_DPUS o NR_RANKS must be set" #endif diff --git a/Microbenchmarks/CPU-DPU/support/params.h b/Microbenchmarks/CPU-DPU/support/params.h index d5d3e36..6e9a469 100644 --- a/Microbenchmarks/CPU-DPU/support/params.h +++ b/Microbenchmarks/CPU-DPU/support/params.h @@ -35,7 +35,6 @@ static void usage() { "\n" "\nBenchmark-specific options:" "\n -i input size (default=8K elements)" - "\n -n number of threads per pool (default=8)" "\n -N number of nops in dpu task (default=0)" "\n -I number of instructions in dpu binary (default=0)" "\n -a allocate input data on specified NUMA node(s)" -- cgit v1.2.3