1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| #ifdef __APPLE__
| #include <OpenCL/opencl.h>
| #else
| #include <CL/cl.h>
| #endif
|
| typedef struct {
| int initialized;
| cl_int error;
| cl_platform_id platform;
| cl_device_id device;
| cl_context context;
| cl_command_queue queue;
| }cl_info;
|
| extern cl_info cl;
|
| void cl_setup();
| void check_error(cl_info info);
| cl_kernel get_kernel(char *filename, char *kernelname, char *options);
|
|