34 for (i = 0; i < n; i++)
36 for (i = 0; i < m; i++)
37 for (j = 0; j < n; j++)
53 for (i = 0; i < n; i++) {
65 void kernel_atax(
int m,
int n,
74 for (i = 0; i <
_PB_N; i++)
76 for (i = 0; i <
_PB_M; i++)
79 for (j = 0; j <
_PB_N; j++)
80 tmp[i] = tmp[i] +
A[i][j] *
x[j];
81 for (j = 0; j <
_PB_N; j++)
82 y[j] = y[j] +
A[i][j] * tmp[i];
89 int main(
int argc,
char** argv)
static void print_array(int n, DATA_TYPE POLYBENCH_1D(y, N, n))
#define POLYBENCH_ARRAY(x)
#define POLYBENCH_DUMP_BEGIN(s)
#define POLYBENCH_FREE_ARRAY(x)
#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)
#define POLYBENCH_DUMP_TARGET
#define POLYBENCH_DUMP_END(s)
#define POLYBENCH_1D(var, dim1, ddim1)
int main(int argc, char **argv)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
#define POLYBENCH_DUMP_FINISH
x
Return the smallest n such that 2^n >= _x.
#define POLYBENCH_1D_ARRAY_DECL(var, type, dim1, ddim1)
static void init_array(int m, int n, DATA_TYPE POLYBENCH_2D(A, M, N, m, n), DATA_TYPE POLYBENCH_1D(x, N, n))
This version is stamped on May 10, 2016.
#define polybench_stop_instruments
#define polybench_print_instruments
#define polybench_start_instruments