35 for (i = 0; i < n; i++)
41 for (j = 0; j < n; j++)
59 for (i = 0; i < n; i++) {
66 for (i = 0; i < n; i++) {
78 void kernel_mvt(
int n,
88 for (i = 0; i <
_PB_N; i++)
89 for (j = 0; j <
_PB_N; j++)
90 x1[i] = x1[i] +
A[i][j] * y_1[j];
91 for (i = 0; i <
_PB_N; i++)
92 for (j = 0; j <
_PB_N; j++)
93 x2[i] = x2[i] +
A[j][i] * y_2[j];
99 int main(
int argc,
char** argv)
#define POLYBENCH_ARRAY(x)
#define POLYBENCH_DUMP_BEGIN(s)
#define POLYBENCH_FREE_ARRAY(x)
#define POLYBENCH_2D(var, dim1, dim2, ddim1, ddim2)
static void print_array(int n, DATA_TYPE POLYBENCH_1D(x1, N, n), DATA_TYPE POLYBENCH_1D(x2, N, n))
int main(int argc, char **argv)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
#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)
#define POLYBENCH_DUMP_FINISH
#define POLYBENCH_1D_ARRAY_DECL(var, type, dim1, ddim1)
#define polybench_stop_instruments
static void init_array(int n, DATA_TYPE POLYBENCH_1D(x1, N, n), DATA_TYPE POLYBENCH_1D(x2, N, n), DATA_TYPE POLYBENCH_1D(y_1, N, n), DATA_TYPE POLYBENCH_1D(y_2, N, n), DATA_TYPE POLYBENCH_2D(A, N, N, n, n))
This version is stamped on May 10, 2016.
#define polybench_print_instruments
#define polybench_start_instruments