PandA-2024.02
examples
MachSuite
MachSuite
stencil
stencil3d
stencil.h
Go to the documentation of this file.
1
/*
2
Implementation based on algorithm described in:
3
"Stencil computation optimization and auto-tuning on state-of-the-art multicore architectures"
4
K. Datta, M. Murphy, V. Volkov, S. Williams, J. Carter, L. Oliker, D. Patterson, J. Shalf, K. Yelick
5
SC 2008
6
*/
7
8
#include <stdio.h>
9
#include <stdlib.h>
10
#include "support.h"
11
12
//Define input sizes
13
#define height_size 32
14
#define col_size 32
15
#define row_size 16
16
//Data Bounds
17
#define TYPE int32_t
18
#define MAX 1000
19
#define MIN 1
20
//Convenience Macros
21
#define SIZE (row_size * col_size * height_size)
22
#define INDX(_row_size,_col_size,_i,_j,_k) ((_i)+_row_size*((_j)+_col_size*(_k)))
23
24
void
stencil3d
(
TYPE
C
[2],
TYPE
orig[
SIZE
],
TYPE
sol[SIZE] );
25
27
// Test harness interface code.
28
29
struct
bench_args_t
{
30
TYPE
C
[2];
31
TYPE
orig
[
SIZE
];
32
TYPE
sol
[
SIZE
];
33
};
C
#define C
Definition:
generate.c:15
stencil3d
void stencil3d(TYPE C[2], TYPE orig[SIZE], TYPE sol[SIZE])
Definition:
stencil.c:10
SIZE
#define SIZE
Definition:
stencil.h:21
bench_args_t::C
TYPE C[2]
Definition:
stencil.h:30
bench_args_t::sol
TYPE sol[row_size *col_size]
Definition:
stencil.h:27
bench_args_t::orig
TYPE orig[row_size *col_size]
Definition:
stencil.h:26
bench_args_t
Definition:
aes.h:18
TYPE
#define TYPE
Definition:
stencil.h:17
Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by
1.8.13