-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcuda.h
61 lines (41 loc) · 953 Bytes
/
cuda.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef _CUDA_H
#define _CUDA_H
#include "ppcg_options.h"
#include "ppcg.h"
#include "gpu.h"
int generate_cuda(isl_ctx *ctx, struct ppcg_options *options,
const char *input);
__isl_give isl_printer *print_kernel_arguments(__isl_take isl_printer *p,
struct gpu_prog *prog, struct ppcg_kernel *kernel, int types);
enum stencil_access_type {
stencil_access_write,
stencil_access_read
};
struct stencil_access {
enum stencil_access_type type;
isl_val_list *vlist;
isl_id *ref_id;
struct stencil_access *next;
};
struct stencil_info {
int dim;
struct gpu_local_array_info *array;
isl_val_list *shift;
struct stencil_access *access;
int *halo;
// Command-line option
int option_bt;
int option_bs[4];
int option_sl;
int option_ds;
int option_nakata;
int option_sm_vec;
char *option_opt;
// Execution parameter
int *side;
int stream;
int dimstart;
int nondiag;
int associative;
};
#endif