-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkernels.h
47 lines (40 loc) · 964 Bytes
/
kernels.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef HETKER_KERNELS_H
#define HETKER_KERNELS_H
#endif //HETKER_KERNELS_H
const char IMAGE_KERNEL[] = {
#include "kernels/image.cl"
0};
const char MATRIX_KERNEL[] = {
#include "kernels/matrix.cl"
0};
const char TEXT_KERNEL[] = {
#include "kernels/text.cl"
0};
const char FILTER_KERNEL[] = {
#include "kernels/list/filter.cl"
0};
const char MAP_KERNEL[] = {
#include "kernels/list/map.cl"
0};
const char PREFIX_KERNEL[] = {
#include "kernels/list/prefix.cl"
0};
const char REDUCE_KERNEL[] = {
#include "kernels/list/reduce.cl"
0};
const char HEADER_KERNEL[] = {
#include "kernels/header.cl"
0};
// TODO Count & check
#define CL_MAX_KERNEL_LENGTH 10000
#define HETKER_KERNELS_COUNT = 7
const char* KERNELS[] = {
IMAGE_KERNEL,
MATRIX_KERNEL,
TEXT_KERNEL,
FILTER_KERNEL,
MAP_KERNEL,
PREFIX_KERNEL,
REDUCE_KERNEL
};
size_t KERNEL_LENGTHS[];