diff options
-rw-r--r-- | UNI/host/app.c | 6 | ||||
-rw-r--r-- | VA/host/app.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/UNI/host/app.c b/UNI/host/app.c index 6fb67ba..e624fa2 100644 --- a/UNI/host/app.c +++ b/UNI/host/app.c @@ -76,6 +76,9 @@ int main(int argc, char **argv) { printf("WITH_ALLOC_OVERHEAD=%d WITH_LOAD_OVERHEAD=%d WITH_FREE_OVERHEAD=%d\n", WITH_ALLOC_OVERHEAD, WITH_LOAD_OVERHEAD, WITH_FREE_OVERHEAD); + // Timer declaration + Timer timer; + // Allocate DPUs and load binary #if !WITH_ALLOC_OVERHEAD DPU_ASSERT(dpu_alloc(NR_DPUS, NULL, &dpu_set)); @@ -110,9 +113,6 @@ int main(int argc, char **argv) { // Create an input file with arbitrary data read_input(A, input_size, input_size_dpu_round * NR_DPUS); - // Timer declaration - Timer timer; - // Loop over main kernel for(int rep = 0; rep < p.n_warmup + p.n_reps; rep++) { diff --git a/VA/host/app.c b/VA/host/app.c index 98cd782..9c98588 100644 --- a/VA/host/app.c +++ b/VA/host/app.c @@ -66,6 +66,9 @@ int main(int argc, char **argv) { printf("WITH_ALLOC_OVERHEAD=%d WITH_LOAD_OVERHEAD=%d WITH_FREE_OVERHEAD=%d\n", WITH_ALLOC_OVERHEAD, WITH_LOAD_OVERHEAD, WITH_FREE_OVERHEAD); + // Timer declaration + Timer timer; + // Allocate DPUs and load binary #if !WITH_ALLOC_OVERHEAD DPU_ASSERT(dpu_alloc(NR_DPUS, NULL, &dpu_set)); @@ -101,9 +104,6 @@ int main(int argc, char **argv) { // Create an input file with arbitrary data read_input(A, B, input_size); - // Timer declaration - Timer timer; - // Loop over main kernel for(int rep = 0; rep < p.n_warmup + p.n_reps; rep++) { |