From 8ada8f20599cd81545b470e5fb906de8d5e54052 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 28 Jul 2024 08:40:45 +0200 Subject: TRNS host: set active_dpus_before at proper location --- TRNS/host/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TRNS/host/app.c b/TRNS/host/app.c index 758f355..452b894 100644 --- a/TRNS/host/app.c +++ b/TRNS/host/app.c @@ -131,7 +131,6 @@ int main(int argc, char **argv) { DPU_ASSERT(dpu_load(dpu_set, DPU_BINARY, NULL)); stop(&timer, 2); DPU_ASSERT(dpu_get_nr_dpus(dpu_set, &nr_of_dpus)); - active_dpus_before = active_dpus; } else if (first_round){ start(&timer, 1, 0); DPU_ASSERT(dpu_alloc(active_dpus, NULL, &dpu_set)); @@ -142,6 +141,7 @@ int main(int argc, char **argv) { DPU_ASSERT(dpu_get_nr_dpus(dpu_set, &nr_of_dpus)); DPU_ASSERT(dpu_get_nr_ranks(dpu_set, &nr_of_ranks)); } + active_dpus_before = active_dpus; if(rep >= p.n_warmup) { start(&timer, 3, !first_round); -- cgit v1.2.3