32 for (i = 0; i < n; i++)
33 for (j = 0; j < n; j++)
52 for (i = 0; i < n; i++)
53 for (j = 0; j < n; j++) {
65 void kernel_jacobi_2d(
int tsteps,
75 for (i = 1; i <
_PB_N - 1; i++)
76 for (j = 1; j < _PB_N - 1; j++)
77 B[i][j] =
SCALAR_VAL(0.2) * (
A[i][j] +
A[i][j-1] +
A[i][1+j] +
A[1+i][j] +
A[i-1][j]);
78 for (i = 1; i < _PB_N - 1; i++)
79 for (j = 1; j < _PB_N - 1; j++)
80 A[i][j] =
SCALAR_VAL(0.2) * (
B[i][j] +
B[i][j-1] +
B[i][1+j] +
B[1+i][j] +
B[i-1][j]);
87 int main(
int argc,
char** argv)
#define POLYBENCH_ARRAY(x)
#define POLYBENCH_DUMP_BEGIN(s)
int main(int argc, char **argv)
#define POLYBENCH_FREE_ARRAY(x)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
#define POLYBENCH_2D(var, dim1, dim2, ddim1, ddim2)
#define POLYBENCH_DUMP_START
#define POLYBENCH_2D_ARRAY_DECL(var, type, dim1, dim2, ddim1, ddim2)
#define DATA_PRINTF_MODIFIER
#define polybench_prevent_dce(func)
static void init_array(int n, DATA_TYPE POLYBENCH_2D(A, N, N, n, n), DATA_TYPE POLYBENCH_2D(B, N, N, n, n))
This version is stamped on May 10, 2016.
#define POLYBENCH_DUMP_TARGET
#define POLYBENCH_DUMP_END(s)
#define POLYBENCH_DUMP_FINISH
static void print_array(int n, DATA_TYPE POLYBENCH_2D(A, N, N, n, n))
#define polybench_stop_instruments
#define polybench_print_instruments
#define polybench_start_instruments