4 #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_WRAPPERS_HPP
10 #define clBuildProgram clBuildProgram_fn
11 inline cl_int clBuildProgram(cl_program p0, cl_uint p1,
const cl_device_id* p2,
const char* p3,
void (CL_CALLBACK*p4) (cl_program,
void*),
void* p5) {
return clBuildProgram_pfn(p0, p1, p2, p3, p4, p5); }
12 #undef clCompileProgram
13 #define clCompileProgram clCompileProgram_fn
14 inline cl_int clCompileProgram(cl_program p0, cl_uint p1,
const cl_device_id* p2,
const char* p3, cl_uint p4,
const cl_program* p5,
const char** p6,
void (CL_CALLBACK*p7) (cl_program,
void*),
void* p8) {
return clCompileProgram_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
16 #define clCreateBuffer clCreateBuffer_fn
17 inline cl_mem clCreateBuffer(cl_context p0, cl_mem_flags p1,
size_t p2,
void* p3, cl_int* p4) {
return clCreateBuffer_pfn(p0, p1, p2, p3, p4); }
18 #undef clCreateCommandQueue
19 #define clCreateCommandQueue clCreateCommandQueue_fn
20 inline cl_command_queue clCreateCommandQueue(cl_context p0, cl_device_id p1, cl_command_queue_properties p2, cl_int* p3) {
return clCreateCommandQueue_pfn(p0, p1, p2, p3); }
21 #undef clCreateContext
22 #define clCreateContext clCreateContext_fn
23 inline cl_context clCreateContext(
const cl_context_properties* p0, cl_uint p1,
const cl_device_id* p2,
void (CL_CALLBACK*p3) (
const char*,
const void*,
size_t,
void*),
void* p4, cl_int* p5) {
return clCreateContext_pfn(p0, p1, p2, p3, p4, p5); }
24 #undef clCreateContextFromType
25 #define clCreateContextFromType clCreateContextFromType_fn
26 inline cl_context clCreateContextFromType(
const cl_context_properties* p0, cl_device_type p1,
void (CL_CALLBACK*p2) (
const char*,
const void*,
size_t,
void*),
void* p3, cl_int* p4) {
return clCreateContextFromType_pfn(p0, p1, p2, p3, p4); }
28 #define clCreateImage clCreateImage_fn
29 inline cl_mem clCreateImage(cl_context p0, cl_mem_flags p1,
const cl_image_format* p2,
const cl_image_desc* p3,
void* p4, cl_int* p5) {
return clCreateImage_pfn(p0, p1, p2, p3, p4, p5); }
30 #undef clCreateImage2D
31 #define clCreateImage2D clCreateImage2D_fn
32 inline cl_mem clCreateImage2D(cl_context p0, cl_mem_flags p1,
const cl_image_format* p2,
size_t p3,
size_t p4,
size_t p5,
void* p6, cl_int* p7) {
return clCreateImage2D_pfn(p0, p1, p2, p3, p4, p5, p6, p7); }
33 #undef clCreateImage3D
34 #define clCreateImage3D clCreateImage3D_fn
35 inline cl_mem clCreateImage3D(cl_context p0, cl_mem_flags p1,
const cl_image_format* p2,
size_t p3,
size_t p4,
size_t p5,
size_t p6,
size_t p7,
void* p8, cl_int* p9) {
return clCreateImage3D_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); }
37 #define clCreateKernel clCreateKernel_fn
38 inline cl_kernel clCreateKernel(cl_program p0,
const char* p1, cl_int* p2) {
return clCreateKernel_pfn(p0, p1, p2); }
39 #undef clCreateKernelsInProgram
40 #define clCreateKernelsInProgram clCreateKernelsInProgram_fn
41 inline cl_int clCreateKernelsInProgram(cl_program p0, cl_uint p1, cl_kernel* p2, cl_uint* p3) {
return clCreateKernelsInProgram_pfn(p0, p1, p2, p3); }
42 #undef clCreateProgramWithBinary
43 #define clCreateProgramWithBinary clCreateProgramWithBinary_fn
44 inline cl_program clCreateProgramWithBinary(cl_context p0, cl_uint p1,
const cl_device_id* p2,
const size_t* p3,
const unsigned char** p4, cl_int* p5, cl_int* p6) {
return clCreateProgramWithBinary_pfn(p0, p1, p2, p3, p4, p5, p6); }
45 #undef clCreateProgramWithBuiltInKernels
46 #define clCreateProgramWithBuiltInKernels clCreateProgramWithBuiltInKernels_fn
47 inline cl_program clCreateProgramWithBuiltInKernels(cl_context p0, cl_uint p1,
const cl_device_id* p2,
const char* p3, cl_int* p4) {
return clCreateProgramWithBuiltInKernels_pfn(p0, p1, p2, p3, p4); }
48 #undef clCreateProgramWithSource
49 #define clCreateProgramWithSource clCreateProgramWithSource_fn
50 inline cl_program clCreateProgramWithSource(cl_context p0, cl_uint p1,
const char** p2,
const size_t* p3, cl_int* p4) {
return clCreateProgramWithSource_pfn(p0, p1, p2, p3, p4); }
51 #undef clCreateSampler
52 #define clCreateSampler clCreateSampler_fn
53 inline cl_sampler clCreateSampler(cl_context p0, cl_bool p1, cl_addressing_mode p2, cl_filter_mode p3, cl_int* p4) {
return clCreateSampler_pfn(p0, p1, p2, p3, p4); }
54 #undef clCreateSubBuffer
55 #define clCreateSubBuffer clCreateSubBuffer_fn
56 inline cl_mem clCreateSubBuffer(cl_mem p0, cl_mem_flags p1, cl_buffer_create_type p2,
const void* p3, cl_int* p4) {
return clCreateSubBuffer_pfn(p0, p1, p2, p3, p4); }
57 #undef clCreateSubDevices
58 #define clCreateSubDevices clCreateSubDevices_fn
59 inline cl_int clCreateSubDevices(cl_device_id p0,
const cl_device_partition_property* p1, cl_uint p2, cl_device_id* p3, cl_uint* p4) {
return clCreateSubDevices_pfn(p0, p1, p2, p3, p4); }
60 #undef clCreateUserEvent
61 #define clCreateUserEvent clCreateUserEvent_fn
62 inline cl_event clCreateUserEvent(cl_context p0, cl_int* p1) {
return clCreateUserEvent_pfn(p0, p1); }
63 #undef clEnqueueBarrier
64 #define clEnqueueBarrier clEnqueueBarrier_fn
65 inline cl_int clEnqueueBarrier(cl_command_queue p0) {
return clEnqueueBarrier_pfn(p0); }
66 #undef clEnqueueBarrierWithWaitList
67 #define clEnqueueBarrierWithWaitList clEnqueueBarrierWithWaitList_fn
68 inline cl_int clEnqueueBarrierWithWaitList(cl_command_queue p0, cl_uint p1,
const cl_event* p2, cl_event* p3) {
return clEnqueueBarrierWithWaitList_pfn(p0, p1, p2, p3); }
69 #undef clEnqueueCopyBuffer
70 #define clEnqueueCopyBuffer clEnqueueCopyBuffer_fn
71 inline cl_int clEnqueueCopyBuffer(cl_command_queue p0, cl_mem p1, cl_mem p2,
size_t p3,
size_t p4,
size_t p5, cl_uint p6,
const cl_event* p7, cl_event* p8) {
return clEnqueueCopyBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
72 #undef clEnqueueCopyBufferRect
73 #define clEnqueueCopyBufferRect clEnqueueCopyBufferRect_fn
74 inline cl_int clEnqueueCopyBufferRect(cl_command_queue p0, cl_mem p1, cl_mem p2,
const size_t* p3,
const size_t* p4,
const size_t* p5,
size_t p6,
size_t p7,
size_t p8,
size_t p9, cl_uint p10,
const cl_event* p11, cl_event* p12) {
return clEnqueueCopyBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12); }
75 #undef clEnqueueCopyBufferToImage
76 #define clEnqueueCopyBufferToImage clEnqueueCopyBufferToImage_fn
77 inline cl_int clEnqueueCopyBufferToImage(cl_command_queue p0, cl_mem p1, cl_mem p2,
size_t p3,
const size_t* p4,
const size_t* p5, cl_uint p6,
const cl_event* p7, cl_event* p8) {
return clEnqueueCopyBufferToImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
78 #undef clEnqueueCopyImage
79 #define clEnqueueCopyImage clEnqueueCopyImage_fn
80 inline cl_int clEnqueueCopyImage(cl_command_queue p0, cl_mem p1, cl_mem p2,
const size_t* p3,
const size_t* p4,
const size_t* p5, cl_uint p6,
const cl_event* p7, cl_event* p8) {
return clEnqueueCopyImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
81 #undef clEnqueueCopyImageToBuffer
82 #define clEnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer_fn
83 inline cl_int clEnqueueCopyImageToBuffer(cl_command_queue p0, cl_mem p1, cl_mem p2,
const size_t* p3,
const size_t* p4,
size_t p5, cl_uint p6,
const cl_event* p7, cl_event* p8) {
return clEnqueueCopyImageToBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
84 #undef clEnqueueFillBuffer
85 #define clEnqueueFillBuffer clEnqueueFillBuffer_fn
86 inline cl_int clEnqueueFillBuffer(cl_command_queue p0, cl_mem p1,
const void* p2,
size_t p3,
size_t p4,
size_t p5, cl_uint p6,
const cl_event* p7, cl_event* p8) {
return clEnqueueFillBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
87 #undef clEnqueueFillImage
88 #define clEnqueueFillImage clEnqueueFillImage_fn
89 inline cl_int clEnqueueFillImage(cl_command_queue p0, cl_mem p1,
const void* p2,
const size_t* p3,
const size_t* p4, cl_uint p5,
const cl_event* p6, cl_event* p7) {
return clEnqueueFillImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7); }
90 #undef clEnqueueMapBuffer
91 #define clEnqueueMapBuffer clEnqueueMapBuffer_fn
92 inline void* clEnqueueMapBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2, cl_map_flags p3,
size_t p4,
size_t p5, cl_uint p6,
const cl_event* p7, cl_event* p8, cl_int* p9) {
return clEnqueueMapBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); }
93 #undef clEnqueueMapImage
94 #define clEnqueueMapImage clEnqueueMapImage_fn
95 inline void* clEnqueueMapImage(cl_command_queue p0, cl_mem p1, cl_bool p2, cl_map_flags p3,
const size_t* p4,
const size_t* p5,
size_t* p6,
size_t* p7, cl_uint p8,
const cl_event* p9, cl_event* p10, cl_int* p11) {
return clEnqueueMapImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); }
96 #undef clEnqueueMarker
97 #define clEnqueueMarker clEnqueueMarker_fn
98 inline cl_int clEnqueueMarker(cl_command_queue p0, cl_event* p1) {
return clEnqueueMarker_pfn(p0, p1); }
99 #undef clEnqueueMarkerWithWaitList
100 #define clEnqueueMarkerWithWaitList clEnqueueMarkerWithWaitList_fn
101 inline cl_int clEnqueueMarkerWithWaitList(cl_command_queue p0, cl_uint p1,
const cl_event* p2, cl_event* p3) {
return clEnqueueMarkerWithWaitList_pfn(p0, p1, p2, p3); }
102 #undef clEnqueueMigrateMemObjects
103 #define clEnqueueMigrateMemObjects clEnqueueMigrateMemObjects_fn
104 inline cl_int clEnqueueMigrateMemObjects(cl_command_queue p0, cl_uint p1,
const cl_mem* p2, cl_mem_migration_flags p3, cl_uint p4,
const cl_event* p5, cl_event* p6) {
return clEnqueueMigrateMemObjects_pfn(p0, p1, p2, p3, p4, p5, p6); }
105 #undef clEnqueueNDRangeKernel
106 #define clEnqueueNDRangeKernel clEnqueueNDRangeKernel_fn
107 inline cl_int clEnqueueNDRangeKernel(cl_command_queue p0, cl_kernel p1, cl_uint p2,
const size_t* p3,
const size_t* p4,
const size_t* p5, cl_uint p6,
const cl_event* p7, cl_event* p8) {
return clEnqueueNDRangeKernel_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
108 #undef clEnqueueNativeKernel
109 #define clEnqueueNativeKernel clEnqueueNativeKernel_fn
110 inline cl_int clEnqueueNativeKernel(cl_command_queue p0,
void (CL_CALLBACK*p1) (
void*),
void* p2,
size_t p3, cl_uint p4,
const cl_mem* p5,
const void** p6, cl_uint p7,
const cl_event* p8, cl_event* p9) {
return clEnqueueNativeKernel_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); }
111 #undef clEnqueueReadBuffer
112 #define clEnqueueReadBuffer clEnqueueReadBuffer_fn
113 inline cl_int clEnqueueReadBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2,
size_t p3,
size_t p4,
void* p5, cl_uint p6,
const cl_event* p7, cl_event* p8) {
return clEnqueueReadBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
114 #undef clEnqueueReadBufferRect
115 #define clEnqueueReadBufferRect clEnqueueReadBufferRect_fn
116 inline cl_int clEnqueueReadBufferRect(cl_command_queue p0, cl_mem p1, cl_bool p2,
const size_t* p3,
const size_t* p4,
const size_t* p5,
size_t p6,
size_t p7,
size_t p8,
size_t p9,
void* p10, cl_uint p11,
const cl_event* p12, cl_event* p13) {
return clEnqueueReadBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); }
117 #undef clEnqueueReadImage
118 #define clEnqueueReadImage clEnqueueReadImage_fn
119 inline cl_int clEnqueueReadImage(cl_command_queue p0, cl_mem p1, cl_bool p2,
const size_t* p3,
const size_t* p4,
size_t p5,
size_t p6,
void* p7, cl_uint p8,
const cl_event* p9, cl_event* p10) {
return clEnqueueReadImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); }
121 #define clEnqueueTask clEnqueueTask_fn
122 inline cl_int clEnqueueTask(cl_command_queue p0, cl_kernel p1, cl_uint p2,
const cl_event* p3, cl_event* p4) {
return clEnqueueTask_pfn(p0, p1, p2, p3, p4); }
123 #undef clEnqueueUnmapMemObject
124 #define clEnqueueUnmapMemObject clEnqueueUnmapMemObject_fn
125 inline cl_int clEnqueueUnmapMemObject(cl_command_queue p0, cl_mem p1,
void* p2, cl_uint p3,
const cl_event* p4, cl_event* p5) {
return clEnqueueUnmapMemObject_pfn(p0, p1, p2, p3, p4, p5); }
126 #undef clEnqueueWaitForEvents
127 #define clEnqueueWaitForEvents clEnqueueWaitForEvents_fn
128 inline cl_int clEnqueueWaitForEvents(cl_command_queue p0, cl_uint p1,
const cl_event* p2) {
return clEnqueueWaitForEvents_pfn(p0, p1, p2); }
129 #undef clEnqueueWriteBuffer
130 #define clEnqueueWriteBuffer clEnqueueWriteBuffer_fn
131 inline cl_int clEnqueueWriteBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2,
size_t p3,
size_t p4,
const void* p5, cl_uint p6,
const cl_event* p7, cl_event* p8) {
return clEnqueueWriteBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
132 #undef clEnqueueWriteBufferRect
133 #define clEnqueueWriteBufferRect clEnqueueWriteBufferRect_fn
134 inline cl_int clEnqueueWriteBufferRect(cl_command_queue p0, cl_mem p1, cl_bool p2,
const size_t* p3,
const size_t* p4,
const size_t* p5,
size_t p6,
size_t p7,
size_t p8,
size_t p9,
const void* p10, cl_uint p11,
const cl_event* p12, cl_event* p13) {
return clEnqueueWriteBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); }
135 #undef clEnqueueWriteImage
136 #define clEnqueueWriteImage clEnqueueWriteImage_fn
137 inline cl_int clEnqueueWriteImage(cl_command_queue p0, cl_mem p1, cl_bool p2,
const size_t* p3,
const size_t* p4,
size_t p5,
size_t p6,
const void* p7, cl_uint p8,
const cl_event* p9, cl_event* p10) {
return clEnqueueWriteImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); }
139 #define clFinish clFinish_fn
140 inline cl_int clFinish(cl_command_queue p0) {
return clFinish_pfn(p0); }
142 #define clFlush clFlush_fn
143 inline cl_int clFlush(cl_command_queue p0) {
return clFlush_pfn(p0); }
144 #undef clGetCommandQueueInfo
145 #define clGetCommandQueueInfo clGetCommandQueueInfo_fn
146 inline cl_int clGetCommandQueueInfo(cl_command_queue p0, cl_command_queue_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetCommandQueueInfo_pfn(p0, p1, p2, p3, p4); }
147 #undef clGetContextInfo
148 #define clGetContextInfo clGetContextInfo_fn
149 inline cl_int clGetContextInfo(cl_context p0, cl_context_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetContextInfo_pfn(p0, p1, p2, p3, p4); }
150 #undef clGetDeviceIDs
151 #define clGetDeviceIDs clGetDeviceIDs_fn
152 inline cl_int clGetDeviceIDs(cl_platform_id p0, cl_device_type p1, cl_uint p2, cl_device_id* p3, cl_uint* p4) {
return clGetDeviceIDs_pfn(p0, p1, p2, p3, p4); }
153 #undef clGetDeviceInfo
154 #define clGetDeviceInfo clGetDeviceInfo_fn
155 inline cl_int clGetDeviceInfo(cl_device_id p0, cl_device_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetDeviceInfo_pfn(p0, p1, p2, p3, p4); }
156 #undef clGetEventInfo
157 #define clGetEventInfo clGetEventInfo_fn
158 inline cl_int clGetEventInfo(cl_event p0, cl_event_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetEventInfo_pfn(p0, p1, p2, p3, p4); }
159 #undef clGetEventProfilingInfo
160 #define clGetEventProfilingInfo clGetEventProfilingInfo_fn
161 inline cl_int clGetEventProfilingInfo(cl_event p0, cl_profiling_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetEventProfilingInfo_pfn(p0, p1, p2, p3, p4); }
162 #undef clGetExtensionFunctionAddress
163 #define clGetExtensionFunctionAddress clGetExtensionFunctionAddress_fn
164 inline void* clGetExtensionFunctionAddress(
const char* p0) {
return clGetExtensionFunctionAddress_pfn(p0); }
165 #undef clGetExtensionFunctionAddressForPlatform
166 #define clGetExtensionFunctionAddressForPlatform clGetExtensionFunctionAddressForPlatform_fn
167 inline void* clGetExtensionFunctionAddressForPlatform(cl_platform_id p0,
const char* p1) {
return clGetExtensionFunctionAddressForPlatform_pfn(p0, p1); }
168 #undef clGetImageInfo
169 #define clGetImageInfo clGetImageInfo_fn
170 inline cl_int clGetImageInfo(cl_mem p0, cl_image_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetImageInfo_pfn(p0, p1, p2, p3, p4); }
171 #undef clGetKernelArgInfo
172 #define clGetKernelArgInfo clGetKernelArgInfo_fn
173 inline cl_int clGetKernelArgInfo(cl_kernel p0, cl_uint p1, cl_kernel_arg_info p2,
size_t p3,
void* p4,
size_t* p5) {
return clGetKernelArgInfo_pfn(p0, p1, p2, p3, p4, p5); }
174 #undef clGetKernelInfo
175 #define clGetKernelInfo clGetKernelInfo_fn
176 inline cl_int clGetKernelInfo(cl_kernel p0, cl_kernel_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetKernelInfo_pfn(p0, p1, p2, p3, p4); }
177 #undef clGetKernelWorkGroupInfo
178 #define clGetKernelWorkGroupInfo clGetKernelWorkGroupInfo_fn
179 inline cl_int clGetKernelWorkGroupInfo(cl_kernel p0, cl_device_id p1, cl_kernel_work_group_info p2,
size_t p3,
void* p4,
size_t* p5) {
return clGetKernelWorkGroupInfo_pfn(p0, p1, p2, p3, p4, p5); }
180 #undef clGetMemObjectInfo
181 #define clGetMemObjectInfo clGetMemObjectInfo_fn
182 inline cl_int clGetMemObjectInfo(cl_mem p0, cl_mem_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetMemObjectInfo_pfn(p0, p1, p2, p3, p4); }
183 #undef clGetPlatformIDs
184 #define clGetPlatformIDs clGetPlatformIDs_fn
185 inline cl_int clGetPlatformIDs(cl_uint p0, cl_platform_id* p1, cl_uint* p2) {
return clGetPlatformIDs_pfn(p0, p1, p2); }
186 #undef clGetPlatformInfo
187 #define clGetPlatformInfo clGetPlatformInfo_fn
188 inline cl_int clGetPlatformInfo(cl_platform_id p0, cl_platform_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetPlatformInfo_pfn(p0, p1, p2, p3, p4); }
189 #undef clGetProgramBuildInfo
190 #define clGetProgramBuildInfo clGetProgramBuildInfo_fn
191 inline cl_int clGetProgramBuildInfo(cl_program p0, cl_device_id p1, cl_program_build_info p2,
size_t p3,
void* p4,
size_t* p5) {
return clGetProgramBuildInfo_pfn(p0, p1, p2, p3, p4, p5); }
192 #undef clGetProgramInfo
193 #define clGetProgramInfo clGetProgramInfo_fn
194 inline cl_int clGetProgramInfo(cl_program p0, cl_program_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetProgramInfo_pfn(p0, p1, p2, p3, p4); }
195 #undef clGetSamplerInfo
196 #define clGetSamplerInfo clGetSamplerInfo_fn
197 inline cl_int clGetSamplerInfo(cl_sampler p0, cl_sampler_info p1,
size_t p2,
void* p3,
size_t* p4) {
return clGetSamplerInfo_pfn(p0, p1, p2, p3, p4); }
198 #undef clGetSupportedImageFormats
199 #define clGetSupportedImageFormats clGetSupportedImageFormats_fn
200 inline cl_int clGetSupportedImageFormats(cl_context p0, cl_mem_flags p1, cl_mem_object_type p2, cl_uint p3, cl_image_format* p4, cl_uint* p5) {
return clGetSupportedImageFormats_pfn(p0, p1, p2, p3, p4, p5); }
202 #define clLinkProgram clLinkProgram_fn
203 inline cl_program clLinkProgram(cl_context p0, cl_uint p1,
const cl_device_id* p2,
const char* p3, cl_uint p4,
const cl_program* p5,
void (CL_CALLBACK*p6) (cl_program,
void*),
void* p7, cl_int* p8) {
return clLinkProgram_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
204 #undef clReleaseCommandQueue
205 #define clReleaseCommandQueue clReleaseCommandQueue_fn
206 inline cl_int clReleaseCommandQueue(cl_command_queue p0) {
return clReleaseCommandQueue_pfn(p0); }
207 #undef clReleaseContext
208 #define clReleaseContext clReleaseContext_fn
209 inline cl_int clReleaseContext(cl_context p0) {
return clReleaseContext_pfn(p0); }
210 #undef clReleaseDevice
211 #define clReleaseDevice clReleaseDevice_fn
212 inline cl_int clReleaseDevice(cl_device_id p0) {
return clReleaseDevice_pfn(p0); }
213 #undef clReleaseEvent
214 #define clReleaseEvent clReleaseEvent_fn
215 inline cl_int clReleaseEvent(cl_event p0) {
return clReleaseEvent_pfn(p0); }
216 #undef clReleaseKernel
217 #define clReleaseKernel clReleaseKernel_fn
218 inline cl_int clReleaseKernel(cl_kernel p0) {
return clReleaseKernel_pfn(p0); }
219 #undef clReleaseMemObject
220 #define clReleaseMemObject clReleaseMemObject_fn
221 inline cl_int clReleaseMemObject(cl_mem p0) {
return clReleaseMemObject_pfn(p0); }
222 #undef clReleaseProgram
223 #define clReleaseProgram clReleaseProgram_fn
224 inline cl_int clReleaseProgram(cl_program p0) {
return clReleaseProgram_pfn(p0); }
225 #undef clReleaseSampler
226 #define clReleaseSampler clReleaseSampler_fn
227 inline cl_int clReleaseSampler(cl_sampler p0) {
return clReleaseSampler_pfn(p0); }
228 #undef clRetainCommandQueue
229 #define clRetainCommandQueue clRetainCommandQueue_fn
230 inline cl_int clRetainCommandQueue(cl_command_queue p0) {
return clRetainCommandQueue_pfn(p0); }
231 #undef clRetainContext
232 #define clRetainContext clRetainContext_fn
233 inline cl_int clRetainContext(cl_context p0) {
return clRetainContext_pfn(p0); }
234 #undef clRetainDevice
235 #define clRetainDevice clRetainDevice_fn
236 inline cl_int clRetainDevice(cl_device_id p0) {
return clRetainDevice_pfn(p0); }
238 #define clRetainEvent clRetainEvent_fn
239 inline cl_int clRetainEvent(cl_event p0) {
return clRetainEvent_pfn(p0); }
240 #undef clRetainKernel
241 #define clRetainKernel clRetainKernel_fn
242 inline cl_int clRetainKernel(cl_kernel p0) {
return clRetainKernel_pfn(p0); }
243 #undef clRetainMemObject
244 #define clRetainMemObject clRetainMemObject_fn
245 inline cl_int clRetainMemObject(cl_mem p0) {
return clRetainMemObject_pfn(p0); }
246 #undef clRetainProgram
247 #define clRetainProgram clRetainProgram_fn
248 inline cl_int clRetainProgram(cl_program p0) {
return clRetainProgram_pfn(p0); }
249 #undef clRetainSampler
250 #define clRetainSampler clRetainSampler_fn
251 inline cl_int clRetainSampler(cl_sampler p0) {
return clRetainSampler_pfn(p0); }
252 #undef clSetEventCallback
253 #define clSetEventCallback clSetEventCallback_fn
254 inline cl_int clSetEventCallback(cl_event p0, cl_int p1,
void (CL_CALLBACK*p2) (cl_event, cl_int,
void*),
void* p3) {
return clSetEventCallback_pfn(p0, p1, p2, p3); }
255 #undef clSetKernelArg
256 #define clSetKernelArg clSetKernelArg_fn
257 inline cl_int clSetKernelArg(cl_kernel p0, cl_uint p1,
size_t p2,
const void* p3) {
return clSetKernelArg_pfn(p0, p1, p2, p3); }
258 #undef clSetMemObjectDestructorCallback
259 #define clSetMemObjectDestructorCallback clSetMemObjectDestructorCallback_fn
260 inline cl_int clSetMemObjectDestructorCallback(cl_mem p0,
void (CL_CALLBACK*p1) (cl_mem,
void*),
void* p2) {
return clSetMemObjectDestructorCallback_pfn(p0, p1, p2); }
261 #undef clSetUserEventStatus
262 #define clSetUserEventStatus clSetUserEventStatus_fn
263 inline cl_int clSetUserEventStatus(cl_event p0, cl_int p1) {
return clSetUserEventStatus_pfn(p0, p1); }
264 #undef clUnloadCompiler
265 #define clUnloadCompiler clUnloadCompiler_fn
266 inline cl_int clUnloadCompiler() {
return clUnloadCompiler_pfn(); }
267 #undef clUnloadPlatformCompiler
268 #define clUnloadPlatformCompiler clUnloadPlatformCompiler_fn
269 inline cl_int clUnloadPlatformCompiler(cl_platform_id p0) {
return clUnloadPlatformCompiler_pfn(p0); }
270 #undef clWaitForEvents
271 #define clWaitForEvents clWaitForEvents_fn
272 inline cl_int clWaitForEvents(cl_uint p0,
const cl_event* p1) {
return clWaitForEvents_pfn(p0, p1); }