28 #ifndef __FREEWRL_OPENCL_H__
29 #define __FREEWRL_OPENCL_H__
37 #if (defined(_MSC_VER)
39 #include <CL/opencl.h>
42 #include <CL/opencl.h>
46 #define TEST_ERR(aa,bb) if (bb!=CL_SUCCESS) printCLError(aa,bb)
48 typedef struct pOpenCL_Utils{
49 cl_context CL_context;
50 cl_command_queue CL_queue;
51 cl_device_id CL_device_id;
52 size_t CL_default_workgroup_size;
53 cl_program coordinateInterpolatorProgram;
54 cl_kernel coordinateInterpolatorKernel;
55 size_t coordinateInterpolator_workgroup_size;
61 void printCLError(
const char *where, cl_int err);
62 void fwl_OpenCL_startup(
struct tOpenCL_Utils *t);