mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-26 18:14:23 +00:00
Spostato polybench_start per cronometrare anche le inizializzazioni
This commit is contained in:
parent
a86d078546
commit
0ba75336e6
1 changed files with 3 additions and 3 deletions
|
@ -107,12 +107,12 @@ int main(int argc, char **argv)
|
||||||
POLYBENCH_1D_ARRAY_DECL(x, DATA_TYPE, NY, ny);
|
POLYBENCH_1D_ARRAY_DECL(x, DATA_TYPE, NY, ny);
|
||||||
POLYBENCH_1D_ARRAY_DECL(y, DATA_TYPE, NY, ny);
|
POLYBENCH_1D_ARRAY_DECL(y, DATA_TYPE, NY, ny);
|
||||||
|
|
||||||
/* Initialize array(s). */
|
|
||||||
init_array(nx, ny, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(x));
|
|
||||||
|
|
||||||
/* Start timer. */
|
/* Start timer. */
|
||||||
polybench_start_instruments;
|
polybench_start_instruments;
|
||||||
|
|
||||||
|
/* Initialize array(s). */
|
||||||
|
init_array(nx, ny, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(x));
|
||||||
|
|
||||||
/* Run kernel. */
|
/* Run kernel. */
|
||||||
kernel_atax(nx, ny,
|
kernel_atax(nx, ny,
|
||||||
POLYBENCH_ARRAY(A),
|
POLYBENCH_ARRAY(A),
|
||||||
|
|
Loading…
Reference in a new issue