|
|
@ -1,5 +1,5 @@
|
|
|
|
/*******************************************************************************
|
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2008-2018 The Khronos Group Inc.
|
|
|
|
* Copyright (c) 2008-2019 The Khronos Group Inc.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and/or associated documentation files (the
|
|
|
|
* copy of this software and/or associated documentation files (the
|
|
|
@ -66,9 +66,9 @@ extern "C" {
|
|
|
|
* before using.
|
|
|
|
* before using.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#define cl_APPLE_SetMemObjectDestructor 1
|
|
|
|
#define cl_APPLE_SetMemObjectDestructor 1
|
|
|
|
cl_int CL_API_ENTRY clSetMemObjectDestructorAPPLE( cl_mem /* memobj */,
|
|
|
|
cl_int CL_API_ENTRY clSetMemObjectDestructorAPPLE( cl_mem memobj,
|
|
|
|
void (* /*pfn_notify*/)( cl_mem /* memobj */, void* /*user_data*/),
|
|
|
|
void (* pfn_notify)(cl_mem memobj, void * user_data),
|
|
|
|
void * /*user_data */ ) CL_EXT_SUFFIX__VERSION_1_0;
|
|
|
|
void * user_data) CL_EXT_SUFFIX__VERSION_1_0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Context Logging Functions
|
|
|
|
/* Context Logging Functions
|
|
|
@ -77,25 +77,25 @@ cl_int CL_API_ENTRY clSetMemObjectDestructorAPPLE( cl_mem /* memobj */,
|
|
|
|
* Please check for the "cl_APPLE_ContextLoggingFunctions" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS)
|
|
|
|
* Please check for the "cl_APPLE_ContextLoggingFunctions" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS)
|
|
|
|
* before using.
|
|
|
|
* before using.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* clLogMessagesToSystemLog fowards on all log messages to the Apple System Logger
|
|
|
|
* clLogMessagesToSystemLog forwards on all log messages to the Apple System Logger
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#define cl_APPLE_ContextLoggingFunctions 1
|
|
|
|
#define cl_APPLE_ContextLoggingFunctions 1
|
|
|
|
extern void CL_API_ENTRY clLogMessagesToSystemLogAPPLE( const char * /* errstr */,
|
|
|
|
extern void CL_API_ENTRY clLogMessagesToSystemLogAPPLE( const char * errstr,
|
|
|
|
const void * /* private_info */,
|
|
|
|
const void * private_info,
|
|
|
|
size_t /* cb */,
|
|
|
|
size_t cb,
|
|
|
|
void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0;
|
|
|
|
void * user_data) CL_EXT_SUFFIX__VERSION_1_0;
|
|
|
|
|
|
|
|
|
|
|
|
/* clLogMessagesToStdout sends all log messages to the file descriptor stdout */
|
|
|
|
/* clLogMessagesToStdout sends all log messages to the file descriptor stdout */
|
|
|
|
extern void CL_API_ENTRY clLogMessagesToStdoutAPPLE( const char * /* errstr */,
|
|
|
|
extern void CL_API_ENTRY clLogMessagesToStdoutAPPLE( const char * errstr,
|
|
|
|
const void * /* private_info */,
|
|
|
|
const void * private_info,
|
|
|
|
size_t /* cb */,
|
|
|
|
size_t cb,
|
|
|
|
void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0;
|
|
|
|
void * user_data) CL_EXT_SUFFIX__VERSION_1_0;
|
|
|
|
|
|
|
|
|
|
|
|
/* clLogMessagesToStderr sends all log messages to the file descriptor stderr */
|
|
|
|
/* clLogMessagesToStderr sends all log messages to the file descriptor stderr */
|
|
|
|
extern void CL_API_ENTRY clLogMessagesToStderrAPPLE( const char * /* errstr */,
|
|
|
|
extern void CL_API_ENTRY clLogMessagesToStderrAPPLE( const char * errstr,
|
|
|
|
const void * /* private_info */,
|
|
|
|
const void * private_info,
|
|
|
|
size_t /* cb */,
|
|
|
|
size_t cb,
|
|
|
|
void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0;
|
|
|
|
void * user_data) CL_EXT_SUFFIX__VERSION_1_0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************
|
|
|
|
/************************
|
|
|
@ -110,15 +110,14 @@ extern void CL_API_ENTRY clLogMessagesToStderrAPPLE( const char * /* errstr */
|
|
|
|
#define CL_PLATFORM_NOT_FOUND_KHR -1001
|
|
|
|
#define CL_PLATFORM_NOT_FOUND_KHR -1001
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clIcdGetPlatformIDsKHR(cl_uint /* num_entries */,
|
|
|
|
clIcdGetPlatformIDsKHR(cl_uint num_entries,
|
|
|
|
cl_platform_id * /* platforms */,
|
|
|
|
cl_platform_id * platforms,
|
|
|
|
cl_uint * /* num_platforms */);
|
|
|
|
cl_uint * num_platforms);
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_int (CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(
|
|
|
|
|
|
|
|
cl_uint /* num_entries */,
|
|
|
|
|
|
|
|
cl_platform_id * /* platforms */,
|
|
|
|
|
|
|
|
cl_uint * /* num_platforms */);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
|
|
|
|
(CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(cl_uint num_entries,
|
|
|
|
|
|
|
|
cl_platform_id * platforms,
|
|
|
|
|
|
|
|
cl_uint * num_platforms);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************
|
|
|
|
/*******************************
|
|
|
@ -136,35 +135,41 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#define CL_PROGRAM_IL_KHR 0x1169
|
|
|
|
#define CL_PROGRAM_IL_KHR 0x1169
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_program
|
|
|
|
extern CL_API_ENTRY cl_program CL_API_CALL
|
|
|
|
CL_API_CALL clCreateProgramWithILKHR(
|
|
|
|
clCreateProgramWithILKHR(cl_context context,
|
|
|
|
cl_context /* context */,
|
|
|
|
const void * il,
|
|
|
|
const void * /* il */,
|
|
|
|
size_t length,
|
|
|
|
size_t /* length */,
|
|
|
|
cl_int * errcode_ret);
|
|
|
|
cl_int * /* errcode_ret */);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_program
|
|
|
|
typedef CL_API_ENTRY cl_program
|
|
|
|
(CL_API_CALL *clCreateProgramWithILKHR_fn)(
|
|
|
|
(CL_API_CALL *clCreateProgramWithILKHR_fn)(cl_context context,
|
|
|
|
cl_context /* context */,
|
|
|
|
const void * il,
|
|
|
|
const void * /* il */,
|
|
|
|
size_t length,
|
|
|
|
size_t /* length */,
|
|
|
|
cl_int * errcode_ret) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Extension: cl_khr_image2D_buffer
|
|
|
|
/* Extension: cl_khr_image2d_from_buffer
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This extension allows a 2D image to be created from a cl_mem buffer without a copy.
|
|
|
|
* This extension allows a 2D image to be created from a cl_mem buffer without
|
|
|
|
* The type associated with a 2D image created from a buffer in an OpenCL program is image2d_t.
|
|
|
|
* a copy. The type associated with a 2D image created from a buffer in an
|
|
|
|
* Both the sampler and sampler-less read_image built-in functions are supported for 2D images
|
|
|
|
* OpenCL program is image2d_t. Both the sampler and sampler-less read_image
|
|
|
|
* and 2D images created from a buffer. Similarly, the write_image built-ins are also supported
|
|
|
|
* built-in functions are supported for 2D images and 2D images created from
|
|
|
|
* for 2D images created from a buffer.
|
|
|
|
* a buffer. Similarly, the write_image built-ins are also supported for 2D
|
|
|
|
|
|
|
|
* images created from a buffer.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* When the 2D image from buffer is created, the client must specify the width,
|
|
|
|
* When the 2D image from buffer is created, the client must specify the
|
|
|
|
* height, image format (i.e. channel order and channel data type) and optionally the row pitch
|
|
|
|
* width, height, image format (i.e. channel order and channel data type)
|
|
|
|
|
|
|
|
* and optionally the row pitch.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* The pitch specified must be a multiple of CL_DEVICE_IMAGE_PITCH_ALIGNMENT pixels.
|
|
|
|
* The pitch specified must be a multiple of
|
|
|
|
* The base address of the buffer must be aligned to CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT pixels.
|
|
|
|
* CL_DEVICE_IMAGE_PITCH_ALIGNMENT_KHR pixels.
|
|
|
|
|
|
|
|
* The base address of the buffer must be aligned to
|
|
|
|
|
|
|
|
* CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT_KHR pixels.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define CL_DEVICE_IMAGE_PITCH_ALIGNMENT_KHR 0x104A
|
|
|
|
|
|
|
|
#define CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT_KHR 0x104B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************
|
|
|
|
/**************************************
|
|
|
|
* cl_khr_initialize_memory extension *
|
|
|
|
* cl_khr_initialize_memory extension *
|
|
|
|
**************************************/
|
|
|
|
**************************************/
|
|
|
@ -180,9 +185,11 @@ typedef CL_API_ENTRY cl_program
|
|
|
|
#define CL_CONTEXT_TERMINATE_KHR 0x2032
|
|
|
|
#define CL_CONTEXT_TERMINATE_KHR 0x2032
|
|
|
|
|
|
|
|
|
|
|
|
#define cl_khr_terminate_context 1
|
|
|
|
#define cl_khr_terminate_context 1
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL clTerminateContextKHR(cl_context /* context */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
|
|
|
|
clTerminateContextKHR(cl_context context) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_int (CL_API_CALL *clTerminateContextKHR_fn)(cl_context /* context */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
|
|
|
|
(CL_API_CALL *clTerminateContextKHR_fn)(cl_context context) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -204,15 +211,16 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clTerminateContextKHR_fn)(cl_context /
|
|
|
|
typedef cl_bitfield cl_queue_properties_khr;
|
|
|
|
typedef cl_bitfield cl_queue_properties_khr;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_command_queue CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_command_queue CL_API_CALL
|
|
|
|
clCreateCommandQueueWithPropertiesKHR( cl_context /* context */,
|
|
|
|
clCreateCommandQueueWithPropertiesKHR(cl_context context,
|
|
|
|
cl_device_id /* device */,
|
|
|
|
cl_device_id device,
|
|
|
|
const cl_queue_properties_khr* /* properties */,
|
|
|
|
const cl_queue_properties_khr* properties,
|
|
|
|
cl_int* /* errcode_ret */ ) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_int* errcode_ret) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_command_queue
|
|
|
|
typedef CL_API_ENTRY cl_command_queue
|
|
|
|
(CL_API_CALL *clCreateCommandQueueWithPropertiesKHR_fn)( cl_context /* context */,
|
|
|
|
(CL_API_CALL *clCreateCommandQueueWithPropertiesKHR_fn)(cl_context context,
|
|
|
|
cl_device_id /* device */,
|
|
|
|
cl_device_id device,
|
|
|
|
const cl_queue_properties_khr* /* properties */,
|
|
|
|
const cl_queue_properties_khr* properties,
|
|
|
|
cl_int* /* errcode_ret */ ) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_int* errcode_ret) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************
|
|
|
|
/******************************************
|
|
|
@ -250,31 +258,31 @@ typedef CL_API_ENTRY cl_command_queue
|
|
|
|
#define cl_ext_device_fission 1
|
|
|
|
#define cl_ext_device_fission 1
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clReleaseDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
clReleaseDeviceEXT(cl_device_id device) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
(CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
(CL_API_CALL *clReleaseDeviceEXT_fn)(cl_device_id device) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clRetainDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
clRetainDeviceEXT(cl_device_id device) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
(CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
(CL_API_CALL *clRetainDeviceEXT_fn)(cl_device_id device) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
|
|
|
|
|
|
|
|
typedef cl_ulong cl_device_partition_property_ext;
|
|
|
|
typedef cl_ulong cl_device_partition_property_ext;
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clCreateSubDevicesEXT( cl_device_id /*in_device*/,
|
|
|
|
clCreateSubDevicesEXT(cl_device_id in_device,
|
|
|
|
const cl_device_partition_property_ext * /* properties */,
|
|
|
|
const cl_device_partition_property_ext * properties,
|
|
|
|
cl_uint /*num_entries*/,
|
|
|
|
cl_uint num_entries,
|
|
|
|
cl_device_id * /*out_devices*/,
|
|
|
|
cl_device_id * out_devices,
|
|
|
|
cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
cl_uint * num_devices) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
( CL_API_CALL * clCreateSubDevicesEXT_fn)( cl_device_id /*in_device*/,
|
|
|
|
(CL_API_CALL * clCreateSubDevicesEXT_fn)(cl_device_id in_device,
|
|
|
|
const cl_device_partition_property_ext * /* properties */,
|
|
|
|
const cl_device_partition_property_ext * properties,
|
|
|
|
cl_uint /*num_entries*/,
|
|
|
|
cl_uint num_entries,
|
|
|
|
cl_device_id * /*out_devices*/,
|
|
|
|
cl_device_id * out_devices,
|
|
|
|
cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
cl_uint * num_devices) CL_EXT_SUFFIX__VERSION_1_1;
|
|
|
|
|
|
|
|
|
|
|
|
/* cl_device_partition_property_ext */
|
|
|
|
/* cl_device_partition_property_ext */
|
|
|
|
#define CL_DEVICE_PARTITION_EQUALLY_EXT 0x4050
|
|
|
|
#define CL_DEVICE_PARTITION_EQUALLY_EXT 0x4050
|
|
|
@ -320,22 +328,22 @@ typedef cl_bitfield cl_mem_migration_flags_ext;
|
|
|
|
#define CL_COMMAND_MIGRATE_MEM_OBJECT_EXT 0x4040
|
|
|
|
#define CL_COMMAND_MIGRATE_MEM_OBJECT_EXT 0x4040
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clEnqueueMigrateMemObjectEXT( cl_command_queue /* command_queue */,
|
|
|
|
clEnqueueMigrateMemObjectEXT(cl_command_queue command_queue,
|
|
|
|
cl_uint /* num_mem_objects */,
|
|
|
|
cl_uint num_mem_objects,
|
|
|
|
const cl_mem * /* mem_objects */,
|
|
|
|
const cl_mem * mem_objects,
|
|
|
|
cl_mem_migration_flags_ext /* flags */,
|
|
|
|
cl_mem_migration_flags_ext flags,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */ );
|
|
|
|
cl_event * event);
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
(CL_API_CALL *clEnqueueMigrateMemObjectEXT_fn)( cl_command_queue /* command_queue */,
|
|
|
|
(CL_API_CALL *clEnqueueMigrateMemObjectEXT_fn)(cl_command_queue command_queue,
|
|
|
|
cl_uint /* num_mem_objects */,
|
|
|
|
cl_uint num_mem_objects,
|
|
|
|
const cl_mem * /* mem_objects */,
|
|
|
|
const cl_mem * mem_objects,
|
|
|
|
cl_mem_migration_flags_ext /* flags */,
|
|
|
|
cl_mem_migration_flags_ext flags,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */ );
|
|
|
|
cl_event * event);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************
|
|
|
|
/*********************************
|
|
|
@ -459,20 +467,20 @@ typedef struct _cl_mem_android_native_buffer_host_ptr
|
|
|
|
#define CL_GRALLOC_RESOURCE_NOT_ACQUIRED_IMG 0x40D4
|
|
|
|
#define CL_GRALLOC_RESOURCE_NOT_ACQUIRED_IMG 0x40D4
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clEnqueueAcquireGrallocObjectsIMG(cl_command_queue /* command_queue */,
|
|
|
|
clEnqueueAcquireGrallocObjectsIMG(cl_command_queue command_queue,
|
|
|
|
cl_uint /* num_objects */,
|
|
|
|
cl_uint num_objects,
|
|
|
|
const cl_mem * /* mem_objects */,
|
|
|
|
const cl_mem * mem_objects,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_event * event) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clEnqueueReleaseGrallocObjectsIMG(cl_command_queue /* command_queue */,
|
|
|
|
clEnqueueReleaseGrallocObjectsIMG(cl_command_queue command_queue,
|
|
|
|
cl_uint /* num_objects */,
|
|
|
|
cl_uint num_objects,
|
|
|
|
const cl_mem * /* mem_objects */,
|
|
|
|
const cl_mem * mem_objects,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_event * event) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************
|
|
|
|
/*********************************
|
|
|
@ -493,24 +501,24 @@ typedef cl_uint cl_kernel_sub_group_info;
|
|
|
|
#define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR 0x2034
|
|
|
|
#define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR 0x2034
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clGetKernelSubGroupInfoKHR(cl_kernel /* in_kernel */,
|
|
|
|
clGetKernelSubGroupInfoKHR(cl_kernel in_kernel,
|
|
|
|
cl_device_id /*in_device*/,
|
|
|
|
cl_device_id in_device,
|
|
|
|
cl_kernel_sub_group_info /* param_name */,
|
|
|
|
cl_kernel_sub_group_info param_name,
|
|
|
|
size_t /*input_value_size*/,
|
|
|
|
size_t input_value_size,
|
|
|
|
const void * /*input_value*/,
|
|
|
|
const void * input_value,
|
|
|
|
size_t /*param_value_size*/,
|
|
|
|
size_t param_value_size,
|
|
|
|
void* /*param_value*/,
|
|
|
|
void * param_value,
|
|
|
|
size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED;
|
|
|
|
size_t * param_value_size_ret) CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
typedef CL_API_ENTRY cl_int
|
|
|
|
(CL_API_CALL * clGetKernelSubGroupInfoKHR_fn)(cl_kernel /* in_kernel */,
|
|
|
|
(CL_API_CALL * clGetKernelSubGroupInfoKHR_fn)(cl_kernel in_kernel,
|
|
|
|
cl_device_id /*in_device*/,
|
|
|
|
cl_device_id in_device,
|
|
|
|
cl_kernel_sub_group_info /* param_name */,
|
|
|
|
cl_kernel_sub_group_info param_name,
|
|
|
|
size_t /*input_value_size*/,
|
|
|
|
size_t input_value_size,
|
|
|
|
const void * /*input_value*/,
|
|
|
|
const void * input_value,
|
|
|
|
size_t /*param_value_size*/,
|
|
|
|
size_t param_value_size,
|
|
|
|
void* /*param_value*/,
|
|
|
|
void * param_value,
|
|
|
|
size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED;
|
|
|
|
size_t * param_value_size_ret) CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************
|
|
|
|
/*********************************
|
|
|
@ -651,74 +659,75 @@ typedef cl_uint cl_kernel_exec_info_arm;
|
|
|
|
typedef cl_bitfield cl_device_svm_capabilities_arm;
|
|
|
|
typedef cl_bitfield cl_device_svm_capabilities_arm;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY void * CL_API_CALL
|
|
|
|
extern CL_API_ENTRY void * CL_API_CALL
|
|
|
|
clSVMAllocARM(cl_context /* context */,
|
|
|
|
clSVMAllocARM(cl_context context,
|
|
|
|
cl_svm_mem_flags_arm /* flags */,
|
|
|
|
cl_svm_mem_flags_arm flags,
|
|
|
|
size_t /* size */,
|
|
|
|
size_t size,
|
|
|
|
cl_uint /* alignment */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_uint alignment) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY void CL_API_CALL
|
|
|
|
extern CL_API_ENTRY void CL_API_CALL
|
|
|
|
clSVMFreeARM(cl_context /* context */,
|
|
|
|
clSVMFreeARM(cl_context context,
|
|
|
|
void * /* svm_pointer */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
void * svm_pointer) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clEnqueueSVMFreeARM(cl_command_queue /* command_queue */,
|
|
|
|
clEnqueueSVMFreeARM(cl_command_queue command_queue,
|
|
|
|
cl_uint /* num_svm_pointers */,
|
|
|
|
cl_uint num_svm_pointers,
|
|
|
|
void *[] /* svm_pointers[] */,
|
|
|
|
void * svm_pointers[],
|
|
|
|
void (CL_CALLBACK * /*pfn_free_func*/)(cl_command_queue /* queue */,
|
|
|
|
void (CL_CALLBACK * pfn_free_func)(cl_command_queue queue,
|
|
|
|
cl_uint /* num_svm_pointers */,
|
|
|
|
cl_uint num_svm_pointers,
|
|
|
|
void *[] /* svm_pointers[] */,
|
|
|
|
void * svm_pointers[],
|
|
|
|
void * /* user_data */),
|
|
|
|
void * user_data),
|
|
|
|
void * /* user_data */,
|
|
|
|
void * user_data,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_event * event) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clEnqueueSVMMemcpyARM(cl_command_queue /* command_queue */,
|
|
|
|
clEnqueueSVMMemcpyARM(cl_command_queue command_queue,
|
|
|
|
cl_bool /* blocking_copy */,
|
|
|
|
cl_bool blocking_copy,
|
|
|
|
void * /* dst_ptr */,
|
|
|
|
void * dst_ptr,
|
|
|
|
const void * /* src_ptr */,
|
|
|
|
const void * src_ptr,
|
|
|
|
size_t /* size */,
|
|
|
|
size_t size,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_event * event) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clEnqueueSVMMemFillARM(cl_command_queue /* command_queue */,
|
|
|
|
clEnqueueSVMMemFillARM(cl_command_queue command_queue,
|
|
|
|
void * /* svm_ptr */,
|
|
|
|
void * svm_ptr,
|
|
|
|
const void * /* pattern */,
|
|
|
|
const void * pattern,
|
|
|
|
size_t /* pattern_size */,
|
|
|
|
size_t pattern_size,
|
|
|
|
size_t /* size */,
|
|
|
|
size_t size,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_event * event) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clEnqueueSVMMapARM(cl_command_queue /* command_queue */,
|
|
|
|
clEnqueueSVMMapARM(cl_command_queue command_queue,
|
|
|
|
cl_bool /* blocking_map */,
|
|
|
|
cl_bool blocking_map,
|
|
|
|
cl_map_flags /* flags */,
|
|
|
|
cl_map_flags flags,
|
|
|
|
void * /* svm_ptr */,
|
|
|
|
void * svm_ptr,
|
|
|
|
size_t /* size */,
|
|
|
|
size_t size,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_event * event) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clEnqueueSVMUnmapARM(cl_command_queue /* command_queue */,
|
|
|
|
clEnqueueSVMUnmapARM(cl_command_queue command_queue,
|
|
|
|
void * /* svm_ptr */,
|
|
|
|
void * svm_ptr,
|
|
|
|
cl_uint /* num_events_in_wait_list */,
|
|
|
|
cl_uint num_events_in_wait_list,
|
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
|
const cl_event * event_wait_list,
|
|
|
|
cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
cl_event * event) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clSetKernelArgSVMPointerARM(cl_kernel /* kernel */,
|
|
|
|
clSetKernelArgSVMPointerARM(cl_kernel kernel,
|
|
|
|
cl_uint /* arg_index */,
|
|
|
|
cl_uint arg_index,
|
|
|
|
const void * /* arg_value */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
const void * arg_value) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
|
clSetKernelExecInfoARM(cl_kernel /* kernel */,
|
|
|
|
clSetKernelExecInfoARM(cl_kernel kernel,
|
|
|
|
cl_kernel_exec_info_arm /* param_name */,
|
|
|
|
cl_kernel_exec_info_arm param_name,
|
|
|
|
size_t /* param_value_size */,
|
|
|
|
size_t param_value_size,
|
|
|
|
const void * /* param_value */) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
const void * param_value) CL_EXT_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************
|
|
|
|
/********************************
|
|
|
|
* cl_arm_get_core_id extension *
|
|
|
|
* cl_arm_get_core_id extension *
|
|
|
|