44 #if CL_TARGET_OPENCL_VERSION <= 110
45 #define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
49 #define CL_DEVICE_HALF_FP_CONFIG 0x1033
68 #define cl_APPLE_SetMemObjectDestructor 1
70 void (* )(
cl_mem ,
void* ),
82 #define cl_APPLE_ContextLoggingFunctions 1
86 void * ) CL_EXT_SUFFIX__VERSION_1_0;
92 void * ) CL_EXT_SUFFIX__VERSION_1_0;
98 void * ) CL_EXT_SUFFIX__VERSION_1_0;
107 #define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920
110 #define CL_PLATFORM_NOT_FOUND_KHR -1001
127 #define cl_khr_il_program 1
132 #define CL_DEVICE_IL_VERSION_KHR 0x105B
137 #define CL_PROGRAM_IL_KHR 0x1169
172 #define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x2030
179 #define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x2031
180 #define CL_CONTEXT_TERMINATE_KHR 0x2032
182 #define cl_khr_terminate_context 1
195 #define CL_DEVICE_SPIR_VERSIONS 0x40E0
196 #define CL_PROGRAM_BINARY_TYPE_INTERMEDIATE 0x40E1
202 #define cl_khr_create_command_queue 1
209 const cl_queue_properties_khr* ,
210 cl_int* ) CL_EXT_SUFFIX__VERSION_1_2;
214 const cl_queue_properties_khr* ,
215 cl_int* ) CL_EXT_SUFFIX__VERSION_1_2;
223 #define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000
224 #define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001
225 #define CL_DEVICE_REGISTERS_PER_BLOCK_NV 0x4002
226 #define CL_DEVICE_WARP_SIZE_NV 0x4003
227 #define CL_DEVICE_GPU_OVERLAP_NV 0x4004
228 #define CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV 0x4005
229 #define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006
236 #define CL_DEVICE_PROFILING_TIMER_OFFSET_AMD 0x4036
243 #define CL_PRINTF_CALLBACK_ARM 0x40B0
244 #define CL_PRINTF_BUFFERSIZE_ARM 0x40B1
250 #define cl_ext_device_fission 1
267 const cl_device_partition_property_ext * ,
270 cl_uint * ) CL_EXT_SUFFIX__VERSION_1_1;
274 const cl_device_partition_property_ext * ,
277 cl_uint * ) CL_EXT_SUFFIX__VERSION_1_1;
280 #define CL_DEVICE_PARTITION_EQUALLY_EXT 0x4050
281 #define CL_DEVICE_PARTITION_BY_COUNTS_EXT 0x4051
282 #define CL_DEVICE_PARTITION_BY_NAMES_EXT 0x4052
283 #define CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT 0x4053
286 #define CL_DEVICE_PARENT_DEVICE_EXT 0x4054
287 #define CL_DEVICE_PARTITION_TYPES_EXT 0x4055
288 #define CL_DEVICE_AFFINITY_DOMAINS_EXT 0x4056
289 #define CL_DEVICE_REFERENCE_COUNT_EXT 0x4057
290 #define CL_DEVICE_PARTITION_STYLE_EXT 0x4058
293 #define CL_DEVICE_PARTITION_FAILED_EXT -1057
294 #define CL_INVALID_PARTITION_COUNT_EXT -1058
295 #define CL_INVALID_PARTITION_NAME_EXT -1059
298 #define CL_AFFINITY_DOMAIN_L1_CACHE_EXT 0x1
299 #define CL_AFFINITY_DOMAIN_L2_CACHE_EXT 0x2
300 #define CL_AFFINITY_DOMAIN_L3_CACHE_EXT 0x3
301 #define CL_AFFINITY_DOMAIN_L4_CACHE_EXT 0x4
302 #define CL_AFFINITY_DOMAIN_NUMA_EXT 0x10
303 #define CL_AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT 0x100
306 #define CL_PROPERTIES_LIST_END_EXT ((cl_device_partition_property_ext) 0)
307 #define CL_PARTITION_BY_COUNTS_LIST_END_EXT ((cl_device_partition_property_ext) 0)
308 #define CL_PARTITION_BY_NAMES_LIST_END_EXT ((cl_device_partition_property_ext) 0 - 1)
314 #define cl_ext_migrate_memobject 1
318 #define CL_MIGRATE_MEM_OBJECT_HOST_EXT 0x1
320 #define CL_COMMAND_MIGRATE_MEM_OBJECT_EXT 0x4040
326 cl_mem_migration_flags_ext ,
335 cl_mem_migration_flags_ext ,
344 #define cl_qcom_ext_host_ptr 1
346 #define CL_MEM_EXT_HOST_PTR_QCOM (1 << 29)
348 #define CL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOM 0x40A0
349 #define CL_DEVICE_PAGE_SIZE_QCOM 0x40A1
350 #define CL_IMAGE_ROW_ALIGNMENT_QCOM 0x40A2
351 #define CL_IMAGE_SLICE_ALIGNMENT_QCOM 0x40A3
352 #define CL_MEM_HOST_UNCACHED_QCOM 0x40A4
353 #define CL_MEM_HOST_WRITEBACK_QCOM 0x40A5
354 #define CL_MEM_HOST_WRITETHROUGH_QCOM 0x40A6
355 #define CL_MEM_HOST_WRITE_COMBINING_QCOM 0x40A7
364 cl_image_pitch_info_qcom param_name,
365 size_t param_value_size,
367 size_t *param_value_size_ret);
386 #define CL_MEM_HOST_IOCOHERENT_QCOM 0x40A9
393 #define CL_MEM_ION_HOST_PTR_QCOM 0x40A8
414 #define CL_MEM_ANDROID_NATIVE_BUFFER_HOST_PTR_QCOM 0x40C6
433 #define CL_NV21_IMG 0x40D0
434 #define CL_YV12_IMG 0x40D1
442 #define CL_MEM_USE_UNCACHED_CPU_MEMORY_IMG (1 << 26)
443 #define CL_MEM_USE_CACHED_CPU_MEMORY_IMG (1 << 27)
449 #define cl_img_use_gralloc_ptr 1
452 #define CL_MEM_USE_GRALLOC_PTR_IMG (1 << 28)
455 #define CL_COMMAND_ACQUIRE_GRALLOC_OBJECTS_IMG 0x40D2
456 #define CL_COMMAND_RELEASE_GRALLOC_OBJECTS_IMG 0x40D3
459 #define CL_GRALLOC_RESOURCE_NOT_ACQUIRED_IMG 0x40D4
467 cl_event * ) CL_EXT_SUFFIX__VERSION_1_2;
475 cl_event * ) CL_EXT_SUFFIX__VERSION_1_2;
481 #define cl_khr_subgroups 1
483 #if !defined(CL_VERSION_2_1)
492 #define CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR 0x2033
493 #define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR 0x2034
498 cl_kernel_sub_group_info ,
508 cl_kernel_sub_group_info ,
513 size_t* ) CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED;
521 #define CL_SAMPLER_MIP_FILTER_MODE_KHR 0x1155
522 #define CL_SAMPLER_LOD_MIN_KHR 0x1156
523 #define CL_SAMPLER_LOD_MAX_KHR 0x1157
531 #define cl_khr_priority_hints 1
536 #define CL_QUEUE_PRIORITY_KHR 0x1096
539 #define CL_QUEUE_PRIORITY_HIGH_KHR (1<<0)
540 #define CL_QUEUE_PRIORITY_MED_KHR (1<<1)
541 #define CL_QUEUE_PRIORITY_LOW_KHR (1<<2)
549 #define cl_khr_throttle_hints 1
554 #define CL_QUEUE_THROTTLE_KHR 0x1097
557 #define CL_QUEUE_THROTTLE_HIGH_KHR (1<<0)
558 #define CL_QUEUE_THROTTLE_MED_KHR (1<<1)
559 #define CL_QUEUE_THROTTLE_LOW_KHR (1<<2)
567 #define cl_khr_subgroup_named_barrier 1
570 #define CL_DEVICE_MAX_NAMED_BARRIER_COUNT_KHR 0x2035
576 #define cl_arm_import_memory 1
581 #define CL_IMPORT_TYPE_ARM 0x40B2
584 #define CL_IMPORT_TYPE_HOST_ARM 0x40B3
587 #define CL_IMPORT_TYPE_DMA_BUF_ARM 0x40B4
590 #define CL_IMPORT_TYPE_PROTECTED_ARM 0x40B5
611 const cl_import_properties_arm *properties,
620 #define cl_arm_shared_virtual_memory 1
623 #define CL_DEVICE_SVM_CAPABILITIES_ARM 0x40B6
626 #define CL_MEM_USES_SVM_POINTER_ARM 0x40B7
629 #define CL_KERNEL_EXEC_INFO_SVM_PTRS_ARM 0x40B8
630 #define CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM_ARM 0x40B9
633 #define CL_COMMAND_SVM_FREE_ARM 0x40BA
634 #define CL_COMMAND_SVM_MEMCPY_ARM 0x40BB
635 #define CL_COMMAND_SVM_MEMFILL_ARM 0x40BC
636 #define CL_COMMAND_SVM_MAP_ARM 0x40BD
637 #define CL_COMMAND_SVM_UNMAP_ARM 0x40BE
640 #define CL_DEVICE_SVM_COARSE_GRAIN_BUFFER_ARM (1 << 0)
641 #define CL_DEVICE_SVM_FINE_GRAIN_BUFFER_ARM (1 << 1)
642 #define CL_DEVICE_SVM_FINE_GRAIN_SYSTEM_ARM (1 << 2)
643 #define CL_DEVICE_SVM_ATOMICS_ARM (1 << 3)
646 #define CL_MEM_SVM_FINE_GRAIN_BUFFER_ARM (1 << 10)
647 #define CL_MEM_SVM_ATOMICS_ARM (1 << 11)
655 cl_svm_mem_flags_arm ,
657 cl_uint ) CL_EXT_SUFFIX__VERSION_1_2;
661 void * ) CL_EXT_SUFFIX__VERSION_1_2;
674 cl_event * ) CL_EXT_SUFFIX__VERSION_1_2;
684 cl_event * ) CL_EXT_SUFFIX__VERSION_1_2;
694 cl_event * ) CL_EXT_SUFFIX__VERSION_1_2;
704 cl_event * ) CL_EXT_SUFFIX__VERSION_1_2;
711 cl_event * ) CL_EXT_SUFFIX__VERSION_1_2;
716 const void * ) CL_EXT_SUFFIX__VERSION_1_2;
719 cl_kernel_exec_info_arm ,
721 const void * ) CL_EXT_SUFFIX__VERSION_1_2;
727 #ifdef CL_VERSION_1_2
729 #define cl_arm_get_core_id 1
732 #define CL_DEVICE_COMPUTE_UNITS_BITFIELD_ARM 0x40BF
struct _cl_device_id * cl_device_id
CL_API_ENTRY cl_command_queue CL_API_CALL clCreateCommandQueueWithPropertiesKHR(cl_context, cl_device_id, const cl_queue_properties_khr *, cl_int *) CL_EXT_SUFFIX__VERSION_1_2
CL_API_ENTRY cl_program CL_API_CALL clCreateProgramWithILKHR(cl_context, const void *, size_t, cl_int *)
cl_uint cl_image_pitch_info_qcom
cl_uint cl_kernel_sub_group_info
struct _cl_context * cl_context
cl_uint cl_queue_throttle_khr
CL_API_ENTRY cl_int(CL_API_CALL * clIcdGetPlatformIDsKHR_fn)(cl_uint, cl_platform_id *, cl_uint *)
cl_ulong cl_device_partition_property_ext
CL_API_ENTRY cl_int CL_API_CALL clSetKernelArgSVMPointerARM(cl_kernel, cl_uint, const void *) CL_EXT_SUFFIX__VERSION_1_2
cl_bitfield cl_device_svm_capabilities_arm
CL_API_ENTRY cl_int CL_API_CALL clReleaseDeviceEXT(cl_device_id) CL_EXT_SUFFIX__VERSION_1_1
CL_API_ENTRY cl_int CL_API_CALL clSetKernelExecInfoARM(cl_kernel, cl_kernel_exec_info_arm, size_t, const void *) CL_EXT_SUFFIX__VERSION_1_2
CL_API_ENTRY cl_int CL_API_CALL clEnqueueAcquireGrallocObjectsIMG(cl_command_queue, cl_uint, const cl_mem *, cl_uint, const cl_event *, cl_event *) CL_EXT_SUFFIX__VERSION_1_2
CL_API_ENTRY void *CL_API_CALL clSVMAllocARM(cl_context, cl_svm_mem_flags_arm, size_t, cl_uint) CL_EXT_SUFFIX__VERSION_1_2
cl_int CL_API_ENTRY clSetMemObjectDestructorAPPLE(cl_mem, void(*)(cl_mem, void *), void *) CL_EXT_SUFFIX__VERSION_1_0
void CL_API_ENTRY clLogMessagesToSystemLogAPPLE(const char *, const void *, size_t, void *) CL_EXT_SUFFIX__VERSION_1_0
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMigrateMemObjectEXT(cl_command_queue, cl_uint, const cl_mem *, cl_mem_migration_flags_ext, cl_uint, const cl_event *, cl_event *)
CL_API_ENTRY cl_int CL_API_CALL clTerminateContextKHR(cl_context) CL_EXT_SUFFIX__VERSION_1_2
cl_uint host_cache_policy
CL_API_ENTRY cl_int(CL_API_CALL * clEnqueueMigrateMemObjectEXT_fn)(cl_command_queue, cl_uint, const cl_mem *, cl_mem_migration_flags_ext, cl_uint, const cl_event *, cl_event *)
struct _cl_mem_ext_host_ptr cl_mem_ext_host_ptr
struct _cl_platform_id * cl_platform_id
cl_bitfield cl_mem_migration_flags_ext
CL_API_ENTRY cl_int(CL_API_CALL * clReleaseDeviceEXT_fn)(cl_device_id) CL_EXT_SUFFIX__VERSION_1_1
cl_bitfield cl_svm_mem_flags_arm
CL_API_ENTRY cl_int(CL_API_CALL * clRetainDeviceEXT_fn)(cl_device_id) CL_EXT_SUFFIX__VERSION_1_1
CL_API_ENTRY cl_int CL_API_CALL clGetDeviceImageInfoQCOM(cl_device_id device, size_t image_width, size_t image_height, const cl_image_format *image_format, cl_image_pitch_info_qcom param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret)
CL_API_ENTRY cl_int(CL_API_CALL * clGetKernelSubGroupInfoKHR_fn)(cl_kernel, cl_device_id, cl_kernel_sub_group_info, size_t, const void *, size_t, void *, size_t *) CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED
CL_API_ENTRY cl_int CL_API_CALL clEnqueueReleaseGrallocObjectsIMG(cl_command_queue, cl_uint, const cl_mem *, cl_uint, const cl_event *, cl_event *) CL_EXT_SUFFIX__VERSION_1_2
intptr_t cl_import_properties_arm
struct _cl_kernel * cl_kernel
CL_API_ENTRY cl_int CL_API_CALL clEnqueueSVMMapARM(cl_command_queue, cl_bool, cl_map_flags, void *, size_t, cl_uint, const cl_event *, cl_event *) CL_EXT_SUFFIX__VERSION_1_2
CL_API_ENTRY cl_int(CL_API_CALL * clCreateSubDevicesEXT_fn)(cl_device_id, const cl_device_partition_property_ext *, cl_uint, cl_device_id *, cl_uint *) CL_EXT_SUFFIX__VERSION_1_1
CL_API_ENTRY cl_int CL_API_CALL clCreateSubDevicesEXT(cl_device_id, const cl_device_partition_property_ext *, cl_uint, cl_device_id *, cl_uint *) CL_EXT_SUFFIX__VERSION_1_1
CL_API_ENTRY void CL_API_CALL clSVMFreeARM(cl_context, void *) CL_EXT_SUFFIX__VERSION_1_2
CL_API_ENTRY cl_int CL_API_CALL clIcdGetPlatformIDsKHR(cl_uint, cl_platform_id *, cl_uint *)
CL_API_ENTRY cl_int CL_API_CALL clRetainDeviceEXT(cl_device_id) CL_EXT_SUFFIX__VERSION_1_1
CL_API_ENTRY cl_int CL_API_CALL clEnqueueSVMFreeARM(cl_command_queue, cl_uint, void *[], void(CL_CALLBACK *)(cl_command_queue, cl_uint, void *[], void *), void *, cl_uint, const cl_event *, cl_event *) CL_EXT_SUFFIX__VERSION_1_2
cl_bitfield cl_queue_properties_khr
struct _cl_mem_android_native_buffer_host_ptr cl_mem_android_native_buffer_host_ptr
cl_mem_ext_host_ptr ext_host_ptr
void CL_API_ENTRY clLogMessagesToStderrAPPLE(const char *, const void *, size_t, void *) CL_EXT_SUFFIX__VERSION_1_0
struct _cl_event * cl_event
struct _cl_command_queue * cl_command_queue
cl_uint cl_kernel_exec_info_arm
CL_API_ENTRY cl_command_queue(CL_API_CALL * clCreateCommandQueueWithPropertiesKHR_fn)(cl_context, cl_device_id, const cl_queue_properties_khr *, cl_int *) CL_EXT_SUFFIX__VERSION_1_2
CL_API_ENTRY cl_program(CL_API_CALL * clCreateProgramWithILKHR_fn)(cl_context, const void *, size_t, cl_int *) CL_EXT_SUFFIX__VERSION_1_2
void CL_API_ENTRY clLogMessagesToStdoutAPPLE(const char *, const void *, size_t, void *) CL_EXT_SUFFIX__VERSION_1_0
struct _cl_program * cl_program
CL_API_ENTRY cl_int(CL_API_CALL * clTerminateContextKHR_fn)(cl_context) CL_EXT_SUFFIX__VERSION_1_2
CL_API_ENTRY cl_int CL_API_CALL clEnqueueSVMMemFillARM(cl_command_queue, void *, const void *, size_t, size_t, cl_uint, const cl_event *, cl_event *) CL_EXT_SUFFIX__VERSION_1_2
CL_API_ENTRY cl_int CL_API_CALL clEnqueueSVMMemcpyARM(cl_command_queue, cl_bool, void *, const void *, size_t, cl_uint, const cl_event *, cl_event *) CL_EXT_SUFFIX__VERSION_1_2
cl_mem_ext_host_ptr ext_host_ptr
struct _cl_mem_ion_host_ptr cl_mem_ion_host_ptr
CL_API_ENTRY cl_int CL_API_CALL clEnqueueSVMUnmapARM(cl_command_queue, void *, cl_uint, const cl_event *, cl_event *) CL_EXT_SUFFIX__VERSION_1_2
cl_uint cl_queue_priority_khr
CL_API_ENTRY cl_int CL_API_CALL clGetKernelSubGroupInfoKHR(cl_kernel, cl_device_id, cl_kernel_sub_group_info, size_t, const void *, size_t, void *, size_t *) CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED
CL_API_ENTRY cl_mem CL_API_CALL clImportMemoryARM(cl_context context, cl_mem_flags flags, const cl_import_properties_arm *properties, void *memory, size_t size, cl_int *errcode_ret) CL_EXT_SUFFIX__VERSION_1_0