PandA-2024.02
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
+
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
+
Enumerations
a
b
c
d
f
g
i
m
n
o
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
+
Related Functions
a
b
c
e
f
h
i
l
o
p
r
s
t
u
v
w
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
q
r
s
t
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
a
b
c
d
e
f
h
i
k
l
m
o
p
r
s
t
u
v
+
Enumerator
a
b
c
d
e
f
g
i
k
l
n
o
p
r
s
t
u
v
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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