blob: 9ecad93bee61b16acd609a0fc24166d622132aa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
struct clu_context {
cl_device_id device_id;
cl_context cl_ctx;
cl_command_queue command_queue;
cl_kernel kernel;
};
const char * cluErrorString(cl_int error);
unsigned cluInitGpuDevice(cl_device_id * device_id);
unsigned cluCreateContext(cl_context * context, cl_device_id device_id);
unsigned cluCreateCommandQueue(cl_command_queue * command_queue,
cl_context context, cl_device_id device_id);
unsigned cluCreateKernel(cl_context context, cl_device_id device_id,
cl_kernel * kernel, const char * kernel_name);
unsigned cluKernelSetArg(cl_kernel kernel, cl_uint index, size_t size,
const void * value);
|