From 95861dbef966e2cb612b303615681fc29c3acd3d Mon Sep 17 00:00:00 2001 From: Nadesh Ramanathan Date: Wed, 11 Nov 2020 19:47:42 +0000 Subject: polybench edits --- benchmarks/polybench-syn/stencils/jacobi-2d.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'benchmarks/polybench-syn/stencils/jacobi-2d.c') diff --git a/benchmarks/polybench-syn/stencils/jacobi-2d.c b/benchmarks/polybench-syn/stencils/jacobi-2d.c index 3a5b43c..11349f4 100644 --- a/benchmarks/polybench-syn/stencils/jacobi-2d.c +++ b/benchmarks/polybench-syn/stencils/jacobi-2d.c @@ -9,6 +9,7 @@ */ /* jacobi-2d.c: this file is part of PolyBench/C */ +#include "../include/misc.h" #define plus(i) i = i + ONE static @@ -24,8 +25,8 @@ void init_array (int n, for (i = 0; i < n; plus(i)) for (j = 0; j < n; plus(j)) { - A[i][j] = ((int) i*(j+TWO) + TWO) / n; - B[i][j] = ((int) i*(j+THREE) + THREE) / n; + A[i][j] = divider(((int) i*(j+TWO) + TWO), n); + B[i][j] = divider(((int) i*(j+THREE) + THREE), n); } } @@ -61,7 +62,6 @@ void kernel_jacobi_2d(int tsteps, int ONE = 1; int TWO = 2; -#pragma scop for (t = 0; t < tsteps; plus(t)) { for (i = 1; i < n - ONE; plus(i)) @@ -75,7 +75,6 @@ void kernel_jacobi_2d(int tsteps, A[i][j] = A[i][j] >> TWO; } } -#pragma endscop } -- cgit