diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-28 08:40:45 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-28 08:40:45 +0200 |
commit | 8ada8f20599cd81545b470e5fb906de8d5e54052 (patch) | |
tree | 897bf332c783f8b865dc56bb3f0369c6110574dd /TRNS/host/app.c | |
parent | 003fdc62ebc43b5811622442ce61492b21ac5e2d (diff) |
TRNS host: set active_dpus_before at proper location
Diffstat (limited to 'TRNS/host/app.c')
-rw-r--r-- | TRNS/host/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |