32 for (i = 0; i < n; i++)
33 for (j = 0; j < n; j++)
34 for (k = 0; k < n; k++)
35 A[i][j][k] =
B[i][j][k] = (
DATA_TYPE) (i + j + (n-
k))* 10 / (n);
50 for (i = 0; i < n; i++)
51 for (j = 0; j < n; j++)
52 for (k = 0; k < n; k++) {
64 void kernel_heat_3d(
int tsteps,
72 for (t = 1; t <=
TSTEPS; t++) {
73 for (i = 1; i <
_PB_N-1; i++) {
74 for (j = 1; j < _PB_N-1; j++) {
75 for (k = 1; k < _PB_N-1; k++) {
83 for (i = 1; i < _PB_N-1; i++) {
84 for (j = 1; j < _PB_N-1; j++) {
85 for (k = 1; k < _PB_N-1; k++) {
99 int main(
int argc,
char** argv)
#define POLYBENCH_ARRAY(x)
#define POLYBENCH_3D(var, dim1, dim2, dim3, ddim1, ddim2, ddim3)
#define POLYBENCH_DUMP_BEGIN(s)
#define POLYBENCH_FREE_ARRAY(x)
#define POLYBENCH_3D_ARRAY_DECL(var, type, dim1, dim2, dim3, ddim1, ddim2, ddim3)
static const uint32_t k[]
int main(int argc, char **argv)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
#define POLYBENCH_DUMP_START
static void print_array(int n, DATA_TYPE POLYBENCH_3D(A, N, N, N, n, n, n))
#define DATA_PRINTF_MODIFIER
#define polybench_prevent_dce(func)
#define POLYBENCH_DUMP_TARGET
#define POLYBENCH_DUMP_END(s)
#define POLYBENCH_DUMP_FINISH
static void init_array(int n, DATA_TYPE POLYBENCH_3D(A, N, N, N, n, n, n), DATA_TYPE POLYBENCH_3D(B, N, N, N, n, n, n))
This version is stamped on May 10, 2016.
#define polybench_stop_instruments
#define polybench_print_instruments
#define polybench_start_instruments