1 # Copyright (c) 2012, Brice Videau <brice.videau@imag.fr>
2 # Copyright (c) 2012, Vincent Danjean <Vincent.Danjean@ens-lyon.org>
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are met:
8 # 1. Redistributions of source code must retain the above copyright notice, this
9 # list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright notice,
11 # this list of conditions and the following disclaimer in the documentation
12 # and/or other materials provided with the distribution.
14 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 # Do not edit this file. It is automatically generated.
27 # In Intel (OpenCL 1.1):
28 # * clSetCommandQueueProperty(13): nil (deprecated in 1.1)
29 # * clGetGLContextInfoKHR(74): function present with its symbol
31 # * 92: correspond to symbol clGetKernelArgInfo (first abandonned version?)
33 # In nvidia (OpenCL 1.1):
34 # * clGetGLContextInfoKHR(74): function present but no symbol
37 # * only two OpenCL symbols: clGetPlatformInfo(1) and clGetExtensionFunctionAddress(65)
38 # In AMD (OpenCL 1.2):
39 # * clGetPlatformIDs(0): nil (symbol present)
40 # * clGetGLContextInfoKHR(74): function present but no symbol
48 CL_API_ENTRY cl_int CL_API_CALL
49 clGetPlatformIDs(cl_uint /* num_entries */,
50 cl_platform_id * /* platforms */,
51 cl_uint * /* num_platforms */) CL_API_SUFFIX__VERSION_1_0;
53 CL_API_ENTRY cl_int CL_API_CALL
54 clGetPlatformInfo(cl_platform_id /* platform */,
55 cl_platform_info /* param_name */,
56 size_t /* param_value_size */,
57 void * /* param_value */,
58 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
60 CL_API_ENTRY cl_int CL_API_CALL
61 clGetDeviceIDs(cl_platform_id /* platform */,
62 cl_device_type /* device_type */,
63 cl_uint /* num_entries */,
64 cl_device_id * /* devices */,
65 cl_uint * /* num_devices */) CL_API_SUFFIX__VERSION_1_0;
67 CL_API_ENTRY cl_int CL_API_CALL
68 clGetDeviceInfo(cl_device_id /* device */,
69 cl_device_info /* param_name */,
70 size_t /* param_value_size */,
71 void * /* param_value */,
72 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
74 CL_API_ENTRY cl_context CL_API_CALL
75 clCreateContext(const cl_context_properties * /* properties */,
76 cl_uint /* num_devices */,
77 const cl_device_id * /* devices */,
78 void (CL_CALLBACK * /* pfn_notify */)(const char *, const void *, size_t, void *),
79 void * /* user_data */,
80 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
82 CL_API_ENTRY cl_context CL_API_CALL
83 clCreateContextFromType(const cl_context_properties * /* properties */,
84 cl_device_type /* device_type */,
85 void (CL_CALLBACK * /* pfn_notify*/ )(const char *, const void *, size_t, void *),
86 void * /* user_data */,
87 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
89 CL_API_ENTRY cl_int CL_API_CALL
90 clRetainContext(cl_context /* context */) CL_API_SUFFIX__VERSION_1_0;
92 CL_API_ENTRY cl_int CL_API_CALL
93 clReleaseContext(cl_context /* context */) CL_API_SUFFIX__VERSION_1_0;
95 CL_API_ENTRY cl_int CL_API_CALL
96 clGetContextInfo(cl_context /* context */,
97 cl_context_info /* param_name */,
98 size_t /* param_value_size */,
99 void * /* param_value */,
100 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
102 CL_API_ENTRY cl_command_queue CL_API_CALL
103 clCreateCommandQueue(cl_context /* context */,
104 cl_device_id /* device */,
105 cl_command_queue_properties /* properties */,
106 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
108 CL_API_ENTRY cl_int CL_API_CALL
109 clRetainCommandQueue(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
111 CL_API_ENTRY cl_int CL_API_CALL
112 clReleaseCommandQueue(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
114 CL_API_ENTRY cl_int CL_API_CALL
115 clGetCommandQueueInfo(cl_command_queue /* command_queue */,
116 cl_command_queue_info /* param_name */,
117 size_t /* param_value_size */,
118 void * /* param_value */,
119 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
121 CL_API_ENTRY cl_int CL_API_CALL
122 clSetCommandQueueProperty(cl_command_queue /* command_queue */,
123 cl_command_queue_properties /* properties */,
124 cl_bool /* enable */,
125 cl_command_queue_properties * /* old_properties */) CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED;
127 CL_API_ENTRY cl_mem CL_API_CALL
128 clCreateBuffer(cl_context /* context */,
129 cl_mem_flags /* flags */,
131 void * /* host_ptr */,
132 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
134 CL_API_ENTRY cl_mem CL_API_CALL
135 clCreateImage2D(cl_context /* context */,
136 cl_mem_flags /* flags */,
137 const cl_image_format * /* image_format */,
138 size_t /* image_width */,
139 size_t /* image_height */,
140 size_t /* image_row_pitch */,
141 void * /* host_ptr */,
142 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
144 CL_API_ENTRY cl_mem CL_API_CALL
145 clCreateImage3D(cl_context /* context */,
146 cl_mem_flags /* flags */,
147 const cl_image_format * /* image_format */,
148 size_t /* image_width */,
149 size_t /* image_height */,
150 size_t /* image_depth */,
151 size_t /* image_row_pitch */,
152 size_t /* image_slice_pitch */,
153 void * /* host_ptr */,
154 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
156 CL_API_ENTRY cl_int CL_API_CALL
157 clRetainMemObject(cl_mem /* memobj */) CL_API_SUFFIX__VERSION_1_0;
159 CL_API_ENTRY cl_int CL_API_CALL
160 clReleaseMemObject(cl_mem /* memobj */) CL_API_SUFFIX__VERSION_1_0;
162 CL_API_ENTRY cl_int CL_API_CALL
163 clGetSupportedImageFormats(cl_context /* context */,
164 cl_mem_flags /* flags */,
165 cl_mem_object_type /* image_type */,
166 cl_uint /* num_entries */,
167 cl_image_format * /* image_formats */,
168 cl_uint * /* num_image_formats */) CL_API_SUFFIX__VERSION_1_0;
170 CL_API_ENTRY cl_int CL_API_CALL
171 clGetMemObjectInfo(cl_mem /* memobj */,
172 cl_mem_info /* param_name */,
173 size_t /* param_value_size */,
174 void * /* param_value */,
175 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
177 CL_API_ENTRY cl_int CL_API_CALL
178 clGetImageInfo(cl_mem /* image */,
179 cl_image_info /* param_name */,
180 size_t /* param_value_size */,
181 void * /* param_value */,
182 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
184 CL_API_ENTRY cl_sampler CL_API_CALL
185 clCreateSampler(cl_context /* context */,
186 cl_bool /* normalized_coords */,
187 cl_addressing_mode /* addressing_mode */,
188 cl_filter_mode /* filter_mode */,
189 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
191 CL_API_ENTRY cl_int CL_API_CALL
192 clRetainSampler(cl_sampler /* sampler */) CL_API_SUFFIX__VERSION_1_0;
194 CL_API_ENTRY cl_int CL_API_CALL
195 clReleaseSampler(cl_sampler /* sampler */) CL_API_SUFFIX__VERSION_1_0;
197 CL_API_ENTRY cl_int CL_API_CALL
198 clGetSamplerInfo(cl_sampler /* sampler */,
199 cl_sampler_info /* param_name */,
200 size_t /* param_value_size */,
201 void * /* param_value */,
202 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
204 CL_API_ENTRY cl_program CL_API_CALL
205 clCreateProgramWithSource(cl_context /* context */,
207 const char ** /* strings */,
208 const size_t * /* lengths */,
209 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
211 CL_API_ENTRY cl_program CL_API_CALL
212 clCreateProgramWithBinary(cl_context /* context */,
213 cl_uint /* num_devices */,
214 const cl_device_id * /* device_list */,
215 const size_t * /* lengths */,
216 const unsigned char ** /* binaries */,
217 cl_int * /* binary_status */,
218 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
220 CL_API_ENTRY cl_int CL_API_CALL
221 clRetainProgram(cl_program /* program */) CL_API_SUFFIX__VERSION_1_0;
223 CL_API_ENTRY cl_int CL_API_CALL
224 clReleaseProgram(cl_program /* program */) CL_API_SUFFIX__VERSION_1_0;
226 CL_API_ENTRY cl_int CL_API_CALL
227 clBuildProgram(cl_program /* program */,
228 cl_uint /* num_devices */,
229 const cl_device_id * /* device_list */,
230 const char * /* options */,
231 void (CL_CALLBACK * /* pfn_notify */)(cl_program /* program */, void * /* user_data */),
232 void * /* user_data */) CL_API_SUFFIX__VERSION_1_0;
234 CL_API_ENTRY cl_int CL_API_CALL
235 clUnloadCompiler( void ) CL_API_SUFFIX__VERSION_1_0;
237 CL_API_ENTRY cl_int CL_API_CALL
238 clGetProgramInfo(cl_program /* program */,
239 cl_program_info /* param_name */,
240 size_t /* param_value_size */,
241 void * /* param_value */,
242 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
244 CL_API_ENTRY cl_int CL_API_CALL
245 clGetProgramBuildInfo(cl_program /* program */,
246 cl_device_id /* device */,
247 cl_program_build_info /* param_name */,
248 size_t /* param_value_size */,
249 void * /* param_value */,
250 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
252 CL_API_ENTRY cl_kernel CL_API_CALL
253 clCreateKernel(cl_program /* program */,
254 const char * /* kernel_name */,
255 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
257 CL_API_ENTRY cl_int CL_API_CALL
258 clCreateKernelsInProgram(cl_program /* program */,
259 cl_uint /* num_kernels */,
260 cl_kernel * /* kernels */,
261 cl_uint * /* num_kernels_ret */) CL_API_SUFFIX__VERSION_1_0;
263 CL_API_ENTRY cl_int CL_API_CALL
264 clRetainKernel(cl_kernel /* kernel */) CL_API_SUFFIX__VERSION_1_0;
266 CL_API_ENTRY cl_int CL_API_CALL
267 clReleaseKernel(cl_kernel /* kernel */) CL_API_SUFFIX__VERSION_1_0;
269 CL_API_ENTRY cl_int CL_API_CALL
270 clSetKernelArg(cl_kernel /* kernel */,
271 cl_uint /* arg_index */,
272 size_t /* arg_size */,
273 const void * /* arg_value */) CL_API_SUFFIX__VERSION_1_0;
275 CL_API_ENTRY cl_int CL_API_CALL
276 clGetKernelInfo(cl_kernel /* kernel */,
277 cl_kernel_info /* param_name */,
278 size_t /* param_value_size */,
279 void * /* param_value */,
280 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
282 CL_API_ENTRY cl_int CL_API_CALL
283 clGetKernelWorkGroupInfo(cl_kernel /* kernel */,
284 cl_device_id /* device */,
285 cl_kernel_work_group_info /* param_name */,
286 size_t /* param_value_size */,
287 void * /* param_value */,
288 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
290 CL_API_ENTRY cl_int CL_API_CALL
291 clWaitForEvents(cl_uint /* num_events */,
292 const cl_event * /* event_list */) CL_API_SUFFIX__VERSION_1_0;
294 CL_API_ENTRY cl_int CL_API_CALL
295 clGetEventInfo(cl_event /* event */,
296 cl_event_info /* param_name */,
297 size_t /* param_value_size */,
298 void * /* param_value */,
299 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
301 CL_API_ENTRY cl_int CL_API_CALL
302 clRetainEvent(cl_event /* event */) CL_API_SUFFIX__VERSION_1_0;
304 CL_API_ENTRY cl_int CL_API_CALL
305 clReleaseEvent(cl_event /* event */) CL_API_SUFFIX__VERSION_1_0;
307 CL_API_ENTRY cl_int CL_API_CALL
308 clGetEventProfilingInfo(cl_event /* event */,
309 cl_profiling_info /* param_name */,
310 size_t /* param_value_size */,
311 void * /* param_value */,
312 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
314 CL_API_ENTRY cl_int CL_API_CALL
315 clFlush(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
317 CL_API_ENTRY cl_int CL_API_CALL
318 clFinish(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
320 CL_API_ENTRY cl_int CL_API_CALL
321 clEnqueueReadBuffer(cl_command_queue /* command_queue */,
323 cl_bool /* blocking_read */,
327 cl_uint /* num_events_in_wait_list */,
328 const cl_event * /* event_wait_list */,
329 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
331 CL_API_ENTRY cl_int CL_API_CALL
332 clEnqueueWriteBuffer(cl_command_queue /* command_queue */,
334 cl_bool /* blocking_write */,
337 const void * /* ptr */,
338 cl_uint /* num_events_in_wait_list */,
339 const cl_event * /* event_wait_list */,
340 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
342 CL_API_ENTRY cl_int CL_API_CALL
343 clEnqueueCopyBuffer(cl_command_queue /* command_queue */,
344 cl_mem /* src_buffer */,
345 cl_mem /* dst_buffer */,
346 size_t /* src_offset */,
347 size_t /* dst_offset */,
349 cl_uint /* num_events_in_wait_list */,
350 const cl_event * /* event_wait_list */,
351 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
353 CL_API_ENTRY cl_int CL_API_CALL
354 clEnqueueReadImage(cl_command_queue /* command_queue */,
356 cl_bool /* blocking_read */,
357 const size_t * /* origin[3] */,
358 const size_t * /* region[3] */,
359 size_t /* row_pitch */,
360 size_t /* slice_pitch */,
362 cl_uint /* num_events_in_wait_list */,
363 const cl_event * /* event_wait_list */,
364 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
366 CL_API_ENTRY cl_int CL_API_CALL
367 clEnqueueWriteImage(cl_command_queue /* command_queue */,
369 cl_bool /* blocking_write */,
370 const size_t * /* origin[3] */,
371 const size_t * /* region[3] */,
372 size_t /* input_row_pitch */,
373 size_t /* input_slice_pitch */,
374 const void * /* ptr */,
375 cl_uint /* num_events_in_wait_list */,
376 const cl_event * /* event_wait_list */,
377 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
379 CL_API_ENTRY cl_int CL_API_CALL
380 clEnqueueCopyImage(cl_command_queue /* command_queue */,
381 cl_mem /* src_image */,
382 cl_mem /* dst_image */,
383 const size_t * /* src_origin[3] */,
384 const size_t * /* dst_origin[3] */,
385 const size_t * /* region[3] */,
386 cl_uint /* num_events_in_wait_list */,
387 const cl_event * /* event_wait_list */,
388 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
390 CL_API_ENTRY cl_int CL_API_CALL
391 clEnqueueCopyImageToBuffer(cl_command_queue /* command_queue */,
392 cl_mem /* src_image */,
393 cl_mem /* dst_buffer */,
394 const size_t * /* src_origin[3] */,
395 const size_t * /* region[3] */,
396 size_t /* dst_offset */,
397 cl_uint /* num_events_in_wait_list */,
398 const cl_event * /* event_wait_list */,
399 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
401 CL_API_ENTRY cl_int CL_API_CALL
402 clEnqueueCopyBufferToImage(cl_command_queue /* command_queue */,
403 cl_mem /* src_buffer */,
404 cl_mem /* dst_image */,
405 size_t /* src_offset */,
406 const size_t * /* dst_origin[3] */,
407 const size_t * /* region[3] */,
408 cl_uint /* num_events_in_wait_list */,
409 const cl_event * /* event_wait_list */,
410 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
412 CL_API_ENTRY void * CL_API_CALL
413 clEnqueueMapBuffer(cl_command_queue /* command_queue */,
415 cl_bool /* blocking_map */,
416 cl_map_flags /* map_flags */,
419 cl_uint /* num_events_in_wait_list */,
420 const cl_event * /* event_wait_list */,
421 cl_event * /* event */,
422 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
424 CL_API_ENTRY void * CL_API_CALL
425 clEnqueueMapImage(cl_command_queue /* command_queue */,
427 cl_bool /* blocking_map */,
428 cl_map_flags /* map_flags */,
429 const size_t * /* origin[3] */,
430 const size_t * /* region[3] */,
431 size_t * /* image_row_pitch */,
432 size_t * /* image_slice_pitch */,
433 cl_uint /* num_events_in_wait_list */,
434 const cl_event * /* event_wait_list */,
435 cl_event * /* event */,
436 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
438 CL_API_ENTRY cl_int CL_API_CALL
439 clEnqueueUnmapMemObject(cl_command_queue /* command_queue */,
441 void * /* mapped_ptr */,
442 cl_uint /* num_events_in_wait_list */,
443 const cl_event * /* event_wait_list */,
444 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
446 CL_API_ENTRY cl_int CL_API_CALL
447 clEnqueueNDRangeKernel(cl_command_queue /* command_queue */,
448 cl_kernel /* kernel */,
449 cl_uint /* work_dim */,
450 const size_t * /* global_work_offset */,
451 const size_t * /* global_work_size */,
452 const size_t * /* local_work_size */,
453 cl_uint /* num_events_in_wait_list */,
454 const cl_event * /* event_wait_list */,
455 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
457 CL_API_ENTRY cl_int CL_API_CALL
458 clEnqueueTask(cl_command_queue /* command_queue */,
459 cl_kernel /* kernel */,
460 cl_uint /* num_events_in_wait_list */,
461 const cl_event * /* event_wait_list */,
462 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
464 CL_API_ENTRY cl_int CL_API_CALL
465 clEnqueueNativeKernel(cl_command_queue /* command_queue */,
466 void (*user_func)(void *),
468 size_t /* cb_args */,
469 cl_uint /* num_mem_objects */,
470 const cl_mem * /* mem_list */,
471 const void ** /* args_mem_loc */,
472 cl_uint /* num_events_in_wait_list */,
473 const cl_event * /* event_wait_list */,
474 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
476 CL_API_ENTRY cl_int CL_API_CALL
477 clEnqueueMarker(cl_command_queue /* command_queue */,
478 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
480 CL_API_ENTRY cl_int CL_API_CALL
481 clEnqueueWaitForEvents(cl_command_queue /* command_queue */,
482 cl_uint /* num_events */,
483 const cl_event * /* event_list */) CL_API_SUFFIX__VERSION_1_0;
485 CL_API_ENTRY cl_int CL_API_CALL
486 clEnqueueBarrier(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
488 CL_API_ENTRY void * CL_API_CALL
489 clGetExtensionFunctionAddress(const char * /* func_name */) CL_API_SUFFIX__VERSION_1_0;
491 CL_API_ENTRY cl_mem CL_API_CALL
492 clCreateFromGLBuffer(cl_context /* context */,
493 cl_mem_flags /* flags */,
494 cl_GLuint /* bufobj */,
495 int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
497 CL_API_ENTRY cl_mem CL_API_CALL
498 clCreateFromGLTexture2D(cl_context /* context */,
499 cl_mem_flags /* flags */,
500 cl_GLenum /* target */,
501 cl_GLint /* miplevel */,
502 cl_GLuint /* texture */,
503 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
505 CL_API_ENTRY cl_mem CL_API_CALL
506 clCreateFromGLTexture3D(cl_context /* context */,
507 cl_mem_flags /* flags */,
508 cl_GLenum /* target */,
509 cl_GLint /* miplevel */,
510 cl_GLuint /* texture */,
511 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
513 CL_API_ENTRY cl_mem CL_API_CALL
514 clCreateFromGLRenderbuffer(cl_context /* context */,
515 cl_mem_flags /* flags */,
516 cl_GLuint /* renderbuffer */,
517 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
519 CL_API_ENTRY cl_int CL_API_CALL
520 clGetGLObjectInfo(cl_mem /* memobj */,
521 cl_gl_object_type * /* gl_object_type */,
522 cl_GLuint * /* gl_object_name */) CL_API_SUFFIX__VERSION_1_0;
524 CL_API_ENTRY cl_int CL_API_CALL
525 clGetGLTextureInfo(cl_mem /* memobj */,
526 cl_gl_texture_info /* param_name */,
527 size_t /* param_value_size */,
528 void * /* param_value */,
529 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
531 CL_API_ENTRY cl_int CL_API_CALL
532 clEnqueueAcquireGLObjects(cl_command_queue /* command_queue */,
533 cl_uint /* num_objects */,
534 const cl_mem * /* mem_objects */,
535 cl_uint /* num_events_in_wait_list */,
536 const cl_event * /* event_wait_list */,
537 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
539 CL_API_ENTRY cl_int CL_API_CALL
540 clEnqueueReleaseGLObjects(cl_command_queue /* command_queue */,
541 cl_uint /* num_objects */,
542 const cl_mem * /* mem_objects */,
543 cl_uint /* num_events_in_wait_list */,
544 const cl_event * /* event_wait_list */,
545 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
547 CL_API_ENTRY cl_int CL_API_CALL
548 clGetGLContextInfoKHR(const cl_context_properties * /* properties */,
549 cl_gl_context_info /* param_name */,
550 size_t /* param_value_size */,
551 void * /* param_value */,
552 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
554 CL_API_ENTRY cl_int CL_API_CALL
555 clGetDeviceIDsFromD3D10KHR(cl_platform_id /* platform */,
556 cl_d3d10_device_source_khr /* d3d_device_source */,
557 void * /* d3d_object */,
558 cl_d3d10_device_set_khr /* d3d_device_set */,
559 cl_uint /* num_entries */,
560 cl_device_id * /* devices */,
561 cl_uint * /* num_devices */) CL_API_SUFFIX__VERSION_1_0;
563 CL_API_ENTRY cl_mem CL_API_CALL
564 clCreateFromD3D10BufferKHR(cl_context /* context */,
565 cl_mem_flags /* flags */,
566 ID3D10Buffer * /* resource */,
567 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
569 CL_API_ENTRY cl_mem CL_API_CALL
570 clCreateFromD3D10Texture2DKHR(cl_context /* context */,
571 cl_mem_flags /* flags */,
572 ID3D10Texture2D * /* resource */,
573 UINT /* subresource */,
574 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
576 CL_API_ENTRY cl_mem CL_API_CALL
577 clCreateFromD3D10Texture3DKHR(cl_context /* context */,
578 cl_mem_flags /* flags */,
579 ID3D10Texture3D * /* resource */,
580 UINT /* subresource */,
581 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
583 CL_API_ENTRY cl_int CL_API_CALL
584 clEnqueueAcquireD3D10ObjectsKHR(cl_command_queue /* command_queue */,
585 cl_uint /* num_objects */,
586 const cl_mem * /* mem_objects */,
587 cl_uint /* num_events_in_wait_list */,
588 const cl_event * /* event_wait_list */,
589 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
591 CL_API_ENTRY cl_int CL_API_CALL
592 clEnqueueReleaseD3D10ObjectsKHR(cl_command_queue /* command_queue */,
593 cl_uint /* num_objects */,
594 const cl_mem * /* mem_objects */,
595 cl_uint /* num_events_in_wait_list */,
596 const cl_event * /* event_wait_list */,
597 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0;
599 CL_API_ENTRY cl_int CL_API_CALL
600 clSetEventCallback( cl_event /* event */,
601 cl_int /* command_exec_callback_type */,
602 void (CL_CALLBACK * /* pfn_notify */)(cl_event, cl_int, void *),
603 void * /* user_data */) CL_API_SUFFIX__VERSION_1_1;
605 CL_API_ENTRY cl_mem CL_API_CALL
606 clCreateSubBuffer(cl_mem /* buffer */,
607 cl_mem_flags /* flags */,
608 cl_buffer_create_type /* buffer_create_type */,
609 const void * /* buffer_create_info */,
610 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_1;
612 CL_API_ENTRY cl_int CL_API_CALL
613 clSetMemObjectDestructorCallback( cl_mem /* memobj */,
614 void (CL_CALLBACK * /*pfn_notify*/)( cl_mem /* memobj */, void* /*user_data*/),
615 void * /*user_data */ ) CL_API_SUFFIX__VERSION_1_1;
617 CL_API_ENTRY cl_event CL_API_CALL
618 clCreateUserEvent(cl_context /* context */,
619 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_1;
621 CL_API_ENTRY cl_int CL_API_CALL
622 clSetUserEventStatus(cl_event /* event */,
623 cl_int /* execution_status */) CL_API_SUFFIX__VERSION_1_1;
625 CL_API_ENTRY cl_int CL_API_CALL
626 clEnqueueReadBufferRect(cl_command_queue /* command_queue */,
628 cl_bool /* blocking_read */,
629 const size_t * /* buffer_origin */,
630 const size_t * /* host_origin */,
631 const size_t * /* region */,
632 size_t /* buffer_row_pitch */,
633 size_t /* buffer_slice_pitch */,
634 size_t /* host_row_pitch */,
635 size_t /* host_slice_pitch */,
637 cl_uint /* num_events_in_wait_list */,
638 const cl_event * /* event_wait_list */,
639 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_1;
641 CL_API_ENTRY cl_int CL_API_CALL
642 clEnqueueWriteBufferRect(cl_command_queue /* command_queue */,
644 cl_bool /* blocking_write */,
645 const size_t * /* buffer_origin */,
646 const size_t * /* host_origin */,
647 const size_t * /* region */,
648 size_t /* buffer_row_pitch */,
649 size_t /* buffer_slice_pitch */,
650 size_t /* host_row_pitch */,
651 size_t /* host_slice_pitch */,
652 const void * /* ptr */,
653 cl_uint /* num_events_in_wait_list */,
654 const cl_event * /* event_wait_list */,
655 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_1;
657 CL_API_ENTRY cl_int CL_API_CALL
658 clEnqueueCopyBufferRect(cl_command_queue /* command_queue */,
659 cl_mem /* src_buffer */,
660 cl_mem /* dst_buffer */,
661 const size_t * /* src_origin */,
662 const size_t * /* dst_origin */,
663 const size_t * /* region */,
664 size_t /* src_row_pitch */,
665 size_t /* src_slice_pitch */,
666 size_t /* dst_row_pitch */,
667 size_t /* dst_slice_pitch */,
668 cl_uint /* num_events_in_wait_list */,
669 const cl_event * /* event_wait_list */,
670 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_1;
672 CL_API_ENTRY cl_int CL_API_CALL
673 clCreateSubDevicesEXT( cl_device_id /*in_device*/,
674 const cl_device_partition_property_ext * /* properties */,
675 cl_uint /*num_entries*/,
676 cl_device_id * /*out_devices*/,
677 cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;
679 CL_API_ENTRY cl_int CL_API_CALL
680 clRetainDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
682 CL_API_ENTRY cl_int CL_API_CALL
683 clReleaseDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
685 CL_API_ENTRY cl_event CL_API_CALL
686 clCreateEventFromGLsyncKHR(cl_context /* context */,
687 cl_GLsync /* cl_GLsync */,
688 cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1;
690 CL_API_ENTRY cl_int CL_API_CALL
691 clCreateSubDevices(cl_device_id /* in_device */,
692 const cl_device_partition_property * /* properties */,
693 cl_uint /* num_devices */,
694 cl_device_id * /* out_devices */,
695 cl_uint * /* num_devices_ret */) CL_API_SUFFIX__VERSION_1_2;
697 CL_API_ENTRY cl_int CL_API_CALL
698 clRetainDevice(cl_device_id /* device */) CL_API_SUFFIX__VERSION_1_2;
700 CL_API_ENTRY cl_int CL_API_CALL
701 clReleaseDevice(cl_device_id /* device */) CL_API_SUFFIX__VERSION_1_2;
703 CL_API_ENTRY cl_mem CL_API_CALL
704 clCreateImage(cl_context /* context */,
705 cl_mem_flags /* flags */,
706 const cl_image_format * /* image_format */,
707 const cl_image_desc * /* image_desc */,
708 void * /* host_ptr */,
709 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
711 CL_API_ENTRY cl_program CL_API_CALL
712 clCreateProgramWithBuiltInKernels(cl_context /* context */,
713 cl_uint /* num_devices */,
714 const cl_device_id * /* device_list */,
715 const char * /* kernel_names */,
716 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
718 CL_API_ENTRY cl_int CL_API_CALL
719 clCompileProgram(cl_program /* program */,
720 cl_uint /* num_devices */,
721 const cl_device_id * /* device_list */,
722 const char * /* options */,
723 cl_uint /* num_input_headers */,
724 const cl_program * /* input_headers */,
725 const char ** /* header_include_names */,
726 void (CL_CALLBACK * /* pfn_notify */)(cl_program /* program */, void * /* user_data */),
727 void * /* user_data */) CL_API_SUFFIX__VERSION_1_2;
729 CL_API_ENTRY cl_program CL_API_CALL
730 clLinkProgram(cl_context /* context */,
731 cl_uint /* num_devices */,
732 const cl_device_id * /* device_list */,
733 const char * /* options */,
734 cl_uint /* num_input_programs */,
735 const cl_program * /* input_programs */,
736 void (CL_CALLBACK * /* pfn_notify */)(cl_program /* program */, void * /* user_data */),
737 void * /* user_data */,
738 cl_int * /* errcode_ret */ ) CL_API_SUFFIX__VERSION_1_2;
740 CL_API_ENTRY cl_int CL_API_CALL
741 clUnloadPlatformCompiler(cl_platform_id /* platform */) CL_API_SUFFIX__VERSION_1_2;
743 CL_API_ENTRY cl_int CL_API_CALL
744 clGetKernelArgInfo(cl_kernel /* kernel */,
745 cl_uint /* arg_indx */,
746 cl_kernel_arg_info /* param_name */,
747 size_t /* param_value_size */,
748 void * /* param_value */,
749 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_2;
751 CL_API_ENTRY cl_int CL_API_CALL
752 clEnqueueFillBuffer(cl_command_queue /* command_queue */,
754 const void * /* pattern */,
755 size_t /* pattern_size */,
758 cl_uint /* num_events_in_wait_list */,
759 const cl_event * /* event_wait_list */,
760 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
762 CL_API_ENTRY cl_int CL_API_CALL
763 clEnqueueFillImage(cl_command_queue /* command_queue */,
765 const void * /* fill_color */,
766 const size_t * /* origin[3] */,
767 const size_t * /* region[3] */,
768 cl_uint /* num_events_in_wait_list */,
769 const cl_event * /* event_wait_list */,
770 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
772 CL_API_ENTRY cl_int CL_API_CALL
773 clEnqueueMigrateMemObjects(cl_command_queue /* command_queue */,
774 cl_uint /* num_mem_objects */,
775 const cl_mem * /* mem_objects */,
776 cl_mem_migration_flags /* flags */,
777 cl_uint /* num_events_in_wait_list */,
778 const cl_event * /* event_wait_list */,
779 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
781 CL_API_ENTRY cl_int CL_API_CALL
782 clEnqueueMarkerWithWaitList(cl_command_queue /* command_queue */,
783 cl_uint /* num_events_in_wait_list */,
784 const cl_event * /* event_wait_list */,
785 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
787 CL_API_ENTRY cl_int CL_API_CALL
788 clEnqueueBarrierWithWaitList(cl_command_queue /* command_queue */,
789 cl_uint /* num_events_in_wait_list */,
790 const cl_event * /* event_wait_list */,
791 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
793 CL_API_ENTRY void * CL_API_CALL
794 clGetExtensionFunctionAddressForPlatform(cl_platform_id /* platform */,
795 const char * /* func_name */) CL_API_SUFFIX__VERSION_1_2;
797 CL_API_ENTRY cl_mem CL_API_CALL
798 clCreateFromGLTexture(cl_context /* context */,
799 cl_mem_flags /* flags */,
800 cl_GLenum /* target */,
801 cl_GLint /* miplevel */,
802 cl_GLuint /* texture */,
803 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
805 CL_API_ENTRY cl_int CL_API_CALL
806 clGetDeviceIDsFromD3D11KHR(cl_platform_id /* platform */,
807 cl_d3d11_device_source_khr /* d3d_device_source */,
808 void * /* d3d_object */,
809 cl_d3d11_device_set_khr /* d3d_device_set */,
810 cl_uint /* num_entries */,
811 cl_device_id * /* devices */,
812 cl_uint * /* num_devices */) CL_API_SUFFIX__VERSION_1_2;
814 CL_API_ENTRY cl_mem CL_API_CALL
815 clCreateFromD3D11BufferKHR(cl_context /* context */,
816 cl_mem_flags /* flags */,
817 ID3D11Buffer * /* resource */,
818 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
820 CL_API_ENTRY cl_mem CL_API_CALL
821 clCreateFromD3D11Texture2DKHR(cl_context /* context */,
822 cl_mem_flags /* flags */,
823 ID3D11Texture2D * /* resource */,
824 UINT /* subresource */,
825 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
827 CL_API_ENTRY cl_mem CL_API_CALL
828 clCreateFromD3D11Texture3DKHR(cl_context /* context */,
829 cl_mem_flags /* flags */,
830 ID3D11Texture3D * /* resource */,
831 UINT /* subresource */,
832 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
834 CL_API_ENTRY cl_mem CL_API_CALL
835 clCreateFromDX9MediaSurfaceKHR(cl_context /* context */,
836 cl_mem_flags /* flags */,
837 cl_dx9_media_adapter_type_khr /* adapter_type */,
838 void * /* surface_info */,
840 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
842 CL_API_ENTRY cl_int CL_API_CALL
843 clEnqueueAcquireD3D11ObjectsKHR(cl_command_queue /* command_queue */,
844 cl_uint /* num_objects */,
845 const cl_mem * /* mem_objects */,
846 cl_uint /* num_events_in_wait_list */,
847 const cl_event * /* event_wait_list */,
848 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
850 CL_API_ENTRY cl_int CL_API_CALL
851 clEnqueueReleaseD3D11ObjectsKHR(cl_command_queue /* command_queue */,
852 cl_uint /* num_objects */,
853 const cl_mem * /* mem_objects */,
854 cl_uint /* num_events_in_wait_list */,
855 const cl_event * /* event_wait_list */,
856 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
858 CL_API_ENTRY cl_int CL_API_CALL
859 clGetDeviceIDsFromDX9MediaAdapterKHR(cl_platform_id /* platform */,
860 cl_uint /* num_media_adapters */,
861 cl_dx9_media_adapter_type_khr * /* media_adapter_type */,
862 void * /* media_adapters */,
863 cl_dx9_media_adapter_set_khr /* media_adapter_set */,
864 cl_uint /* num_entries */,
865 cl_device_id * /* devices */,
866 cl_uint * /* num_devices */) CL_API_SUFFIX__VERSION_1_2;
868 CL_API_ENTRY cl_int CL_API_CALL
869 clEnqueueAcquireDX9MediaSurfacesKHR(cl_command_queue /* command_queue */,
870 cl_uint /* num_objects */,
871 const cl_mem * /* mem_objects */,
872 cl_uint /* num_events_in_wait_list */,
873 const cl_event * /* event_wait_list */,
874 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
876 CL_API_ENTRY cl_int CL_API_CALL
877 clEnqueueReleaseDX9MediaSurfacesKHR(cl_command_queue /* command_queue */,
878 cl_uint /* num_objects */,
879 cl_mem * /* mem_objects */,
880 cl_uint /* num_events_in_wait_list */,
881 const cl_event * /* event_wait_list */,
882 cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
884 CL_API_ENTRY cl_command_queue CL_API_CALL
885 clCreateCommandQueueWithProperties(cl_context /* context */,
886 cl_device_id /* device */,
887 const cl_queue_properties * /* properties */,
888 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_2_0;
890 CL_API_ENTRY cl_mem CL_API_CALL
891 clCreatePipe(cl_context /* context */,
892 cl_mem_flags /* flags */,
893 cl_uint /* pipe_packet_size */,
894 cl_uint /* pipe_max_packets */,
895 const cl_pipe_properties * /* properties */,
896 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_2_0;
898 CL_API_ENTRY cl_int CL_API_CALL
899 clGetPipeInfo(cl_mem /* pipe */,
900 cl_pipe_info /* param_name */,
901 size_t /* param_value_size */,
902 void * /* param_value */,
903 size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_2_0;
905 CL_API_ENTRY void * CL_API_CALL
906 clSVMAlloc(cl_context /* context */,
907 cl_svm_mem_flags /* flags */,
909 cl_uint /* alignment */) CL_API_SUFFIX__VERSION_2_0;
911 CL_API_ENTRY void CL_API_CALL
912 clSVMFree(cl_context /* context */,
913 void * /* svm_pointer */) CL_API_SUFFIX__VERSION_2_0;
915 CL_API_ENTRY cl_int CL_API_CALL
916 clEnqueueSVMFree(cl_command_queue /* command_queue */,
917 cl_uint /* num_svm_pointers */,
918 void *[] /* svm_pointers[] */,
919 void (CL_CALLBACK * /*pfn_free_func*/)(cl_command_queue /* queue */,
920 cl_uint /* num_svm_pointers */,
921 void *[] /* svm_pointers[] */,
922 void * /* user_data */),
923 void * /* user_data */,
924 cl_uint /* num_events_in_wait_list */,
925 const cl_event * /* event_wait_list */,
926 cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
928 CL_API_ENTRY cl_int CL_API_CALL
929 clEnqueueSVMMemcpy(cl_command_queue /* command_queue */,
930 cl_bool /* blocking_copy */,
931 void * /* dst_ptr */,
932 const void * /* src_ptr */,
934 cl_uint /* num_events_in_wait_list */,
935 const cl_event * /* event_wait_list */,
936 cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
938 CL_API_ENTRY cl_int CL_API_CALL
939 clEnqueueSVMMemFill(cl_command_queue /* command_queue */,
940 void * /* svm_ptr */,
941 const void * /* pattern */,
942 size_t /* pattern_size */,
944 cl_uint /* num_events_in_wait_list */,
945 const cl_event * /* event_wait_list */,
946 cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
948 CL_API_ENTRY cl_int CL_API_CALL
949 clEnqueueSVMMap(cl_command_queue /* command_queue */,
950 cl_bool /* blocking_map */,
951 cl_map_flags /* flags */,
952 void * /* svm_ptr */,
954 cl_uint /* num_events_in_wait_list */,
955 const cl_event * /* event_wait_list */,
956 cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
958 CL_API_ENTRY cl_int CL_API_CALL
959 clEnqueueSVMUnmap(cl_command_queue /* command_queue */,
960 void * /* svm_ptr */,
961 cl_uint /* num_events_in_wait_list */,
962 const cl_event * /* event_wait_list */,
963 cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
965 CL_API_ENTRY cl_sampler CL_API_CALL
966 clCreateSamplerWithProperties(cl_context /* context */,
967 const cl_sampler_properties * /* normalized_coords */,
968 cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_2_0;
970 CL_API_ENTRY cl_int CL_API_CALL
971 clSetKernelArgSVMPointer(cl_kernel /* kernel */,
972 cl_uint /* arg_index */,
973 const void * /* arg_value */) CL_API_SUFFIX__VERSION_2_0;
975 CL_API_ENTRY cl_int CL_API_CALL
976 clSetKernelExecInfo(cl_kernel /* kernel */,
977 cl_kernel_exec_info /* param_name */,
978 size_t /* param_value_size */,
979 const void * /* param_value */) CL_API_SUFFIX__VERSION_2_0;