31 for (i = 0; i < n; i++)
32 for (j = 0; j < n; j++)
48 for (i = 0; i < n; i++)
49 for (j = 0; j < n; j++) {
61 void kernel_seidel_2d(
int tsteps,
69 for (i = 1; i<=
_PB_N - 2; i++)
70 for (j = 1; j <=
_PB_N - 2; j++)
71 A[i][j] = (
A[i-1][j-1] +
A[i-1][j] +
A[i-1][j+1]
72 +
A[i][j-1] +
A[i][j] +
A[i][j+1]
79 int main(
int argc,
char** argv)
#define POLYBENCH_ARRAY(x)
#define POLYBENCH_DUMP_BEGIN(s)
#define POLYBENCH_FREE_ARRAY(x)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
#define POLYBENCH_2D(var, dim1, dim2, ddim1, ddim2)
int main(int argc, char **argv)
static void print_array(int n, DATA_TYPE POLYBENCH_2D(A, N, N, n, n))
#define POLYBENCH_DUMP_START
#define POLYBENCH_2D_ARRAY_DECL(var, type, dim1, dim2, ddim1, ddim2)
#define DATA_PRINTF_MODIFIER
#define polybench_prevent_dce(func)
#define POLYBENCH_DUMP_TARGET
#define POLYBENCH_DUMP_END(s)
static void init_array(int n, DATA_TYPE POLYBENCH_2D(A, N, N, n, n))
This version is stamped on May 10, 2016.
#define POLYBENCH_DUMP_FINISH
#define polybench_stop_instruments
#define polybench_print_instruments
#define polybench_start_instruments