mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-22 08:04:25 +00:00
Allow including or excluding init_array
via the POLYBENCH_INCLUDE_INIT
macro
This commit is contained in:
parent
bf873d846c
commit
518040a414
1 changed files with 8 additions and 2 deletions
|
@ -96,9 +96,15 @@ __host__ int main(int argc, char **argv)
|
|||
POLYBENCH_1D_ARRAY_DECL(x, DATA_TYPE, NY, ny);
|
||||
POLYBENCH_1D_ARRAY_DECL(y, DATA_TYPE, NY, ny);
|
||||
|
||||
init_array(nx, ny, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(x));
|
||||
|
||||
#ifdef POLYBENCH_INCLUDE_INIT
|
||||
polybench_start_instruments;
|
||||
#endif
|
||||
|
||||
init_array(nx, ny, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(x));
|
||||
|
||||
#ifndef POLYBENCH_INCLUDE_INIT
|
||||
polybench_start_instruments;
|
||||
#endif
|
||||
|
||||
kernel_atax(nx, ny, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(x), POLYBENCH_ARRAY(y));
|
||||
|
||||
|
|
Loading…
Reference in a new issue