PandA-2024.02
examples
MachSuite
MachSuite
stencil
stencil2d
stencil.h
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include "support.h"
4
5
//Define input sizes
6
#define col_size 64
7
#define row_size 128
8
#define f_size 9
9
10
//Data Bounds
11
#define TYPE int32_t
12
#define MAX 1000
13
#define MIN 1
14
15
//Set number of iterations to execute
16
#define MAX_ITERATION 1
17
18
void
stencil
(
TYPE
orig[
row_size
*
col_size
],
19
TYPE
sol[
row_size
* col_size],
20
TYPE
filter
[
f_size
] );
21
23
// Test harness interface code.
24
25
struct
bench_args_t
{
26
TYPE
orig
[
row_size
*
col_size
];
27
TYPE
sol
[
row_size
*
col_size
];
28
TYPE
filter
[
f_size
];
29
};
filter
void filter(int y, int input[][DIMENSION_X], int *output)
a 3x3 box filter. Filter an entire row of the matrix in one call.
Definition:
boxfilter.c:26
bench_args_t::filter
TYPE filter[f_size]
Definition:
stencil.h:28
row_size
#define row_size
Definition:
stencil.h:7
TYPE
#define TYPE
Definition:
stencil.h:11
col_size
#define col_size
Definition:
stencil.h:6
stencil
void stencil(TYPE orig[row_size *col_size], TYPE sol[row_size *col_size], TYPE filter[f_size])
Definition:
stencil.c:3
bench_args_t::sol
TYPE sol[row_size *col_size]
Definition:
stencil.h:27
f_size
#define f_size
Definition:
stencil.h:8
bench_args_t::orig
TYPE orig[row_size *col_size]
Definition:
stencil.h:26
bench_args_t
Definition:
aes.h:18
Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by
1.8.13