35 for (i = 0; i < n; i++)
39 b[i] = (i+1)/fn/2.0 + 4;
42 for (i = 0; i < n; i++)
44 for (j = 0; j <= i; j++)
46 for (j = i+1; j < n; j++) {
56 for (r = 0; r < n; ++r)
57 for (s = 0; s < n; ++s)
59 for (t = 0; t < n; ++t)
60 for (r = 0; r < n; ++r)
61 for (s = 0; s < n; ++s)
63 for (r = 0; r < n; ++r)
64 for (s = 0; s < n; ++s)
82 for (i = 0; i < n; i++) {
94 void kernel_ludcmp(
int n,
105 for (i = 0; i <
_PB_N; i++) {
106 for (j = 0; j <i; j++) {
108 for (k = 0; k < j; k++) {
109 w -=
A[i][
k] *
A[
k][j];
111 A[i][j] = w /
A[j][j];
113 for (j = i; j <
_PB_N; j++) {
115 for (k = 0; k < i; k++) {
116 w -=
A[i][
k] *
A[
k][j];
122 for (i = 0; i <
_PB_N; i++) {
124 for (j = 0; j < i; j++)
129 for (i = _PB_N-1; i >=0; i--) {
131 for (j = i+1; j <
_PB_N; j++)
140 int main(
int argc,
char** argv)
#define POLYBENCH_ARRAY(x)
#define POLYBENCH_DUMP_BEGIN(s)
#define POLYBENCH_FREE_ARRAY(x)
int main(int argc, char **argv)
#define POLYBENCH_2D(var, dim1, dim2, ddim1, ddim2)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
static const uint32_t k[]
#define POLYBENCH_DUMP_START
#define POLYBENCH_2D_ARRAY_DECL(var, type, dim1, dim2, ddim1, ddim2)
static void init_array(int n, DATA_TYPE POLYBENCH_2D(A, N, N, n, n), DATA_TYPE POLYBENCH_1D(b, N, n), DATA_TYPE POLYBENCH_1D(x, N, n), DATA_TYPE POLYBENCH_1D(y, N, n))
This version is stamped on May 10, 2016.
#define DATA_PRINTF_MODIFIER
#define polybench_prevent_dce(func)
#define POLYBENCH_DUMP_TARGET
#define POLYBENCH_DUMP_END(s)
#define POLYBENCH_1D(var, dim1, ddim1)
static void print_array(int n, DATA_TYPE POLYBENCH_1D(x, N, n))
#define POLYBENCH_DUMP_FINISH
x
Return the smallest n such that 2^n >= _x.
#define POLYBENCH_1D_ARRAY_DECL(var, type, dim1, ddim1)
#define polybench_stop_instruments
#define polybench_print_instruments
#define polybench_start_instruments