Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (29 sloc) 1.103 kB
d8bcdf7 @matze Initial commit
authored
1 #ifndef OCL_H
2 #define OCL_H
3
4 #include <CL/cl.h>
5 #include <glib.h>
6
7 #define OCL_ALL_DEVICES 0xFFFF
8
9 typedef struct _OCL {
10 cl_context context;
11 cl_uint num_all_devices;
12 cl_device_id *all_devices;
13 cl_uint num_devices;
14 cl_device_id *devices;
15 cl_command_queue *cmd_queues;
16 } OCL;
17
18 OCL *ocl_new (guint device_from,
19 guint device_to,
20 int *ocl_errcode);
21 void ocl_free (OCL *ocl);
22 cl_program ocl_program_new_from_source
23 (OCL *ocl,
24 const gchar *source,
25 const gchar *options,
26 int *ocl_errcode);
27 cl_program ocl_program_new_from_file
28 (OCL *ocl,
29 const gchar *filename,
30 const gchar *options,
31 int *ocl_errcode);
32 const gchar *ocl_error (int ocl_errcode);
33
34 #endif
Something went wrong with that request. Please try again.