30 #include <OpenCL/cl_platform.h>
32 #include <CL/cl_platform.h>
41 typedef struct _cl_platform_id * cl_platform_id;
42 typedef struct _cl_device_id * cl_device_id;
43 typedef struct _cl_context * cl_context;
44 typedef struct _cl_command_queue * cl_command_queue;
45 typedef struct _cl_mem * cl_mem;
46 typedef struct _cl_program * cl_program;
47 typedef struct _cl_kernel * cl_kernel;
48 typedef struct _cl_event * cl_event;
49 typedef struct _cl_sampler * cl_sampler;
51 typedef cl_uint cl_bool;
52 typedef cl_ulong cl_bitfield;
53 typedef cl_bitfield cl_device_type;
54 typedef cl_uint cl_platform_info;
55 typedef cl_uint cl_device_info;
56 typedef cl_bitfield cl_device_fp_config;
57 typedef cl_uint cl_device_mem_cache_type;
58 typedef cl_uint cl_device_local_mem_type;
59 typedef cl_bitfield cl_device_exec_capabilities;
60 typedef cl_bitfield cl_command_queue_properties;
62 typedef intptr_t cl_context_properties;
63 typedef cl_uint cl_context_info;
64 typedef cl_uint cl_command_queue_info;
65 typedef cl_uint cl_channel_order;
66 typedef cl_uint cl_channel_type;
67 typedef cl_bitfield cl_mem_flags;
68 typedef cl_uint cl_mem_object_type;
69 typedef cl_uint cl_mem_info;
70 typedef cl_uint cl_image_info;
71 typedef cl_uint cl_buffer_create_type;
72 typedef cl_uint cl_addressing_mode;
73 typedef cl_uint cl_filter_mode;
74 typedef cl_uint cl_sampler_info;
75 typedef cl_bitfield cl_map_flags;
76 typedef cl_uint cl_program_info;
77 typedef cl_uint cl_program_build_info;
78 typedef cl_int cl_build_status;
79 typedef cl_uint cl_kernel_info;
80 typedef cl_uint cl_kernel_work_group_info;
81 typedef cl_uint cl_event_info;
82 typedef cl_uint cl_command_type;
83 typedef cl_uint cl_profiling_info;
100 #define CL_DEVICE_NOT_FOUND -1
101 #define CL_DEVICE_NOT_AVAILABLE -2
102 #define CL_COMPILER_NOT_AVAILABLE -3
103 #define CL_MEM_OBJECT_ALLOCATION_FAILURE -4
104 #define CL_OUT_OF_RESOURCES -5
105 #define CL_OUT_OF_HOST_MEMORY -6
106 #define CL_PROFILING_INFO_NOT_AVAILABLE -7
107 #define CL_MEM_COPY_OVERLAP -8
108 #define CL_IMAGE_FORMAT_MISMATCH -9
109 #define CL_IMAGE_FORMAT_NOT_SUPPORTED -10
110 #define CL_BUILD_PROGRAM_FAILURE -11
111 #define CL_MAP_FAILURE -12
112 #define CL_MISALIGNED_SUB_BUFFER_OFFSET -13
113 #define CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST -14
115 #define CL_INVALID_VALUE -30
116 #define CL_INVALID_DEVICE_TYPE -31
117 #define CL_INVALID_PLATFORM -32
118 #define CL_INVALID_DEVICE -33
119 #define CL_INVALID_CONTEXT -34
120 #define CL_INVALID_QUEUE_PROPERTIES -35
121 #define CL_INVALID_COMMAND_QUEUE -36
122 #define CL_INVALID_HOST_PTR -37
123 #define CL_INVALID_MEM_OBJECT -38
124 #define CL_INVALID_IMAGE_FORMAT_DESCRIPTOR -39
125 #define CL_INVALID_IMAGE_SIZE -40
126 #define CL_INVALID_SAMPLER -41
127 #define CL_INVALID_BINARY -42
128 #define CL_INVALID_BUILD_OPTIONS -43
129 #define CL_INVALID_PROGRAM -44
130 #define CL_INVALID_PROGRAM_EXECUTABLE -45
131 #define CL_INVALID_KERNEL_NAME -46
132 #define CL_INVALID_KERNEL_DEFINITION -47
133 #define CL_INVALID_KERNEL -48
134 #define CL_INVALID_ARG_INDEX -49
135 #define CL_INVALID_ARG_VALUE -50
136 #define CL_INVALID_ARG_SIZE -51
137 #define CL_INVALID_KERNEL_ARGS -52
138 #define CL_INVALID_WORK_DIMENSION -53
139 #define CL_INVALID_WORK_GROUP_SIZE -54
140 #define CL_INVALID_WORK_ITEM_SIZE -55
141 #define CL_INVALID_GLOBAL_OFFSET -56
142 #define CL_INVALID_EVENT_WAIT_LIST -57
143 #define CL_INVALID_EVENT -58
144 #define CL_INVALID_OPERATION -59
145 #define CL_INVALID_GL_OBJECT -60
146 #define CL_INVALID_BUFFER_SIZE -61
147 #define CL_INVALID_MIP_LEVEL -62
148 #define CL_INVALID_GLOBAL_WORK_SIZE -63
149 #define CL_INVALID_PROPERTY -64
152 #define CL_VERSION_1_0 1
153 #define CL_VERSION_1_1 1
160 #define CL_PLATFORM_PROFILE 0x0900
161 #define CL_PLATFORM_VERSION 0x0901
162 #define CL_PLATFORM_NAME 0x0902
163 #define CL_PLATFORM_VENDOR 0x0903
164 #define CL_PLATFORM_EXTENSIONS 0x0904
167 #define CL_DEVICE_TYPE_DEFAULT (1 << 0)
168 #define CL_DEVICE_TYPE_CPU (1 << 1)
169 #define CL_DEVICE_TYPE_GPU (1 << 2)
170 #define CL_DEVICE_TYPE_ACCELERATOR (1 << 3)
171 #define CL_DEVICE_TYPE_ALL 0xFFFFFFFF
174 #define CL_DEVICE_TYPE 0x1000
175 #define CL_DEVICE_VENDOR_ID 0x1001
176 #define CL_DEVICE_MAX_COMPUTE_UNITS 0x1002
177 #define CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS 0x1003
178 #define CL_DEVICE_MAX_WORK_GROUP_SIZE 0x1004
179 #define CL_DEVICE_MAX_WORK_ITEM_SIZES 0x1005
180 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR 0x1006
181 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT 0x1007
182 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT 0x1008
183 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG 0x1009
184 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT 0x100A
185 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE 0x100B
186 #define CL_DEVICE_MAX_CLOCK_FREQUENCY 0x100C
187 #define CL_DEVICE_ADDRESS_BITS 0x100D
188 #define CL_DEVICE_MAX_READ_IMAGE_ARGS 0x100E
189 #define CL_DEVICE_MAX_WRITE_IMAGE_ARGS 0x100F
190 #define CL_DEVICE_MAX_MEM_ALLOC_SIZE 0x1010
191 #define CL_DEVICE_IMAGE2D_MAX_WIDTH 0x1011
192 #define CL_DEVICE_IMAGE2D_MAX_HEIGHT 0x1012
193 #define CL_DEVICE_IMAGE3D_MAX_WIDTH 0x1013
194 #define CL_DEVICE_IMAGE3D_MAX_HEIGHT 0x1014
195 #define CL_DEVICE_IMAGE3D_MAX_DEPTH 0x1015
196 #define CL_DEVICE_IMAGE_SUPPORT 0x1016
197 #define CL_DEVICE_MAX_PARAMETER_SIZE 0x1017
198 #define CL_DEVICE_MAX_SAMPLERS 0x1018
199 #define CL_DEVICE_MEM_BASE_ADDR_ALIGN 0x1019
200 #define CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE 0x101A
201 #define CL_DEVICE_SINGLE_FP_CONFIG 0x101B
202 #define CL_DEVICE_GLOBAL_MEM_CACHE_TYPE 0x101C
203 #define CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE 0x101D
204 #define CL_DEVICE_GLOBAL_MEM_CACHE_SIZE 0x101E
205 #define CL_DEVICE_GLOBAL_MEM_SIZE 0x101F
206 #define CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE 0x1020
207 #define CL_DEVICE_MAX_CONSTANT_ARGS 0x1021
208 #define CL_DEVICE_LOCAL_MEM_TYPE 0x1022
209 #define CL_DEVICE_LOCAL_MEM_SIZE 0x1023
210 #define CL_DEVICE_ERROR_CORRECTION_SUPPORT 0x1024
211 #define CL_DEVICE_PROFILING_TIMER_RESOLUTION 0x1025
212 #define CL_DEVICE_ENDIAN_LITTLE 0x1026
213 #define CL_DEVICE_AVAILABLE 0x1027
214 #define CL_DEVICE_COMPILER_AVAILABLE 0x1028
215 #define CL_DEVICE_EXECUTION_CAPABILITIES 0x1029
216 #define CL_DEVICE_QUEUE_PROPERTIES 0x102A
217 #define CL_DEVICE_NAME 0x102B
218 #define CL_DEVICE_VENDOR 0x102C
219 #define CL_DRIVER_VERSION 0x102D
220 #define CL_DEVICE_PROFILE 0x102E
221 #define CL_DEVICE_VERSION 0x102F
222 #define CL_DEVICE_EXTENSIONS 0x1030
223 #define CL_DEVICE_PLATFORM 0x1031
226 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF 0x1034
227 #define CL_DEVICE_HOST_UNIFIED_MEMORY 0x1035
228 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR 0x1036
229 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT 0x1037
230 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_INT 0x1038
231 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG 0x1039
232 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT 0x103A
233 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE 0x103B
234 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF 0x103C
235 #define CL_DEVICE_OPENCL_C_VERSION 0x103D
238 #define CL_FP_DENORM (1 << 0)
239 #define CL_FP_INF_NAN (1 << 1)
240 #define CL_FP_ROUND_TO_NEAREST (1 << 2)
241 #define CL_FP_ROUND_TO_ZERO (1 << 3)
242 #define CL_FP_ROUND_TO_INF (1 << 4)
243 #define CL_FP_FMA (1 << 5)
244 #define CL_FP_SOFT_FLOAT (1 << 6)
248 #define CL_READ_ONLY_CACHE 0x1
249 #define CL_READ_WRITE_CACHE 0x2
253 #define CL_GLOBAL 0x2
256 #define CL_EXEC_KERNEL (1 << 0)
257 #define CL_EXEC_NATIVE_KERNEL (1 << 1)
260 #define CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE (1 << 0)
261 #define CL_QUEUE_PROFILING_ENABLE (1 << 1)
264 #define CL_CONTEXT_REFERENCE_COUNT 0x1080
265 #define CL_CONTEXT_DEVICES 0x1081
266 #define CL_CONTEXT_PROPERTIES 0x1082
267 #define CL_CONTEXT_NUM_DEVICES 0x1083
270 #define CL_CONTEXT_PLATFORM 0x1084
273 #define CL_QUEUE_CONTEXT 0x1090
274 #define CL_QUEUE_DEVICE 0x1091
275 #define CL_QUEUE_REFERENCE_COUNT 0x1092
276 #define CL_QUEUE_PROPERTIES 0x1093
279 #define CL_MEM_READ_WRITE (1 << 0)
280 #define CL_MEM_WRITE_ONLY (1 << 1)
281 #define CL_MEM_READ_ONLY (1 << 2)
282 #define CL_MEM_USE_HOST_PTR (1 << 3)
283 #define CL_MEM_ALLOC_HOST_PTR (1 << 4)
284 #define CL_MEM_COPY_HOST_PTR (1 << 5)
291 #define CL_RGB 0x10B4
292 #define CL_RGBA 0x10B5
293 #define CL_BGRA 0x10B6
294 #define CL_ARGB 0x10B7
295 #define CL_INTENSITY 0x10B8
296 #define CL_LUMINANCE 0x10B9
298 #define CL_RGx 0x10BB
299 #define CL_RGBx 0x10BC
302 #define CL_SNORM_INT8 0x10D0
303 #define CL_SNORM_INT16 0x10D1
304 #define CL_UNORM_INT8 0x10D2
305 #define CL_UNORM_INT16 0x10D3
306 #define CL_UNORM_SHORT_565 0x10D4
307 #define CL_UNORM_SHORT_555 0x10D5
308 #define CL_UNORM_INT_101010 0x10D6
309 #define CL_SIGNED_INT8 0x10D7
310 #define CL_SIGNED_INT16 0x10D8
311 #define CL_SIGNED_INT32 0x10D9
312 #define CL_UNSIGNED_INT8 0x10DA
313 #define CL_UNSIGNED_INT16 0x10DB
314 #define CL_UNSIGNED_INT32 0x10DC
315 #define CL_HALF_FLOAT 0x10DD
316 #define CL_FLOAT 0x10DE
319 #define CL_MEM_OBJECT_BUFFER 0x10F0
320 #define CL_MEM_OBJECT_IMAGE2D 0x10F1
321 #define CL_MEM_OBJECT_IMAGE3D 0x10F2
324 #define CL_MEM_TYPE 0x1100
325 #define CL_MEM_FLAGS 0x1101
326 #define CL_MEM_SIZE 0x1102
327 #define CL_MEM_HOST_PTR 0x1103
328 #define CL_MEM_MAP_COUNT 0x1104
329 #define CL_MEM_REFERENCE_COUNT 0x1105
330 #define CL_MEM_CONTEXT 0x1106
331 #define CL_MEM_ASSOCIATED_MEMOBJECT 0x1107
332 #define CL_MEM_OFFSET 0x1108
335 #define CL_IMAGE_FORMAT 0x1110
336 #define CL_IMAGE_ELEMENT_SIZE 0x1111
337 #define CL_IMAGE_ROW_PITCH 0x1112
338 #define CL_IMAGE_SLICE_PITCH 0x1113
339 #define CL_IMAGE_WIDTH 0x1114
340 #define CL_IMAGE_HEIGHT 0x1115
341 #define CL_IMAGE_DEPTH 0x1116
344 #define CL_ADDRESS_NONE 0x1130
345 #define CL_ADDRESS_CLAMP_TO_EDGE 0x1131
346 #define CL_ADDRESS_CLAMP 0x1132
347 #define CL_ADDRESS_REPEAT 0x1133
348 #define CL_ADDRESS_MIRRORED_REPEAT 0x1134
351 #define CL_FILTER_NEAREST 0x1140
352 #define CL_FILTER_LINEAR 0x1141
355 #define CL_SAMPLER_REFERENCE_COUNT 0x1150
356 #define CL_SAMPLER_CONTEXT 0x1151
357 #define CL_SAMPLER_NORMALIZED_COORDS 0x1152
358 #define CL_SAMPLER_ADDRESSING_MODE 0x1153
359 #define CL_SAMPLER_FILTER_MODE 0x1154
362 #define CL_MAP_READ (1 << 0)
363 #define CL_MAP_WRITE (1 << 1)
366 #define CL_PROGRAM_REFERENCE_COUNT 0x1160
367 #define CL_PROGRAM_CONTEXT 0x1161
368 #define CL_PROGRAM_NUM_DEVICES 0x1162
369 #define CL_PROGRAM_DEVICES 0x1163
370 #define CL_PROGRAM_SOURCE 0x1164
371 #define CL_PROGRAM_BINARY_SIZES 0x1165
372 #define CL_PROGRAM_BINARIES 0x1166
375 #define CL_PROGRAM_BUILD_STATUS 0x1181
376 #define CL_PROGRAM_BUILD_OPTIONS 0x1182
377 #define CL_PROGRAM_BUILD_LOG 0x1183
380 #define CL_BUILD_SUCCESS 0
381 #define CL_BUILD_NONE -1
382 #define CL_BUILD_ERROR -2
383 #define CL_BUILD_IN_PROGRESS -3
386 #define CL_KERNEL_FUNCTION_NAME 0x1190
387 #define CL_KERNEL_NUM_ARGS 0x1191
388 #define CL_KERNEL_REFERENCE_COUNT 0x1192
389 #define CL_KERNEL_CONTEXT 0x1193
390 #define CL_KERNEL_PROGRAM 0x1194
393 #define CL_KERNEL_WORK_GROUP_SIZE 0x11B0
394 #define CL_KERNEL_COMPILE_WORK_GROUP_SIZE 0x11B1
395 #define CL_KERNEL_LOCAL_MEM_SIZE 0x11B2
396 #define CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE 0x11B3
397 #define CL_KERNEL_PRIVATE_MEM_SIZE 0x11B4
400 #define CL_EVENT_COMMAND_QUEUE 0x11D0
401 #define CL_EVENT_COMMAND_TYPE 0x11D1
402 #define CL_EVENT_REFERENCE_COUNT 0x11D2
403 #define CL_EVENT_COMMAND_EXECUTION_STATUS 0x11D3
404 #define CL_EVENT_CONTEXT 0x11D4
407 #define CL_COMMAND_NDRANGE_KERNEL 0x11F0
408 #define CL_COMMAND_TASK 0x11F1
409 #define CL_COMMAND_NATIVE_KERNEL 0x11F2
410 #define CL_COMMAND_READ_BUFFER 0x11F3
411 #define CL_COMMAND_WRITE_BUFFER 0x11F4
412 #define CL_COMMAND_COPY_BUFFER 0x11F5
413 #define CL_COMMAND_READ_IMAGE 0x11F6
414 #define CL_COMMAND_WRITE_IMAGE 0x11F7
415 #define CL_COMMAND_COPY_IMAGE 0x11F8
416 #define CL_COMMAND_COPY_IMAGE_TO_BUFFER 0x11F9
417 #define CL_COMMAND_COPY_BUFFER_TO_IMAGE 0x11FA
418 #define CL_COMMAND_MAP_BUFFER 0x11FB
419 #define CL_COMMAND_MAP_IMAGE 0x11FC
420 #define CL_COMMAND_UNMAP_MEM_OBJECT 0x11FD
421 #define CL_COMMAND_MARKER 0x11FE
422 #define CL_COMMAND_ACQUIRE_GL_OBJECTS 0x11FF
423 #define CL_COMMAND_RELEASE_GL_OBJECTS 0x1200
424 #define CL_COMMAND_READ_BUFFER_RECT 0x1201
425 #define CL_COMMAND_WRITE_BUFFER_RECT 0x1202
426 #define CL_COMMAND_COPY_BUFFER_RECT 0x1203
427 #define CL_COMMAND_USER 0x1204
430 #define CL_COMPLETE 0x0
431 #define CL_RUNNING 0x1
432 #define CL_SUBMITTED 0x2
433 #define CL_QUEUED 0x3
436 #define CL_BUFFER_CREATE_TYPE_REGION 0x1220
439 #define CL_PROFILING_COMMAND_QUEUED 0x1280
440 #define CL_PROFILING_COMMAND_SUBMIT 0x1281
441 #define CL_PROFILING_COMMAND_START 0x1282
442 #define CL_PROFILING_COMMAND_END 0x1283
447 extern CL_API_ENTRY cl_int CL_API_CALL
448 clGetPlatformIDs(cl_uint ,
450 cl_uint * ) CL_API_SUFFIX__VERSION_1_0;
452 extern CL_API_ENTRY cl_int CL_API_CALL
453 clGetPlatformInfo(cl_platform_id ,
457 size_t * ) CL_API_SUFFIX__VERSION_1_0;
460 extern CL_API_ENTRY cl_int CL_API_CALL
461 clGetDeviceIDs(cl_platform_id ,
465 cl_uint * ) CL_API_SUFFIX__VERSION_1_0;
467 extern CL_API_ENTRY cl_int CL_API_CALL
468 clGetDeviceInfo(cl_device_id ,
472 size_t * ) CL_API_SUFFIX__VERSION_1_0;
475 extern CL_API_ENTRY cl_context CL_API_CALL
476 clCreateContext(const cl_context_properties * ,
478 const cl_device_id * ,
479 void (CL_CALLBACK * )(const
char *, const
void *,
size_t,
void *),
481 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
483 extern CL_API_ENTRY cl_context CL_API_CALL
484 clCreateContextFromType(const cl_context_properties * ,
486 void (CL_CALLBACK * )(const
char *, const
void *,
size_t,
void *),
488 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
490 extern CL_API_ENTRY cl_int CL_API_CALL
491 clRetainContext(cl_context ) CL_API_SUFFIX__VERSION_1_0;
493 extern CL_API_ENTRY cl_int CL_API_CALL
494 clReleaseContext(cl_context ) CL_API_SUFFIX__VERSION_1_0;
496 extern CL_API_ENTRY cl_int CL_API_CALL
497 clGetContextInfo(cl_context ,
501 size_t * ) CL_API_SUFFIX__VERSION_1_0;
504 extern CL_API_ENTRY cl_command_queue CL_API_CALL
505 clCreateCommandQueue(cl_context ,
507 cl_command_queue_properties ,
508 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
510 extern CL_API_ENTRY cl_int CL_API_CALL
511 clRetainCommandQueue(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
513 extern CL_API_ENTRY cl_int CL_API_CALL
514 clReleaseCommandQueue(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
516 extern CL_API_ENTRY cl_int CL_API_CALL
517 clGetCommandQueueInfo(cl_command_queue ,
518 cl_command_queue_info ,
521 size_t * ) CL_API_SUFFIX__VERSION_1_0;
523 #ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS
524 #warning CL_USE_DEPRECATED_OPENCL_1_0_APIS is defined. These APIs are unsupported and untested in OpenCL 1.1!
535 extern CL_API_ENTRY cl_int CL_API_CALL
536 clSetCommandQueueProperty(cl_command_queue ,
537 cl_command_queue_properties ,
539 cl_command_queue_properties * ) CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED;
543 extern CL_API_ENTRY cl_mem CL_API_CALL
544 clCreateBuffer(cl_context ,
548 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
550 extern CL_API_ENTRY cl_mem CL_API_CALL
551 clCreateSubBuffer(cl_mem ,
553 cl_buffer_create_type ,
555 cl_int * ) CL_API_SUFFIX__VERSION_1_1;
557 extern CL_API_ENTRY cl_mem CL_API_CALL
558 clCreateImage2D(cl_context ,
565 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
567 extern CL_API_ENTRY cl_mem CL_API_CALL
568 clCreateImage3D(cl_context ,
570 const cl_image_format * ,
577 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
579 extern CL_API_ENTRY cl_int CL_API_CALL
580 clRetainMemObject(cl_mem ) CL_API_SUFFIX__VERSION_1_0;
582 extern CL_API_ENTRY cl_int CL_API_CALL
583 clReleaseMemObject(cl_mem ) CL_API_SUFFIX__VERSION_1_0;
585 extern CL_API_ENTRY cl_int CL_API_CALL
586 clGetSupportedImageFormats(cl_context ,
591 cl_uint * ) CL_API_SUFFIX__VERSION_1_0;
593 extern CL_API_ENTRY cl_int CL_API_CALL
594 clGetMemObjectInfo(cl_mem ,
598 size_t * ) CL_API_SUFFIX__VERSION_1_0;
600 extern CL_API_ENTRY cl_int CL_API_CALL
601 clGetImageInfo(cl_mem ,
605 size_t * ) CL_API_SUFFIX__VERSION_1_0;
607 extern CL_API_ENTRY cl_int CL_API_CALL
608 clSetMemObjectDestructorCallback( cl_mem ,
609 void (CL_CALLBACK * )( cl_mem ,
void* ),
610 void * ) CL_API_SUFFIX__VERSION_1_1;
613 extern CL_API_ENTRY cl_sampler CL_API_CALL
614 clCreateSampler(cl_context ,
618 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
620 extern CL_API_ENTRY cl_int CL_API_CALL
621 clRetainSampler(cl_sampler ) CL_API_SUFFIX__VERSION_1_0;
623 extern CL_API_ENTRY cl_int CL_API_CALL
624 clReleaseSampler(cl_sampler ) CL_API_SUFFIX__VERSION_1_0;
626 extern CL_API_ENTRY cl_int CL_API_CALL
627 clGetSamplerInfo(cl_sampler ,
631 size_t * ) CL_API_SUFFIX__VERSION_1_0;
634 extern CL_API_ENTRY cl_program CL_API_CALL
635 clCreateProgramWithSource(cl_context ,
639 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
641 extern CL_API_ENTRY cl_program CL_API_CALL
642 clCreateProgramWithBinary(cl_context ,
644 const cl_device_id * ,
646 const
unsigned char ** ,
648 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
650 extern CL_API_ENTRY cl_int CL_API_CALL
651 clRetainProgram(cl_program ) CL_API_SUFFIX__VERSION_1_0;
653 extern CL_API_ENTRY cl_int CL_API_CALL
654 clReleaseProgram(cl_program ) CL_API_SUFFIX__VERSION_1_0;
656 extern CL_API_ENTRY cl_int CL_API_CALL
657 clBuildProgram(cl_program ,
659 const cl_device_id * ,
661 void (CL_CALLBACK * )(cl_program ,
void * ),
662 void * ) CL_API_SUFFIX__VERSION_1_0;
664 extern CL_API_ENTRY cl_int CL_API_CALL
665 clUnloadCompiler(
void) CL_API_SUFFIX__VERSION_1_0;
667 extern CL_API_ENTRY cl_int CL_API_CALL
668 clGetProgramInfo(cl_program ,
672 size_t * ) CL_API_SUFFIX__VERSION_1_0;
674 extern CL_API_ENTRY cl_int CL_API_CALL
675 clGetProgramBuildInfo(cl_program ,
677 cl_program_build_info ,
680 size_t * ) CL_API_SUFFIX__VERSION_1_0;
683 extern CL_API_ENTRY cl_kernel CL_API_CALL
684 clCreateKernel(cl_program ,
686 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
688 extern CL_API_ENTRY cl_int CL_API_CALL
689 clCreateKernelsInProgram(cl_program ,
692 cl_uint * ) CL_API_SUFFIX__VERSION_1_0;
694 extern CL_API_ENTRY cl_int CL_API_CALL
695 clRetainKernel(cl_kernel ) CL_API_SUFFIX__VERSION_1_0;
697 extern CL_API_ENTRY cl_int CL_API_CALL
698 clReleaseKernel(cl_kernel ) CL_API_SUFFIX__VERSION_1_0;
700 extern CL_API_ENTRY cl_int CL_API_CALL
701 clSetKernelArg(cl_kernel ,
704 const
void * ) CL_API_SUFFIX__VERSION_1_0;
706 extern CL_API_ENTRY cl_int CL_API_CALL
707 clGetKernelInfo(cl_kernel ,
711 size_t * ) CL_API_SUFFIX__VERSION_1_0;
713 extern CL_API_ENTRY cl_int CL_API_CALL
714 clGetKernelWorkGroupInfo(cl_kernel ,
716 cl_kernel_work_group_info ,
719 size_t * ) CL_API_SUFFIX__VERSION_1_0;
722 extern CL_API_ENTRY cl_int CL_API_CALL
723 clWaitForEvents(cl_uint ,
724 const cl_event * ) CL_API_SUFFIX__VERSION_1_0;
726 extern CL_API_ENTRY cl_int CL_API_CALL
727 clGetEventInfo(cl_event ,
731 size_t * ) CL_API_SUFFIX__VERSION_1_0;
733 extern CL_API_ENTRY cl_event CL_API_CALL
734 clCreateUserEvent(cl_context ,
735 cl_int * ) CL_API_SUFFIX__VERSION_1_1;
737 extern CL_API_ENTRY cl_int CL_API_CALL
738 clRetainEvent(cl_event ) CL_API_SUFFIX__VERSION_1_0;
740 extern CL_API_ENTRY cl_int CL_API_CALL
741 clReleaseEvent(cl_event ) CL_API_SUFFIX__VERSION_1_0;
743 extern CL_API_ENTRY cl_int CL_API_CALL
744 clSetUserEventStatus(cl_event ,
745 cl_int ) CL_API_SUFFIX__VERSION_1_1;
747 extern CL_API_ENTRY cl_int CL_API_CALL
748 clSetEventCallback( cl_event ,
750 void (CL_CALLBACK * )(cl_event, cl_int,
void *),
751 void * ) CL_API_SUFFIX__VERSION_1_1;
754 extern CL_API_ENTRY cl_int CL_API_CALL
755 clGetEventProfilingInfo(cl_event ,
759 size_t * ) CL_API_SUFFIX__VERSION_1_0;
762 extern CL_API_ENTRY cl_int CL_API_CALL
763 clFlush(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
765 extern CL_API_ENTRY cl_int CL_API_CALL
766 clFinish(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
769 extern CL_API_ENTRY cl_int CL_API_CALL
770 clEnqueueReadBuffer(cl_command_queue ,
778 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
780 extern CL_API_ENTRY cl_int CL_API_CALL
781 clEnqueueReadBufferRect(cl_command_queue ,
794 cl_event * ) CL_API_SUFFIX__VERSION_1_1;
796 extern CL_API_ENTRY cl_int CL_API_CALL
797 clEnqueueWriteBuffer(cl_command_queue ,
805 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
807 extern CL_API_ENTRY cl_int CL_API_CALL
808 clEnqueueWriteBufferRect(cl_command_queue ,
821 cl_event * ) CL_API_SUFFIX__VERSION_1_1;
823 extern CL_API_ENTRY cl_int CL_API_CALL
824 clEnqueueCopyBuffer(cl_command_queue ,
832 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
834 extern CL_API_ENTRY cl_int CL_API_CALL
835 clEnqueueCopyBufferRect(cl_command_queue ,
847 cl_event * ) CL_API_SUFFIX__VERSION_1_1;
849 extern CL_API_ENTRY cl_int CL_API_CALL
850 clEnqueueReadImage(cl_command_queue ,
860 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
862 extern CL_API_ENTRY cl_int CL_API_CALL
863 clEnqueueWriteImage(cl_command_queue ,
873 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
875 extern CL_API_ENTRY cl_int CL_API_CALL
876 clEnqueueCopyImage(cl_command_queue ,
884 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
886 extern CL_API_ENTRY cl_int CL_API_CALL
887 clEnqueueCopyImageToBuffer(cl_command_queue ,
895 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
897 extern CL_API_ENTRY cl_int CL_API_CALL
898 clEnqueueCopyBufferToImage(cl_command_queue ,
906 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
908 extern CL_API_ENTRY
void * CL_API_CALL
909 clEnqueueMapBuffer(cl_command_queue ,
918 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
920 extern CL_API_ENTRY
void * CL_API_CALL
921 clEnqueueMapImage(cl_command_queue ,
932 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
934 extern CL_API_ENTRY cl_int CL_API_CALL
935 clEnqueueUnmapMemObject(cl_command_queue ,
940 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
942 extern CL_API_ENTRY cl_int CL_API_CALL
943 clEnqueueNDRangeKernel(cl_command_queue ,
951 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
953 extern CL_API_ENTRY cl_int CL_API_CALL
954 clEnqueueTask(cl_command_queue ,
958 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
960 extern CL_API_ENTRY cl_int CL_API_CALL
961 clEnqueueNativeKernel(cl_command_queue ,
962 void (CL_CALLBACK *user_func)(
void *),
970 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
972 extern CL_API_ENTRY cl_int CL_API_CALL
973 clEnqueueMarker(cl_command_queue ,
974 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
976 extern CL_API_ENTRY cl_int CL_API_CALL
977 clEnqueueWaitForEvents(cl_command_queue ,
979 const cl_event * ) CL_API_SUFFIX__VERSION_1_0;
981 extern CL_API_ENTRY cl_int CL_API_CALL
982 clEnqueueBarrier(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
991 extern CL_API_ENTRY
void * CL_API_CALL clGetExtensionFunctionAddress(const
char * ) CL_API_SUFFIX__VERSION_1_0;