diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-11-15 14:55:31 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-11-15 14:55:31 +0100 |
commit | d25ae864fa6a9461ac9bbb65122c4465ee36690d (patch) | |
tree | 5320d6057228b71a831b5e5c62637edd9137733d | |
parent | b7cfb8dc3ff4c6e2d58de8d10d6c2622fd12d1a7 (diff) |
CPU-DPU microbenchmark: use default number of threads per pool
-rw-r--r-- | Microbenchmarks/CPU-DPU/host/app.c | 7 | ||||
-rw-r--r-- | 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 <I> input size (default=8K elements)" - "\n -n <N> number of threads per pool (default=8)" "\n -N <N> number of nops in dpu task (default=0)" "\n -I <N> number of instructions in dpu binary (default=0)" "\n -a <spec> allocate input data on specified NUMA node(s)" |