diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-11-27 10:54:40 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-11-27 10:54:40 +0100 |
commit | a343b27d4282f2000190f1711773879cd6df2904 (patch) | |
tree | 4bb36f0c0ac18f0c8369b25560ba09d07346ad19 /VA/host | |
parent | 592832b5c7dd0aa676082a17a45036968e9352ee (diff) |
VA: determine number of ranks
Diffstat (limited to 'VA/host')
-rw-r--r-- | VA/host/app.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |