From 0ba75336e60b1cf149684a5f259fa933a36e2c5c Mon Sep 17 00:00:00 2001 From: Fabio Zanichelli <67701902+ZukkerinoSugar@users.noreply.github.com> Date: Thu, 17 Nov 2022 17:33:59 +0100 Subject: [PATCH] Spostato polybench_start per cronometrare anche le inizializzazioni --- OpenMP/linear-algebra/kernels/atax/atax.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenMP/linear-algebra/kernels/atax/atax.c b/OpenMP/linear-algebra/kernels/atax/atax.c index 4293a1d..88b289f 100644 --- a/OpenMP/linear-algebra/kernels/atax/atax.c +++ b/OpenMP/linear-algebra/kernels/atax/atax.c @@ -106,13 +106,13 @@ int main(int argc, char **argv) POLYBENCH_2D_ARRAY_DECL(A, DATA_TYPE, NX, NY, nx, ny); POLYBENCH_1D_ARRAY_DECL(x, DATA_TYPE, NY, ny); POLYBENCH_1D_ARRAY_DECL(y, DATA_TYPE, NY, ny); + + /* Start timer. */ + polybench_start_instruments; /* Initialize array(s). */ init_array(nx, ny, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(x)); - /* Start timer. */ - polybench_start_instruments; - /* Run kernel. */ kernel_atax(nx, ny, POLYBENCH_ARRAY(A),