From a343b27d4282f2000190f1711773879cd6df2904 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 27 Nov 2023 10:54:40 +0100 Subject: VA: determine number of ranks --- VA/host/app.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'VA') diff --git a/VA/host/app.c b/VA/host/app.c index 9c98588..cc8e180 100644 --- a/VA/host/app.c +++ b/VA/host/app.c @@ -58,6 +58,7 @@ int main(int argc, char **argv) { struct dpu_set_t dpu_set, dpu; uint32_t nr_of_dpus; + uint32_t nr_of_ranks; #if ENERGY struct dpu_probe_t probe; @@ -77,6 +78,7 @@ int main(int argc, char **argv) { #if !WITH_LOAD_OVERHEAD DPU_ASSERT(dpu_load(dpu_set, DPU_BINARY, NULL)); DPU_ASSERT(dpu_get_nr_dpus(dpu_set, &nr_of_dpus)); + DPU_ASSERT(dpu_get_nr_ranks(dpu_set, &nr_of_ranks)); assert(nr_of_dpus == NR_DPUS); timer.time[1] = 0; // load #endif @@ -125,6 +127,7 @@ int main(int argc, char **argv) { stop(&timer, 1); } DPU_ASSERT(dpu_get_nr_dpus(dpu_set, &nr_of_dpus)); + DPU_ASSERT(dpu_get_nr_ranks(dpu_set, &nr_of_ranks)); assert(nr_of_dpus == NR_DPUS); #endif -- cgit v1.2.3