50 typedef cl_bitfield cl_device_svm_capabilities;
54 typedef intptr_t cl_device_partition_property;
55 typedef cl_bitfield cl_device_affinity_domain;
61 typedef cl_properties cl_queue_properties;
68 typedef cl_bitfield cl_svm_mem_flags;
73 typedef cl_bitfield cl_mem_migration_flags;
77 typedef cl_uint cl_buffer_create_type;
84 typedef intptr_t cl_pipe_properties;
90 typedef cl_uint cl_program_binary_type;
95 typedef cl_uint cl_kernel_arg_info;
96 typedef cl_uint cl_kernel_arg_address_qualifier;
97 typedef cl_uint cl_kernel_arg_access_qualifier;
98 typedef cl_bitfield cl_kernel_arg_type_qualifier;
101 #ifdef CL_VERSION_2_1
107 #ifdef CL_VERSION_2_0
108 typedef cl_properties cl_sampler_properties;
109 typedef cl_uint cl_kernel_exec_info;
111 #ifdef CL_VERSION_3_0
112 typedef cl_bitfield cl_device_atomic_capabilities;
113 typedef cl_bitfield cl_device_device_enqueue_capabilities;
114 typedef cl_uint cl_khronos_vendor_id;
115 typedef cl_properties cl_mem_properties;
124 #ifdef CL_VERSION_1_2
126 typedef struct _cl_image_desc {
127 cl_mem_object_type image_type;
131 size_t image_array_size;
132 size_t image_row_pitch;
133 size_t image_slice_pitch;
136 #ifdef CL_VERSION_2_0
137 #if defined(__GNUC__)
140 #if defined(_MSC_VER) && !defined(__STDC__)
141 #pragma warning( push )
142 #pragma warning( disable : 4201 )
145 #pragma clang diagnostic push
146 #pragma clang diagnostic ignored "-Wc11-extensions"
148 #if defined(_MSC_VER) && defined(__STDC__)
155 #ifdef CL_VERSION_2_0
156 #if defined(_MSC_VER) && defined(__STDC__)
162 #if defined(_MSC_VER) && !defined(__STDC__)
163 #pragma warning( pop )
166 #pragma clang diagnostic pop
173 #ifdef CL_VERSION_1_1
175 typedef struct _cl_buffer_region {
182 #ifdef CL_VERSION_3_0
184 #define CL_NAME_VERSION_MAX_NAME_SIZE 64
186 typedef struct _cl_name_version {
188 char name[CL_NAME_VERSION_MAX_NAME_SIZE];
197 #define CL_DEVICE_NOT_FOUND -1
198 #define CL_DEVICE_NOT_AVAILABLE -2
199 #define CL_COMPILER_NOT_AVAILABLE -3
200 #define CL_MEM_OBJECT_ALLOCATION_FAILURE -4
201 #define CL_OUT_OF_RESOURCES -5
202 #define CL_OUT_OF_HOST_MEMORY -6
203 #define CL_PROFILING_INFO_NOT_AVAILABLE -7
204 #define CL_MEM_COPY_OVERLAP -8
205 #define CL_IMAGE_FORMAT_MISMATCH -9
206 #define CL_IMAGE_FORMAT_NOT_SUPPORTED -10
207 #define CL_BUILD_PROGRAM_FAILURE -11
208 #define CL_MAP_FAILURE -12
209 #ifdef CL_VERSION_1_1
210 #define CL_MISALIGNED_SUB_BUFFER_OFFSET -13
211 #define CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST -14
213 #ifdef CL_VERSION_1_2
214 #define CL_COMPILE_PROGRAM_FAILURE -15
215 #define CL_LINKER_NOT_AVAILABLE -16
216 #define CL_LINK_PROGRAM_FAILURE -17
217 #define CL_DEVICE_PARTITION_FAILED -18
218 #define CL_KERNEL_ARG_INFO_NOT_AVAILABLE -19
221 #define CL_INVALID_VALUE -30
222 #define CL_INVALID_DEVICE_TYPE -31
223 #define CL_INVALID_PLATFORM -32
224 #define CL_INVALID_DEVICE -33
225 #define CL_INVALID_CONTEXT -34
226 #define CL_INVALID_QUEUE_PROPERTIES -35
227 #define CL_INVALID_COMMAND_QUEUE -36
228 #define CL_INVALID_HOST_PTR -37
229 #define CL_INVALID_MEM_OBJECT -38
230 #define CL_INVALID_IMAGE_FORMAT_DESCRIPTOR -39
231 #define CL_INVALID_IMAGE_SIZE -40
232 #define CL_INVALID_SAMPLER -41
233 #define CL_INVALID_BINARY -42
234 #define CL_INVALID_BUILD_OPTIONS -43
235 #define CL_INVALID_PROGRAM -44
236 #define CL_INVALID_PROGRAM_EXECUTABLE -45
237 #define CL_INVALID_KERNEL_NAME -46
238 #define CL_INVALID_KERNEL_DEFINITION -47
239 #define CL_INVALID_KERNEL -48
240 #define CL_INVALID_ARG_INDEX -49
241 #define CL_INVALID_ARG_VALUE -50
242 #define CL_INVALID_ARG_SIZE -51
243 #define CL_INVALID_KERNEL_ARGS -52
244 #define CL_INVALID_WORK_DIMENSION -53
245 #define CL_INVALID_WORK_GROUP_SIZE -54
246 #define CL_INVALID_WORK_ITEM_SIZE -55
247 #define CL_INVALID_GLOBAL_OFFSET -56
248 #define CL_INVALID_EVENT_WAIT_LIST -57
249 #define CL_INVALID_EVENT -58
250 #define CL_INVALID_OPERATION -59
251 #define CL_INVALID_GL_OBJECT -60
252 #define CL_INVALID_BUFFER_SIZE -61
253 #define CL_INVALID_MIP_LEVEL -62
254 #define CL_INVALID_GLOBAL_WORK_SIZE -63
255 #ifdef CL_VERSION_1_1
256 #define CL_INVALID_PROPERTY -64
258 #ifdef CL_VERSION_1_2
259 #define CL_INVALID_IMAGE_DESCRIPTOR -65
260 #define CL_INVALID_COMPILER_OPTIONS -66
261 #define CL_INVALID_LINKER_OPTIONS -67
262 #define CL_INVALID_DEVICE_PARTITION_COUNT -68
264 #ifdef CL_VERSION_2_0
265 #define CL_INVALID_PIPE_SIZE -69
266 #define CL_INVALID_DEVICE_QUEUE -70
268 #ifdef CL_VERSION_2_2
269 #define CL_INVALID_SPEC_ID -71
270 #define CL_MAX_SIZE_RESTRICTION_EXCEEDED -72
277 #ifdef CL_VERSION_1_2
278 #define CL_BLOCKING CL_TRUE
279 #define CL_NON_BLOCKING CL_FALSE
283 #define CL_PLATFORM_PROFILE 0x0900
284 #define CL_PLATFORM_VERSION 0x0901
285 #define CL_PLATFORM_NAME 0x0902
286 #define CL_PLATFORM_VENDOR 0x0903
287 #define CL_PLATFORM_EXTENSIONS 0x0904
288 #ifdef CL_VERSION_2_1
289 #define CL_PLATFORM_HOST_TIMER_RESOLUTION 0x0905
291 #ifdef CL_VERSION_3_0
292 #define CL_PLATFORM_NUMERIC_VERSION 0x0906
293 #define CL_PLATFORM_EXTENSIONS_WITH_VERSION 0x0907
297 #define CL_DEVICE_TYPE_DEFAULT (1 << 0)
298 #define CL_DEVICE_TYPE_CPU (1 << 1)
299 #define CL_DEVICE_TYPE_GPU (1 << 2)
300 #define CL_DEVICE_TYPE_ACCELERATOR (1 << 3)
301 #ifdef CL_VERSION_1_2
302 #define CL_DEVICE_TYPE_CUSTOM (1 << 4)
304 #define CL_DEVICE_TYPE_ALL 0xFFFFFFFF
307 #define CL_DEVICE_TYPE 0x1000
308 #define CL_DEVICE_VENDOR_ID 0x1001
309 #define CL_DEVICE_MAX_COMPUTE_UNITS 0x1002
310 #define CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS 0x1003
311 #define CL_DEVICE_MAX_WORK_GROUP_SIZE 0x1004
312 #define CL_DEVICE_MAX_WORK_ITEM_SIZES 0x1005
313 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR 0x1006
314 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT 0x1007
315 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT 0x1008
316 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG 0x1009
317 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT 0x100A
318 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE 0x100B
319 #define CL_DEVICE_MAX_CLOCK_FREQUENCY 0x100C
320 #define CL_DEVICE_ADDRESS_BITS 0x100D
321 #define CL_DEVICE_MAX_READ_IMAGE_ARGS 0x100E
322 #define CL_DEVICE_MAX_WRITE_IMAGE_ARGS 0x100F
323 #define CL_DEVICE_MAX_MEM_ALLOC_SIZE 0x1010
324 #define CL_DEVICE_IMAGE2D_MAX_WIDTH 0x1011
325 #define CL_DEVICE_IMAGE2D_MAX_HEIGHT 0x1012
326 #define CL_DEVICE_IMAGE3D_MAX_WIDTH 0x1013
327 #define CL_DEVICE_IMAGE3D_MAX_HEIGHT 0x1014
328 #define CL_DEVICE_IMAGE3D_MAX_DEPTH 0x1015
329 #define CL_DEVICE_IMAGE_SUPPORT 0x1016
330 #define CL_DEVICE_MAX_PARAMETER_SIZE 0x1017
331 #define CL_DEVICE_MAX_SAMPLERS 0x1018
332 #define CL_DEVICE_MEM_BASE_ADDR_ALIGN 0x1019
333 #define CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE 0x101A
334 #define CL_DEVICE_SINGLE_FP_CONFIG 0x101B
335 #define CL_DEVICE_GLOBAL_MEM_CACHE_TYPE 0x101C
336 #define CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE 0x101D
337 #define CL_DEVICE_GLOBAL_MEM_CACHE_SIZE 0x101E
338 #define CL_DEVICE_GLOBAL_MEM_SIZE 0x101F
339 #define CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE 0x1020
340 #define CL_DEVICE_MAX_CONSTANT_ARGS 0x1021
341 #define CL_DEVICE_LOCAL_MEM_TYPE 0x1022
342 #define CL_DEVICE_LOCAL_MEM_SIZE 0x1023
343 #define CL_DEVICE_ERROR_CORRECTION_SUPPORT 0x1024
344 #define CL_DEVICE_PROFILING_TIMER_RESOLUTION 0x1025
345 #define CL_DEVICE_ENDIAN_LITTLE 0x1026
346 #define CL_DEVICE_AVAILABLE 0x1027
347 #define CL_DEVICE_COMPILER_AVAILABLE 0x1028
348 #define CL_DEVICE_EXECUTION_CAPABILITIES 0x1029
349 #define CL_DEVICE_QUEUE_PROPERTIES 0x102A
350 #ifdef CL_VERSION_2_0
351 #define CL_DEVICE_QUEUE_ON_HOST_PROPERTIES 0x102A
353 #define CL_DEVICE_NAME 0x102B
354 #define CL_DEVICE_VENDOR 0x102C
355 #define CL_DRIVER_VERSION 0x102D
356 #define CL_DEVICE_PROFILE 0x102E
357 #define CL_DEVICE_VERSION 0x102F
358 #define CL_DEVICE_EXTENSIONS 0x1030
359 #define CL_DEVICE_PLATFORM 0x1031
360 #ifdef CL_VERSION_1_2
361 #define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
364 #ifdef CL_VERSION_1_1
365 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF 0x1034
366 #define CL_DEVICE_HOST_UNIFIED_MEMORY 0x1035
367 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR 0x1036
368 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT 0x1037
369 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_INT 0x1038
370 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG 0x1039
371 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT 0x103A
372 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE 0x103B
373 #define CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF 0x103C
374 #define CL_DEVICE_OPENCL_C_VERSION 0x103D
376 #ifdef CL_VERSION_1_2
377 #define CL_DEVICE_LINKER_AVAILABLE 0x103E
378 #define CL_DEVICE_BUILT_IN_KERNELS 0x103F
379 #define CL_DEVICE_IMAGE_MAX_BUFFER_SIZE 0x1040
380 #define CL_DEVICE_IMAGE_MAX_ARRAY_SIZE 0x1041
381 #define CL_DEVICE_PARENT_DEVICE 0x1042
382 #define CL_DEVICE_PARTITION_MAX_SUB_DEVICES 0x1043
383 #define CL_DEVICE_PARTITION_PROPERTIES 0x1044
384 #define CL_DEVICE_PARTITION_AFFINITY_DOMAIN 0x1045
385 #define CL_DEVICE_PARTITION_TYPE 0x1046
386 #define CL_DEVICE_REFERENCE_COUNT 0x1047
387 #define CL_DEVICE_PREFERRED_INTEROP_USER_SYNC 0x1048
388 #define CL_DEVICE_PRINTF_BUFFER_SIZE 0x1049
390 #ifdef CL_VERSION_2_0
391 #define CL_DEVICE_IMAGE_PITCH_ALIGNMENT 0x104A
392 #define CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT 0x104B
393 #define CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS 0x104C
394 #define CL_DEVICE_MAX_GLOBAL_VARIABLE_SIZE 0x104D
395 #define CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES 0x104E
396 #define CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE 0x104F
397 #define CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE 0x1050
398 #define CL_DEVICE_MAX_ON_DEVICE_QUEUES 0x1051
399 #define CL_DEVICE_MAX_ON_DEVICE_EVENTS 0x1052
400 #define CL_DEVICE_SVM_CAPABILITIES 0x1053
401 #define CL_DEVICE_GLOBAL_VARIABLE_PREFERRED_TOTAL_SIZE 0x1054
402 #define CL_DEVICE_MAX_PIPE_ARGS 0x1055
403 #define CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS 0x1056
404 #define CL_DEVICE_PIPE_MAX_PACKET_SIZE 0x1057
405 #define CL_DEVICE_PREFERRED_PLATFORM_ATOMIC_ALIGNMENT 0x1058
406 #define CL_DEVICE_PREFERRED_GLOBAL_ATOMIC_ALIGNMENT 0x1059
407 #define CL_DEVICE_PREFERRED_LOCAL_ATOMIC_ALIGNMENT 0x105A
409 #ifdef CL_VERSION_2_1
410 #define CL_DEVICE_IL_VERSION 0x105B
411 #define CL_DEVICE_MAX_NUM_SUB_GROUPS 0x105C
412 #define CL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS 0x105D
414 #ifdef CL_VERSION_3_0
415 #define CL_DEVICE_NUMERIC_VERSION 0x105E
416 #define CL_DEVICE_EXTENSIONS_WITH_VERSION 0x1060
417 #define CL_DEVICE_ILS_WITH_VERSION 0x1061
418 #define CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION 0x1062
419 #define CL_DEVICE_ATOMIC_MEMORY_CAPABILITIES 0x1063
420 #define CL_DEVICE_ATOMIC_FENCE_CAPABILITIES 0x1064
421 #define CL_DEVICE_NON_UNIFORM_WORK_GROUP_SUPPORT 0x1065
422 #define CL_DEVICE_OPENCL_C_ALL_VERSIONS 0x1066
423 #define CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_MULTIPLE 0x1067
424 #define CL_DEVICE_WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT 0x1068
425 #define CL_DEVICE_GENERIC_ADDRESS_SPACE_SUPPORT 0x1069
427 #define CL_DEVICE_OPENCL_C_FEATURES 0x106F
428 #define CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES 0x1070
429 #define CL_DEVICE_PIPE_SUPPORT 0x1071
430 #define CL_DEVICE_LATEST_CONFORMANCE_VERSION_PASSED 0x1072
434 #define CL_FP_DENORM (1 << 0)
435 #define CL_FP_INF_NAN (1 << 1)
436 #define CL_FP_ROUND_TO_NEAREST (1 << 2)
437 #define CL_FP_ROUND_TO_ZERO (1 << 3)
438 #define CL_FP_ROUND_TO_INF (1 << 4)
439 #define CL_FP_FMA (1 << 5)
440 #ifdef CL_VERSION_1_1
441 #define CL_FP_SOFT_FLOAT (1 << 6)
443 #ifdef CL_VERSION_1_2
444 #define CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT (1 << 7)
449 #define CL_READ_ONLY_CACHE 0x1
450 #define CL_READ_WRITE_CACHE 0x2
454 #define CL_GLOBAL 0x2
457 #define CL_EXEC_KERNEL (1 << 0)
458 #define CL_EXEC_NATIVE_KERNEL (1 << 1)
461 #define CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE (1 << 0)
462 #define CL_QUEUE_PROFILING_ENABLE (1 << 1)
463 #ifdef CL_VERSION_2_0
464 #define CL_QUEUE_ON_DEVICE (1 << 2)
465 #define CL_QUEUE_ON_DEVICE_DEFAULT (1 << 3)
469 #define CL_CONTEXT_REFERENCE_COUNT 0x1080
470 #define CL_CONTEXT_DEVICES 0x1081
471 #define CL_CONTEXT_PROPERTIES 0x1082
472 #ifdef CL_VERSION_1_1
473 #define CL_CONTEXT_NUM_DEVICES 0x1083
477 #define CL_CONTEXT_PLATFORM 0x1084
478 #ifdef CL_VERSION_1_2
479 #define CL_CONTEXT_INTEROP_USER_SYNC 0x1085
482 #ifdef CL_VERSION_1_2
485 #define CL_DEVICE_PARTITION_EQUALLY 0x1086
486 #define CL_DEVICE_PARTITION_BY_COUNTS 0x1087
487 #define CL_DEVICE_PARTITION_BY_COUNTS_LIST_END 0x0
488 #define CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN 0x1088
492 #ifdef CL_VERSION_1_2
495 #define CL_DEVICE_AFFINITY_DOMAIN_NUMA (1 << 0)
496 #define CL_DEVICE_AFFINITY_DOMAIN_L4_CACHE (1 << 1)
497 #define CL_DEVICE_AFFINITY_DOMAIN_L3_CACHE (1 << 2)
498 #define CL_DEVICE_AFFINITY_DOMAIN_L2_CACHE (1 << 3)
499 #define CL_DEVICE_AFFINITY_DOMAIN_L1_CACHE (1 << 4)
500 #define CL_DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE (1 << 5)
504 #ifdef CL_VERSION_2_0
507 #define CL_DEVICE_SVM_COARSE_GRAIN_BUFFER (1 << 0)
508 #define CL_DEVICE_SVM_FINE_GRAIN_BUFFER (1 << 1)
509 #define CL_DEVICE_SVM_FINE_GRAIN_SYSTEM (1 << 2)
510 #define CL_DEVICE_SVM_ATOMICS (1 << 3)
515 #define CL_QUEUE_CONTEXT 0x1090
516 #define CL_QUEUE_DEVICE 0x1091
517 #define CL_QUEUE_REFERENCE_COUNT 0x1092
518 #define CL_QUEUE_PROPERTIES 0x1093
519 #ifdef CL_VERSION_2_0
520 #define CL_QUEUE_SIZE 0x1094
522 #ifdef CL_VERSION_2_1
523 #define CL_QUEUE_DEVICE_DEFAULT 0x1095
525 #ifdef CL_VERSION_3_0
526 #define CL_QUEUE_PROPERTIES_ARRAY 0x1098
530 #define CL_MEM_READ_WRITE (1 << 0)
531 #define CL_MEM_WRITE_ONLY (1 << 1)
532 #define CL_MEM_READ_ONLY (1 << 2)
533 #define CL_MEM_USE_HOST_PTR (1 << 3)
534 #define CL_MEM_ALLOC_HOST_PTR (1 << 4)
535 #define CL_MEM_COPY_HOST_PTR (1 << 5)
537 #ifdef CL_VERSION_1_2
538 #define CL_MEM_HOST_WRITE_ONLY (1 << 7)
539 #define CL_MEM_HOST_READ_ONLY (1 << 8)
540 #define CL_MEM_HOST_NO_ACCESS (1 << 9)
542 #ifdef CL_VERSION_2_0
543 #define CL_MEM_SVM_FINE_GRAIN_BUFFER (1 << 10)
544 #define CL_MEM_SVM_ATOMICS (1 << 11)
545 #define CL_MEM_KERNEL_READ_AND_WRITE (1 << 12)
548 #ifdef CL_VERSION_1_2
551 #define CL_MIGRATE_MEM_OBJECT_HOST (1 << 0)
552 #define CL_MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED (1 << 1)
561 #define CL_RGB 0x10B4
562 #define CL_RGBA 0x10B5
563 #define CL_BGRA 0x10B6
564 #define CL_ARGB 0x10B7
565 #define CL_INTENSITY 0x10B8
566 #define CL_LUMINANCE 0x10B9
567 #ifdef CL_VERSION_1_1
569 #define CL_RGx 0x10BB
570 #define CL_RGBx 0x10BC
572 #ifdef CL_VERSION_1_2
573 #define CL_DEPTH 0x10BD
574 #define CL_DEPTH_STENCIL 0x10BE
576 #ifdef CL_VERSION_2_0
577 #define CL_sRGB 0x10BF
578 #define CL_sRGBx 0x10C0
579 #define CL_sRGBA 0x10C1
580 #define CL_sBGRA 0x10C2
581 #define CL_ABGR 0x10C3
585 #define CL_SNORM_INT8 0x10D0
586 #define CL_SNORM_INT16 0x10D1
587 #define CL_UNORM_INT8 0x10D2
588 #define CL_UNORM_INT16 0x10D3
589 #define CL_UNORM_SHORT_565 0x10D4
590 #define CL_UNORM_SHORT_555 0x10D5
591 #define CL_UNORM_INT_101010 0x10D6
592 #define CL_SIGNED_INT8 0x10D7
593 #define CL_SIGNED_INT16 0x10D8
594 #define CL_SIGNED_INT32 0x10D9
595 #define CL_UNSIGNED_INT8 0x10DA
596 #define CL_UNSIGNED_INT16 0x10DB
597 #define CL_UNSIGNED_INT32 0x10DC
598 #define CL_HALF_FLOAT 0x10DD
599 #define CL_FLOAT 0x10DE
600 #ifdef CL_VERSION_1_2
601 #define CL_UNORM_INT24 0x10DF
603 #ifdef CL_VERSION_2_1
604 #define CL_UNORM_INT_101010_2 0x10E0
608 #define CL_MEM_OBJECT_BUFFER 0x10F0
609 #define CL_MEM_OBJECT_IMAGE2D 0x10F1
610 #define CL_MEM_OBJECT_IMAGE3D 0x10F2
611 #ifdef CL_VERSION_1_2
612 #define CL_MEM_OBJECT_IMAGE2D_ARRAY 0x10F3
613 #define CL_MEM_OBJECT_IMAGE1D 0x10F4
614 #define CL_MEM_OBJECT_IMAGE1D_ARRAY 0x10F5
615 #define CL_MEM_OBJECT_IMAGE1D_BUFFER 0x10F6
617 #ifdef CL_VERSION_2_0
618 #define CL_MEM_OBJECT_PIPE 0x10F7
622 #define CL_MEM_TYPE 0x1100
623 #define CL_MEM_FLAGS 0x1101
624 #define CL_MEM_SIZE 0x1102
625 #define CL_MEM_HOST_PTR 0x1103
626 #define CL_MEM_MAP_COUNT 0x1104
627 #define CL_MEM_REFERENCE_COUNT 0x1105
628 #define CL_MEM_CONTEXT 0x1106
629 #ifdef CL_VERSION_1_1
630 #define CL_MEM_ASSOCIATED_MEMOBJECT 0x1107
631 #define CL_MEM_OFFSET 0x1108
633 #ifdef CL_VERSION_2_0
634 #define CL_MEM_USES_SVM_POINTER 0x1109
636 #ifdef CL_VERSION_3_0
637 #define CL_MEM_PROPERTIES 0x110A
641 #define CL_IMAGE_FORMAT 0x1110
642 #define CL_IMAGE_ELEMENT_SIZE 0x1111
643 #define CL_IMAGE_ROW_PITCH 0x1112
644 #define CL_IMAGE_SLICE_PITCH 0x1113
645 #define CL_IMAGE_WIDTH 0x1114
646 #define CL_IMAGE_HEIGHT 0x1115
647 #define CL_IMAGE_DEPTH 0x1116
648 #ifdef CL_VERSION_1_2
649 #define CL_IMAGE_ARRAY_SIZE 0x1117
650 #define CL_IMAGE_BUFFER 0x1118
651 #define CL_IMAGE_NUM_MIP_LEVELS 0x1119
652 #define CL_IMAGE_NUM_SAMPLES 0x111A
657 #ifdef CL_VERSION_2_0
658 #define CL_PIPE_PACKET_SIZE 0x1120
659 #define CL_PIPE_MAX_PACKETS 0x1121
661 #ifdef CL_VERSION_3_0
662 #define CL_PIPE_PROPERTIES 0x1122
666 #define CL_ADDRESS_NONE 0x1130
667 #define CL_ADDRESS_CLAMP_TO_EDGE 0x1131
668 #define CL_ADDRESS_CLAMP 0x1132
669 #define CL_ADDRESS_REPEAT 0x1133
670 #ifdef CL_VERSION_1_1
671 #define CL_ADDRESS_MIRRORED_REPEAT 0x1134
675 #define CL_FILTER_NEAREST 0x1140
676 #define CL_FILTER_LINEAR 0x1141
679 #define CL_SAMPLER_REFERENCE_COUNT 0x1150
680 #define CL_SAMPLER_CONTEXT 0x1151
681 #define CL_SAMPLER_NORMALIZED_COORDS 0x1152
682 #define CL_SAMPLER_ADDRESSING_MODE 0x1153
683 #define CL_SAMPLER_FILTER_MODE 0x1154
684 #ifdef CL_VERSION_2_0
688 #define CL_SAMPLER_MIP_FILTER_MODE 0x1155
689 #define CL_SAMPLER_LOD_MIN 0x1156
690 #define CL_SAMPLER_LOD_MAX 0x1157
692 #ifdef CL_VERSION_3_0
693 #define CL_SAMPLER_PROPERTIES 0x1158
697 #define CL_MAP_READ (1 << 0)
698 #define CL_MAP_WRITE (1 << 1)
699 #ifdef CL_VERSION_1_2
700 #define CL_MAP_WRITE_INVALIDATE_REGION (1 << 2)
704 #define CL_PROGRAM_REFERENCE_COUNT 0x1160
705 #define CL_PROGRAM_CONTEXT 0x1161
706 #define CL_PROGRAM_NUM_DEVICES 0x1162
707 #define CL_PROGRAM_DEVICES 0x1163
708 #define CL_PROGRAM_SOURCE 0x1164
709 #define CL_PROGRAM_BINARY_SIZES 0x1165
710 #define CL_PROGRAM_BINARIES 0x1166
711 #ifdef CL_VERSION_1_2
712 #define CL_PROGRAM_NUM_KERNELS 0x1167
713 #define CL_PROGRAM_KERNEL_NAMES 0x1168
715 #ifdef CL_VERSION_2_1
716 #define CL_PROGRAM_IL 0x1169
718 #ifdef CL_VERSION_2_2
719 #define CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT 0x116A
720 #define CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT 0x116B
724 #define CL_PROGRAM_BUILD_STATUS 0x1181
725 #define CL_PROGRAM_BUILD_OPTIONS 0x1182
726 #define CL_PROGRAM_BUILD_LOG 0x1183
727 #ifdef CL_VERSION_1_2
728 #define CL_PROGRAM_BINARY_TYPE 0x1184
730 #ifdef CL_VERSION_2_0
731 #define CL_PROGRAM_BUILD_GLOBAL_VARIABLE_TOTAL_SIZE 0x1185
734 #ifdef CL_VERSION_1_2
737 #define CL_PROGRAM_BINARY_TYPE_NONE 0x0
738 #define CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT 0x1
739 #define CL_PROGRAM_BINARY_TYPE_LIBRARY 0x2
740 #define CL_PROGRAM_BINARY_TYPE_EXECUTABLE 0x4
745 #define CL_BUILD_SUCCESS 0
746 #define CL_BUILD_NONE -1
747 #define CL_BUILD_ERROR -2
748 #define CL_BUILD_IN_PROGRESS -3
751 #define CL_KERNEL_FUNCTION_NAME 0x1190
752 #define CL_KERNEL_NUM_ARGS 0x1191
753 #define CL_KERNEL_REFERENCE_COUNT 0x1192
754 #define CL_KERNEL_CONTEXT 0x1193
755 #define CL_KERNEL_PROGRAM 0x1194
756 #ifdef CL_VERSION_1_2
757 #define CL_KERNEL_ATTRIBUTES 0x1195
760 #ifdef CL_VERSION_1_2
763 #define CL_KERNEL_ARG_ADDRESS_QUALIFIER 0x1196
764 #define CL_KERNEL_ARG_ACCESS_QUALIFIER 0x1197
765 #define CL_KERNEL_ARG_TYPE_NAME 0x1198
766 #define CL_KERNEL_ARG_TYPE_QUALIFIER 0x1199
767 #define CL_KERNEL_ARG_NAME 0x119A
771 #ifdef CL_VERSION_1_2
774 #define CL_KERNEL_ARG_ADDRESS_GLOBAL 0x119B
775 #define CL_KERNEL_ARG_ADDRESS_LOCAL 0x119C
776 #define CL_KERNEL_ARG_ADDRESS_CONSTANT 0x119D
777 #define CL_KERNEL_ARG_ADDRESS_PRIVATE 0x119E
781 #ifdef CL_VERSION_1_2
784 #define CL_KERNEL_ARG_ACCESS_READ_ONLY 0x11A0
785 #define CL_KERNEL_ARG_ACCESS_WRITE_ONLY 0x11A1
786 #define CL_KERNEL_ARG_ACCESS_READ_WRITE 0x11A2
787 #define CL_KERNEL_ARG_ACCESS_NONE 0x11A3
791 #ifdef CL_VERSION_1_2
794 #define CL_KERNEL_ARG_TYPE_NONE 0
795 #define CL_KERNEL_ARG_TYPE_CONST (1 << 0)
796 #define CL_KERNEL_ARG_TYPE_RESTRICT (1 << 1)
797 #define CL_KERNEL_ARG_TYPE_VOLATILE (1 << 2)
798 #ifdef CL_VERSION_2_0
799 #define CL_KERNEL_ARG_TYPE_PIPE (1 << 3)
805 #define CL_KERNEL_WORK_GROUP_SIZE 0x11B0
806 #define CL_KERNEL_COMPILE_WORK_GROUP_SIZE 0x11B1
807 #define CL_KERNEL_LOCAL_MEM_SIZE 0x11B2
808 #define CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE 0x11B3
809 #define CL_KERNEL_PRIVATE_MEM_SIZE 0x11B4
810 #ifdef CL_VERSION_1_2
811 #define CL_KERNEL_GLOBAL_WORK_SIZE 0x11B5
814 #ifdef CL_VERSION_2_1
817 #define CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE 0x2033
818 #define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE 0x2034
819 #define CL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT 0x11B8
820 #define CL_KERNEL_MAX_NUM_SUB_GROUPS 0x11B9
821 #define CL_KERNEL_COMPILE_NUM_SUB_GROUPS 0x11BA
825 #ifdef CL_VERSION_2_0
828 #define CL_KERNEL_EXEC_INFO_SVM_PTRS 0x11B6
829 #define CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM 0x11B7
834 #define CL_EVENT_COMMAND_QUEUE 0x11D0
835 #define CL_EVENT_COMMAND_TYPE 0x11D1
836 #define CL_EVENT_REFERENCE_COUNT 0x11D2
837 #define CL_EVENT_COMMAND_EXECUTION_STATUS 0x11D3
838 #ifdef CL_VERSION_1_1
839 #define CL_EVENT_CONTEXT 0x11D4
843 #define CL_COMMAND_NDRANGE_KERNEL 0x11F0
844 #define CL_COMMAND_TASK 0x11F1
845 #define CL_COMMAND_NATIVE_KERNEL 0x11F2
846 #define CL_COMMAND_READ_BUFFER 0x11F3
847 #define CL_COMMAND_WRITE_BUFFER 0x11F4
848 #define CL_COMMAND_COPY_BUFFER 0x11F5
849 #define CL_COMMAND_READ_IMAGE 0x11F6
850 #define CL_COMMAND_WRITE_IMAGE 0x11F7
851 #define CL_COMMAND_COPY_IMAGE 0x11F8
852 #define CL_COMMAND_COPY_IMAGE_TO_BUFFER 0x11F9
853 #define CL_COMMAND_COPY_BUFFER_TO_IMAGE 0x11FA
854 #define CL_COMMAND_MAP_BUFFER 0x11FB
855 #define CL_COMMAND_MAP_IMAGE 0x11FC
856 #define CL_COMMAND_UNMAP_MEM_OBJECT 0x11FD
857 #define CL_COMMAND_MARKER 0x11FE
858 #define CL_COMMAND_ACQUIRE_GL_OBJECTS 0x11FF
859 #define CL_COMMAND_RELEASE_GL_OBJECTS 0x1200
860 #ifdef CL_VERSION_1_1
861 #define CL_COMMAND_READ_BUFFER_RECT 0x1201
862 #define CL_COMMAND_WRITE_BUFFER_RECT 0x1202
863 #define CL_COMMAND_COPY_BUFFER_RECT 0x1203
864 #define CL_COMMAND_USER 0x1204
866 #ifdef CL_VERSION_1_2
867 #define CL_COMMAND_BARRIER 0x1205
868 #define CL_COMMAND_MIGRATE_MEM_OBJECTS 0x1206
869 #define CL_COMMAND_FILL_BUFFER 0x1207
870 #define CL_COMMAND_FILL_IMAGE 0x1208
872 #ifdef CL_VERSION_2_0
873 #define CL_COMMAND_SVM_FREE 0x1209
874 #define CL_COMMAND_SVM_MEMCPY 0x120A
875 #define CL_COMMAND_SVM_MEMFILL 0x120B
876 #define CL_COMMAND_SVM_MAP 0x120C
877 #define CL_COMMAND_SVM_UNMAP 0x120D
879 #ifdef CL_VERSION_3_0
880 #define CL_COMMAND_SVM_MIGRATE_MEM 0x120E
884 #define CL_COMPLETE 0x0
885 #define CL_RUNNING 0x1
886 #define CL_SUBMITTED 0x2
887 #define CL_QUEUED 0x3
890 #ifdef CL_VERSION_1_1
891 #define CL_BUFFER_CREATE_TYPE_REGION 0x1220
895 #define CL_PROFILING_COMMAND_QUEUED 0x1280
896 #define CL_PROFILING_COMMAND_SUBMIT 0x1281
897 #define CL_PROFILING_COMMAND_START 0x1282
898 #define CL_PROFILING_COMMAND_END 0x1283
899 #ifdef CL_VERSION_2_0
900 #define CL_PROFILING_COMMAND_COMPLETE 0x1284
904 #ifdef CL_VERSION_3_0
905 #define CL_DEVICE_ATOMIC_ORDER_RELAXED (1 << 0)
906 #define CL_DEVICE_ATOMIC_ORDER_ACQ_REL (1 << 1)
907 #define CL_DEVICE_ATOMIC_ORDER_SEQ_CST (1 << 2)
908 #define CL_DEVICE_ATOMIC_SCOPE_WORK_ITEM (1 << 3)
909 #define CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP (1 << 4)
910 #define CL_DEVICE_ATOMIC_SCOPE_DEVICE (1 << 5)
911 #define CL_DEVICE_ATOMIC_SCOPE_ALL_DEVICES (1 << 6)
915 #ifdef CL_VERSION_3_0
916 #define CL_DEVICE_QUEUE_SUPPORTED (1 << 0)
917 #define CL_DEVICE_QUEUE_REPLACEABLE_DEFAULT (1 << 1)
921 #define CL_KHRONOS_VENDOR_ID_CODEPLAY 0x10004
923 #ifdef CL_VERSION_3_0
926 #define CL_VERSION_MAJOR_BITS (10)
927 #define CL_VERSION_MINOR_BITS (10)
928 #define CL_VERSION_PATCH_BITS (12)
930 #define CL_VERSION_MAJOR_MASK ((1 << CL_VERSION_MAJOR_BITS) - 1)
931 #define CL_VERSION_MINOR_MASK ((1 << CL_VERSION_MINOR_BITS) - 1)
932 #define CL_VERSION_PATCH_MASK ((1 << CL_VERSION_PATCH_BITS) - 1)
934 #define CL_VERSION_MAJOR(version) \
935 ((version) >> (CL_VERSION_MINOR_BITS + CL_VERSION_PATCH_BITS))
937 #define CL_VERSION_MINOR(version) \
938 (((version) >> CL_VERSION_PATCH_BITS) & CL_VERSION_MINOR_MASK)
940 #define CL_VERSION_PATCH(version) ((version) & CL_VERSION_PATCH_MASK)
942 #define CL_MAKE_VERSION(major, minor, patch) \
943 ((((major) & CL_VERSION_MAJOR_MASK) \
944 << (CL_VERSION_MINOR_BITS + CL_VERSION_PATCH_BITS)) | \
945 (((minor) & CL_VERSION_MINOR_MASK) << CL_VERSION_PATCH_BITS) | \
946 ((patch) & CL_VERSION_PATCH_MASK))
955 cl_platform_id * platforms,
960 cl_platform_info param_name,
961 size_t param_value_size,
968 cl_device_type device_type,
970 cl_device_id * devices,
975 cl_device_info param_name,
976 size_t param_value_size,
980 #ifdef CL_VERSION_1_2
983 clCreateSubDevices(cl_device_id in_device,
984 const cl_device_partition_property * properties,
986 cl_device_id * out_devices,
997 #ifdef CL_VERSION_2_1
1000 clSetDefaultDeviceCommandQueue(cl_context context,
1001 cl_device_id device,
1005 clGetDeviceAndHostTimer(cl_device_id device,
1010 clGetHostTimer(cl_device_id device,
1019 const cl_device_id * devices,
1020 void (
CL_CALLBACK * pfn_notify)(
const char * errinfo,
1021 const void * private_info,
1029 cl_device_type device_type,
1030 void (
CL_CALLBACK * pfn_notify)(
const char * errinfo,
1031 const void * private_info,
1045 cl_context_info param_name,
1046 size_t param_value_size,
1050 #ifdef CL_VERSION_3_0
1053 clSetContextDestructorCallback(cl_context context,
1054 void (
CL_CALLBACK* pfn_notify)(cl_context context,
1062 #ifdef CL_VERSION_2_0
1065 clCreateCommandQueueWithProperties(cl_context context,
1066 cl_device_id device,
1067 const cl_queue_properties * properties,
1080 cl_command_queue_info param_name,
1081 size_t param_value_size,
1093 #ifdef CL_VERSION_1_1
1096 clCreateSubBuffer(cl_mem
buffer,
1098 cl_buffer_create_type buffer_create_type,
1099 const void * buffer_create_info,
1104 #ifdef CL_VERSION_1_2
1107 clCreateImage(cl_context context,
1110 const cl_image_desc * image_desc,
1116 #ifdef CL_VERSION_2_0
1119 clCreatePipe(cl_context context,
1123 const cl_pipe_properties * properties,
1128 #ifdef CL_VERSION_3_0
1131 clCreateBufferWithProperties(cl_context context,
1132 const cl_mem_properties * properties,
1139 clCreateImageWithProperties(cl_context context,
1140 const cl_mem_properties * properties,
1143 const cl_image_desc * image_desc,
1158 cl_mem_object_type image_type,
1165 cl_mem_info param_name,
1166 size_t param_value_size,
1172 cl_image_info param_name,
1173 size_t param_value_size,
1177 #ifdef CL_VERSION_2_0
1180 clGetPipeInfo(cl_mem pipe,
1181 cl_pipe_info param_name,
1182 size_t param_value_size,
1188 #ifdef CL_VERSION_1_1
1191 clSetMemObjectDestructorCallback(cl_mem memobj,
1200 #ifdef CL_VERSION_2_0
1203 clSVMAlloc(cl_context context,
1204 cl_svm_mem_flags
flags,
1209 clSVMFree(cl_context context,
1216 #ifdef CL_VERSION_2_0
1219 clCreateSamplerWithProperties(cl_context context,
1220 const cl_sampler_properties * sampler_properties,
1233 cl_sampler_info param_name,
1234 size_t param_value_size,
1249 const cl_device_id * device_list,
1251 const unsigned char ** binaries,
1255 #ifdef CL_VERSION_1_2
1258 clCreateProgramWithBuiltInKernels(cl_context context,
1260 const cl_device_id * device_list,
1261 const char * kernel_names,
1266 #ifdef CL_VERSION_2_1
1269 clCreateProgramWithIL(cl_context context,
1285 const cl_device_id * device_list,
1286 const char * options,
1287 void (
CL_CALLBACK * pfn_notify)(cl_program program,
1291 #ifdef CL_VERSION_1_2
1294 clCompileProgram(cl_program program,
1296 const cl_device_id * device_list,
1297 const char * options,
1299 const cl_program * input_headers,
1300 const char ** header_include_names,
1301 void (
CL_CALLBACK * pfn_notify)(cl_program program,
1306 clLinkProgram(cl_context context,
1308 const cl_device_id * device_list,
1309 const char * options,
1311 const cl_program * input_programs,
1312 void (
CL_CALLBACK * pfn_notify)(cl_program program,
1319 #ifdef CL_VERSION_2_2
1322 clSetProgramReleaseCallback(cl_program program,
1323 void (
CL_CALLBACK * pfn_notify)(cl_program program,
1328 clSetProgramSpecializationConstant(cl_program program,
1335 #ifdef CL_VERSION_1_2
1344 cl_program_info param_name,
1345 size_t param_value_size,
1351 cl_device_id device,
1352 cl_program_build_info param_name,
1353 size_t param_value_size,
1360 const char * kernel_name,
1366 cl_kernel * kernels,
1369 #ifdef CL_VERSION_2_1
1372 clCloneKernel(cl_kernel source_kernel,
1389 #ifdef CL_VERSION_2_0
1392 clSetKernelArgSVMPointer(cl_kernel kernel,
1397 clSetKernelExecInfo(cl_kernel kernel,
1398 cl_kernel_exec_info param_name,
1399 size_t param_value_size,
1406 cl_kernel_info param_name,
1407 size_t param_value_size,
1411 #ifdef CL_VERSION_1_2
1414 clGetKernelArgInfo(cl_kernel kernel,
1416 cl_kernel_arg_info param_name,
1417 size_t param_value_size,
1425 cl_device_id device,
1426 cl_kernel_work_group_info param_name,
1427 size_t param_value_size,
1431 #ifdef CL_VERSION_2_1
1434 clGetKernelSubGroupInfo(cl_kernel kernel,
1435 cl_device_id device,
1436 cl_kernel_sub_group_info param_name,
1437 size_t input_value_size,
1438 const void* input_value,
1439 size_t param_value_size,
1452 cl_event_info param_name,
1453 size_t param_value_size,
1457 #ifdef CL_VERSION_1_1
1460 clCreateUserEvent(cl_context context,
1471 #ifdef CL_VERSION_1_1
1474 clSetUserEventStatus(cl_event
event,
1478 clSetEventCallback(cl_event
event,
1479 cl_int command_exec_callback_type,
1481 cl_int event_command_status,
1490 cl_profiling_info param_name,
1491 size_t param_value_size,
1506 cl_bool blocking_read,
1510 cl_uint num_events_in_wait_list,
1511 const cl_event * event_wait_list,
1514 #ifdef CL_VERSION_1_1
1517 clEnqueueReadBufferRect(cl_command_queue command_queue,
1519 cl_bool blocking_read,
1520 const size_t * buffer_origin,
1521 const size_t * host_origin,
1522 const size_t * region,
1523 size_t buffer_row_pitch,
1524 size_t buffer_slice_pitch,
1525 size_t host_row_pitch,
1526 size_t host_slice_pitch,
1528 cl_uint num_events_in_wait_list,
1529 const cl_event * event_wait_list,
1537 cl_bool blocking_write,
1541 cl_uint num_events_in_wait_list,
1542 const cl_event * event_wait_list,
1545 #ifdef CL_VERSION_1_1
1548 clEnqueueWriteBufferRect(cl_command_queue command_queue,
1550 cl_bool blocking_write,
1551 const size_t * buffer_origin,
1552 const size_t * host_origin,
1553 const size_t * region,
1554 size_t buffer_row_pitch,
1555 size_t buffer_slice_pitch,
1556 size_t host_row_pitch,
1557 size_t host_slice_pitch,
1559 cl_uint num_events_in_wait_list,
1560 const cl_event * event_wait_list,
1565 #ifdef CL_VERSION_1_2
1568 clEnqueueFillBuffer(cl_command_queue command_queue,
1571 size_t pattern_size,
1574 cl_uint num_events_in_wait_list,
1575 const cl_event * event_wait_list,
1587 cl_uint num_events_in_wait_list,
1588 const cl_event * event_wait_list,
1591 #ifdef CL_VERSION_1_1
1594 clEnqueueCopyBufferRect(cl_command_queue command_queue,
1597 const size_t * src_origin,
1598 const size_t * dst_origin,
1599 const size_t * region,
1600 size_t src_row_pitch,
1601 size_t src_slice_pitch,
1602 size_t dst_row_pitch,
1603 size_t dst_slice_pitch,
1604 cl_uint num_events_in_wait_list,
1605 const cl_event * event_wait_list,
1613 cl_bool blocking_read,
1614 const size_t * origin,
1615 const size_t * region,
1619 cl_uint num_events_in_wait_list,
1620 const cl_event * event_wait_list,
1626 cl_bool blocking_write,
1627 const size_t * origin,
1628 const size_t * region,
1629 size_t input_row_pitch,
1630 size_t input_slice_pitch,
1632 cl_uint num_events_in_wait_list,
1633 const cl_event * event_wait_list,
1636 #ifdef CL_VERSION_1_2
1639 clEnqueueFillImage(cl_command_queue command_queue,
1641 const void * fill_color,
1642 const size_t * origin,
1643 const size_t * region,
1644 cl_uint num_events_in_wait_list,
1645 const cl_event * event_wait_list,
1654 const size_t * src_origin,
1655 const size_t * dst_origin,
1656 const size_t * region,
1657 cl_uint num_events_in_wait_list,
1658 const cl_event * event_wait_list,
1665 const size_t * src_origin,
1666 const size_t * region,
1668 cl_uint num_events_in_wait_list,
1669 const cl_event * event_wait_list,
1677 const size_t * dst_origin,
1678 const size_t * region,
1679 cl_uint num_events_in_wait_list,
1680 const cl_event * event_wait_list,
1686 cl_bool blocking_map,
1687 cl_map_flags map_flags,
1690 cl_uint num_events_in_wait_list,
1691 const cl_event * event_wait_list,
1698 cl_bool blocking_map,
1699 cl_map_flags map_flags,
1700 const size_t * origin,
1701 const size_t * region,
1702 size_t * image_row_pitch,
1703 size_t * image_slice_pitch,
1704 cl_uint num_events_in_wait_list,
1705 const cl_event * event_wait_list,
1713 cl_uint num_events_in_wait_list,
1714 const cl_event * event_wait_list,
1717 #ifdef CL_VERSION_1_2
1720 clEnqueueMigrateMemObjects(cl_command_queue command_queue,
1722 const cl_mem * mem_objects,
1723 cl_mem_migration_flags
flags,
1724 cl_uint num_events_in_wait_list,
1725 const cl_event * event_wait_list,
1734 const size_t * global_work_offset,
1735 const size_t * global_work_size,
1736 const size_t * local_work_size,
1737 cl_uint num_events_in_wait_list,
1738 const cl_event * event_wait_list,
1747 const cl_mem * mem_list,
1748 const void ** args_mem_loc,
1749 cl_uint num_events_in_wait_list,
1750 const cl_event * event_wait_list,
1753 #ifdef CL_VERSION_1_2
1756 clEnqueueMarkerWithWaitList(cl_command_queue command_queue,
1757 cl_uint num_events_in_wait_list,
1758 const cl_event * event_wait_list,
1762 clEnqueueBarrierWithWaitList(cl_command_queue command_queue,
1763 cl_uint num_events_in_wait_list,
1764 const cl_event * event_wait_list,
1769 #ifdef CL_VERSION_2_0
1772 clEnqueueSVMFree(cl_command_queue command_queue,
1774 void * svm_pointers[],
1777 void * svm_pointers[],
1780 cl_uint num_events_in_wait_list,
1781 const cl_event * event_wait_list,
1785 clEnqueueSVMMemcpy(cl_command_queue command_queue,
1786 cl_bool blocking_copy,
1788 const void * src_ptr,
1790 cl_uint num_events_in_wait_list,
1791 const cl_event * event_wait_list,
1795 clEnqueueSVMMemFill(cl_command_queue command_queue,
1798 size_t pattern_size,
1800 cl_uint num_events_in_wait_list,
1801 const cl_event * event_wait_list,
1805 clEnqueueSVMMap(cl_command_queue command_queue,
1806 cl_bool blocking_map,
1810 cl_uint num_events_in_wait_list,
1811 const cl_event * event_wait_list,
1815 clEnqueueSVMUnmap(cl_command_queue command_queue,
1817 cl_uint num_events_in_wait_list,
1818 const cl_event * event_wait_list,
1823 #ifdef CL_VERSION_2_1
1826 clEnqueueSVMMigrateMem(cl_command_queue command_queue,
1828 const void ** svm_pointers,
1829 const size_t *
sizes,
1830 cl_mem_migration_flags
flags,
1831 cl_uint num_events_in_wait_list,
1832 const cl_event * event_wait_list,
1837 #ifdef CL_VERSION_1_2
1847 clGetExtensionFunctionAddressForPlatform(cl_platform_id platform,
1852 #ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS
1864 clSetCommandQueueProperty(cl_command_queue command_queue,
1865 cl_command_queue_properties properties,
1876 size_t image_height,
1877 size_t image_row_pitch,
1886 size_t image_height,
1888 size_t image_row_pitch,
1889 size_t image_slice_pitch,
1914 cl_device_id device,
1915 cl_command_queue_properties properties,
1920 cl_bool normalized_coords,
1921 cl_addressing_mode addressing_mode,
1922 cl_filter_mode filter_mode,
1923 cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2_DEPRECATED;
1928 cl_uint num_events_in_wait_list,
1929 const cl_event * event_wait_list,
1930 cl_event * event) CL_API_SUFFIX__VERSION_1_2_DEPRECATED;
struct _cl_device_id * cl_device_id
CL_API_ENTRY cl_int CL_API_CALL clCreateKernelsInProgram(cl_program program, cl_uint num_kernels, cl_kernel *kernels, cl_uint *num_kernels_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clUnloadCompiler(void) CL_API_SUFFIX__VERSION_1_1_DEPRECATED
GLuint GLsizei const GLuint const GLintptr const GLsizeiptr * sizes
CL_API_ENTRY cl_int CL_API_CALL clRetainSampler(cl_sampler sampler) CL_API_SUFFIX__VERSION_1_0
cl_uint cl_kernel_sub_group_info
struct _cl_context * cl_context
CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED void *CL_API_CALL clGetExtensionFunctionAddress(const char *func_name) CL_API_SUFFIX__VERSION_1_1_DEPRECATED
CL_API_ENTRY cl_int CL_API_CALL clGetSamplerInfo(cl_sampler sampler, cl_sampler_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clWaitForEvents(cl_uint num_events, const cl_event *event_list) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY CL_API_PREFIX__VERSION_1_2_DEPRECATED cl_int CL_API_CALL clEnqueueTask(cl_command_queue command_queue, cl_kernel kernel, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_2_DEPRECATED
CL_API_ENTRY void *CL_API_CALL clEnqueueMapImage(cl_command_queue command_queue, cl_mem image, cl_bool blocking_map, cl_map_flags map_flags, const size_t *origin, const size_t *region, size_t *image_row_pitch, size_t *image_slice_pitch, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0
cl_uint cl_mem_object_type
cl_uint cl_program_build_info
CL_API_ENTRY cl_context CL_API_CALL clCreateContextFromType(const cl_context_properties *properties, cl_device_type device_type, void(CL_CALLBACK *pfn_notify)(const char *errinfo, const void *private_info, size_tcb, void *user_data), void *user_data, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0
cl_uint cl_addressing_mode
CL_API_ENTRY cl_int CL_API_CALL clGetKernelInfo(cl_kernel kernel, cl_kernel_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clEnqueueCopyBufferToImage(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_image, size_t src_offset, const size_t *dst_origin, const size_t *region, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
GLuint GLsizei GLsizei * length
CL_API_ENTRY cl_int CL_API_CALL clGetDeviceIDs(cl_platform_id platform, cl_device_type device_type, cl_uint num_entries, cl_device_id *devices, cl_uint *num_devices) CL_API_SUFFIX__VERSION_1_0
GLenum GLenum GLsizei void * image
CL_API_ENTRY cl_kernel CL_API_CALL clCreateKernel(cl_program program, const char *kernel_name, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clReleaseProgram(cl_program program) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clEnqueueWriteImage(cl_command_queue command_queue, cl_mem image, cl_bool blocking_write, const size_t *origin, const size_t *region, size_t input_row_pitch, size_t input_slice_pitch, const void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueMarker(cl_command_queue command_queue, cl_event *event) CL_API_SUFFIX__VERSION_1_1_DEPRECATED
cl_uint cl_device_local_mem_type
CL_API_ENTRY cl_int CL_API_CALL clGetProgramBuildInfo(cl_program program, cl_device_id device, cl_program_build_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clGetCommandQueueInfo(cl_command_queue command_queue, cl_command_queue_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
cl_bitfield cl_device_exec_capabilities
CL_API_ENTRY cl_int CL_API_CALL clFlush(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clGetPlatformInfo(cl_platform_id platform, cl_platform_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_program CL_API_CALL clCreateProgramWithBinary(cl_context context, cl_uint num_devices, const cl_device_id *device_list, const size_t *lengths, const unsigned char **binaries, cl_int *binary_status, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clRetainContext(cl_context context) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clBuildProgram(cl_program program, cl_uint num_devices, const cl_device_id *device_list, const char *options, void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data), void *user_data) CL_API_SUFFIX__VERSION_1_0
struct _cl_platform_id * cl_platform_id
CL_API_ENTRY cl_int CL_API_CALL clEnqueueReadBuffer(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, size_t offset, size_t size, void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clSetKernelArg(cl_kernel kernel, cl_uint arg_index, size_t arg_size, const void *arg_value) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clEnqueueWriteBuffer(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, size_t offset, size_t size, const void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
cl_uint cl_command_queue_info
CL_API_ENTRY cl_int CL_API_CALL clReleaseEvent(cl_event event) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clEnqueueNDRangeKernel(cl_command_queue command_queue, cl_kernel kernel, cl_uint work_dim, const size_t *global_work_offset, const size_t *global_work_size, const size_t *local_work_size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_mem CL_API_CALL clCreateBuffer(cl_context context, cl_mem_flags flags, size_t size, void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clGetMemObjectInfo(cl_mem memobj, cl_mem_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
cl_bitfield cl_device_type
CL_API_ENTRY cl_int CL_API_CALL clGetKernelWorkGroupInfo(cl_kernel kernel, cl_device_id device, cl_kernel_work_group_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clEnqueueCopyImageToBuffer(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_buffer, const size_t *src_origin, const size_t *region, size_t dst_offset, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clRetainKernel(cl_kernel kernel) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueBarrier(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_1_DEPRECATED
CL_API_ENTRY cl_int CL_API_CALL clGetPlatformIDs(cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clEnqueueReadImage(cl_command_queue command_queue, cl_mem image, cl_bool blocking_read, const size_t *origin, const size_t *region, size_t row_pitch, size_t slice_pitch, void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY CL_API_PREFIX__VERSION_1_2_DEPRECATED cl_sampler CL_API_CALL clCreateSampler(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2_DEPRECATED
struct _cl_kernel * cl_kernel
cl_bitfield cl_command_queue_properties
CL_API_ENTRY cl_context CL_API_CALL clCreateContext(const cl_context_properties *properties, cl_uint num_devices, const cl_device_id *devices, void(CL_CALLBACK *pfn_notify)(const char *errinfo, const void *private_info, size_tcb, void *user_data), void *user_data, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clGetDeviceInfo(cl_device_id device, cl_device_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clRetainEvent(cl_event event) CL_API_SUFFIX__VERSION_1_0
cl_bitfield cl_device_fp_config
CL_API_ENTRY cl_int CL_API_CALL clReleaseKernel(cl_kernel kernel) CL_API_SUFFIX__VERSION_1_0
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the queue
CL_API_ENTRY cl_int CL_API_CALL clFinish(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clReleaseCommandQueue(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0
GLuint const GLchar * name
CL_API_ENTRY cl_int CL_API_CALL clEnqueueNativeKernel(cl_command_queue command_queue, void(CL_CALLBACK *user_func)(void *), void *args, size_t cb_args, cl_uint num_mem_objects, const cl_mem *mem_list, const void **args_mem_loc, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
GLsizei const GLchar *const * strings
CL_API_ENTRY cl_int CL_API_CALL clReleaseSampler(cl_sampler sampler) CL_API_SUFFIX__VERSION_1_0
struct _cl_sampler * cl_sampler
CL_API_ENTRY cl_int CL_API_CALL clReleaseContext(cl_context context) CL_API_SUFFIX__VERSION_1_0
GT_API const UT_StringHolder version
CL_API_ENTRY cl_program CL_API_CALL clCreateProgramWithSource(cl_context context, cl_uint count, const char **strings, const size_t *lengths, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clReleaseMemObject(cl_mem memobj) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clGetContextInfo(cl_context context, cl_context_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
intptr_t cl_context_properties
struct _cl_event * cl_event
struct _cl_command_queue * cl_command_queue
CL_API_ENTRY cl_int CL_API_CALL clGetImageInfo(cl_mem image, cl_image_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueWaitForEvents(cl_command_queue command_queue, cl_uint num_events, const cl_event *event_list) CL_API_SUFFIX__VERSION_1_1_DEPRECATED
CL_API_ENTRY cl_int CL_API_CALL clRetainProgram(cl_program program) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clGetSupportedImageFormats(cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, cl_uint num_entries, cl_image_format *image_formats, cl_uint *num_image_formats) CL_API_SUFFIX__VERSION_1_0
**If you just want to fire and args
CL_API_ENTRY cl_int CL_API_CALL clRetainCommandQueue(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0
cl_uint cl_kernel_work_group_info
CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL clCreateImage3D(cl_context context, cl_mem_flags flags, const cl_image_format *image_format, size_t image_width, size_t image_height, size_t image_depth, size_t image_row_pitch, size_t image_slice_pitch, void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED
CL_API_ENTRY cl_int CL_API_CALL clGetProgramInfo(cl_program program, cl_program_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
struct _cl_program * cl_program
CL_API_ENTRY cl_int CL_API_CALL clEnqueueCopyImage(cl_command_queue command_queue, cl_mem src_image, cl_mem dst_image, const size_t *src_origin, const size_t *dst_origin, const size_t *region, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY void *CL_API_CALL clEnqueueMapBuffer(cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map, cl_map_flags map_flags, size_t offset, size_t size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clGetEventInfo(cl_event event, cl_event_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clEnqueueCopyBuffer(cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, size_t src_offset, size_t dst_offset, size_t size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clGetEventProfilingInfo(cl_event event, cl_profiling_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0
struct _cl_image_format cl_image_format
cl_uint cl_device_mem_cache_type
CL_API_ENTRY cl_int CL_API_CALL clRetainMemObject(cl_mem memobj) CL_API_SUFFIX__VERSION_1_0
GLbitfield GLuint program
CL_API_ENTRY CL_API_PREFIX__VERSION_1_2_DEPRECATED cl_command_queue CL_API_CALL clCreateCommandQueue(cl_context context, cl_device_id device, cl_command_queue_properties properties, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2_DEPRECATED
CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL clCreateImage2D(cl_context context, cl_mem_flags flags, const cl_image_format *image_format, size_t image_width, size_t image_height, size_t image_row_pitch, void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED
GLsizei GLenum GLenum GLuint GLenum GLsizei * lengths
cl_uint cl_profiling_info
CL_API_ENTRY cl_int CL_API_CALL clEnqueueUnmapMemObject(cl_command_queue command_queue, cl_mem memobj, void *mapped_ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) CL_API_SUFFIX__VERSION_1_0