Commit 2489a0c1 by John Plate Committed by Commit Bot

Fixed OpenCL headers for Windows

Bug: angleproject:5761 Change-Id: I29d1fd3bf862728a3e78418a4f98219828394452 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2807717 Commit-Queue: John Plate <jplate@google.com> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 15b34197
DisableFormat: true DisableFormat: true
SortIncludes: false
# ANGLE OpenCL Headers
The OpenCL headers ANGLE uses are the original headers from Khronos, but they are modified to allow
the macro `CL_API_ENTRY` to be overridden externally.
The modifications have been [submitted](https://github.com/KhronosGroup/OpenCL-Headers/pull/162) to
Khronos, and this document should be updated after they are merged.
### Regenerating headers
1. Clone [https://github.com/KhronosGroup/OpenCL-Headers.git](https://github.com/KhronosGroup/OpenCL-Headers.git).
1. Copy all headers from `OpenCL-Headers/CL/` over to this folder.
1. Edit the headers:
* Change all occurences of `typedef CL_API_ENTRY` to `typedef`.
* In `cl_platform.h` change both `#define CL_API_ENTRY` to
```
#if !defined(CL_API_ENTRY)
#define CL_API_ENTRY
#endif
```
...@@ -75,7 +75,7 @@ typedef cl_uint cl_d3d10_device_set_khr; ...@@ -75,7 +75,7 @@ typedef cl_uint cl_d3d10_device_set_khr;
/******************************************************************************/ /******************************************************************************/
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D10KHR_fn)( typedef cl_int (CL_API_CALL *clGetDeviceIDsFromD3D10KHR_fn)(
cl_platform_id platform, cl_platform_id platform,
cl_d3d10_device_source_khr d3d_device_source, cl_d3d10_device_source_khr d3d_device_source,
void * d3d_object, void * d3d_object,
...@@ -84,27 +84,27 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D10KHR_fn)( ...@@ -84,27 +84,27 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D10KHR_fn)(
cl_device_id * devices, cl_device_id * devices,
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_0; cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10BufferKHR_fn)( typedef cl_mem (CL_API_CALL *clCreateFromD3D10BufferKHR_fn)(
cl_context context, cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
ID3D10Buffer * resource, ID3D10Buffer * resource,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10Texture2DKHR_fn)( typedef cl_mem (CL_API_CALL *clCreateFromD3D10Texture2DKHR_fn)(
cl_context context, cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
ID3D10Texture2D * resource, ID3D10Texture2D * resource,
UINT subresource, UINT subresource,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10Texture3DKHR_fn)( typedef cl_mem (CL_API_CALL *clCreateFromD3D10Texture3DKHR_fn)(
cl_context context, cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
ID3D10Texture3D * resource, ID3D10Texture3D * resource,
UINT subresource, UINT subresource,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D10ObjectsKHR_fn)( typedef cl_int (CL_API_CALL *clEnqueueAcquireD3D10ObjectsKHR_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem * mem_objects, const cl_mem * mem_objects,
...@@ -112,7 +112,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D10ObjectsKHR_fn)( ...@@ -112,7 +112,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D10ObjectsKHR_fn)(
const cl_event * event_wait_list, const cl_event * event_wait_list,
cl_event * event) CL_API_SUFFIX__VERSION_1_0; cl_event * event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseD3D10ObjectsKHR_fn)( typedef cl_int (CL_API_CALL *clEnqueueReleaseD3D10ObjectsKHR_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem * mem_objects, const cl_mem * mem_objects,
......
...@@ -75,7 +75,7 @@ typedef cl_uint cl_d3d11_device_set_khr; ...@@ -75,7 +75,7 @@ typedef cl_uint cl_d3d11_device_set_khr;
/******************************************************************************/ /******************************************************************************/
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D11KHR_fn)( typedef cl_int (CL_API_CALL *clGetDeviceIDsFromD3D11KHR_fn)(
cl_platform_id platform, cl_platform_id platform,
cl_d3d11_device_source_khr d3d_device_source, cl_d3d11_device_source_khr d3d_device_source,
void * d3d_object, void * d3d_object,
...@@ -84,27 +84,27 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D11KHR_fn)( ...@@ -84,27 +84,27 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D11KHR_fn)(
cl_device_id * devices, cl_device_id * devices,
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_2; cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11BufferKHR_fn)( typedef cl_mem (CL_API_CALL *clCreateFromD3D11BufferKHR_fn)(
cl_context context, cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
ID3D11Buffer * resource, ID3D11Buffer * resource,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11Texture2DKHR_fn)( typedef cl_mem (CL_API_CALL *clCreateFromD3D11Texture2DKHR_fn)(
cl_context context, cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
ID3D11Texture2D * resource, ID3D11Texture2D * resource,
UINT subresource, UINT subresource,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11Texture3DKHR_fn)( typedef cl_mem (CL_API_CALL *clCreateFromD3D11Texture3DKHR_fn)(
cl_context context, cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
ID3D11Texture3D * resource, ID3D11Texture3D * resource,
UINT subresource, UINT subresource,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D11ObjectsKHR_fn)( typedef cl_int (CL_API_CALL *clEnqueueAcquireD3D11ObjectsKHR_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem * mem_objects, const cl_mem * mem_objects,
...@@ -112,7 +112,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D11ObjectsKHR_fn)( ...@@ -112,7 +112,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D11ObjectsKHR_fn)(
const cl_event * event_wait_list, const cl_event * event_wait_list,
cl_event * event) CL_API_SUFFIX__VERSION_1_2; cl_event * event) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseD3D11ObjectsKHR_fn)( typedef cl_int (CL_API_CALL *clEnqueueReleaseD3D11ObjectsKHR_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem * mem_objects, const cl_mem * mem_objects,
......
...@@ -76,7 +76,7 @@ typedef struct _cl_dx9_surface_info_khr ...@@ -76,7 +76,7 @@ typedef struct _cl_dx9_surface_info_khr
/******************************************************************************/ /******************************************************************************/
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromDX9MediaAdapterKHR_fn)( typedef cl_int (CL_API_CALL *clGetDeviceIDsFromDX9MediaAdapterKHR_fn)(
cl_platform_id platform, cl_platform_id platform,
cl_uint num_media_adapters, cl_uint num_media_adapters,
cl_dx9_media_adapter_type_khr * media_adapter_type, cl_dx9_media_adapter_type_khr * media_adapter_type,
...@@ -86,7 +86,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromDX9MediaAdapterKHR_f ...@@ -86,7 +86,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromDX9MediaAdapterKHR_f
cl_device_id * devices, cl_device_id * devices,
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_2; cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceKHR_fn)( typedef cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceKHR_fn)(
cl_context context, cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
cl_dx9_media_adapter_type_khr adapter_type, cl_dx9_media_adapter_type_khr adapter_type,
...@@ -94,7 +94,7 @@ typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceKHR_fn)( ...@@ -94,7 +94,7 @@ typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceKHR_fn)(
cl_uint plane, cl_uint plane,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireDX9MediaSurfacesKHR_fn)( typedef cl_int (CL_API_CALL *clEnqueueAcquireDX9MediaSurfacesKHR_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem * mem_objects, const cl_mem * mem_objects,
...@@ -102,7 +102,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireDX9MediaSurfacesKHR_fn ...@@ -102,7 +102,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireDX9MediaSurfacesKHR_fn
const cl_event * event_wait_list, const cl_event * event_wait_list,
cl_event * event) CL_API_SUFFIX__VERSION_1_2; cl_event * event) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseDX9MediaSurfacesKHR_fn)( typedef cl_int (CL_API_CALL *clEnqueueReleaseDX9MediaSurfacesKHR_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem * mem_objects, const cl_mem * mem_objects,
...@@ -161,7 +161,7 @@ clGetDeviceIDsFromDX9INTEL( ...@@ -161,7 +161,7 @@ clGetDeviceIDsFromDX9INTEL(
cl_device_id* devices, cl_device_id* 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 (CL_API_CALL* clGetDeviceIDsFromDX9INTEL_fn)( typedef cl_int (CL_API_CALL* clGetDeviceIDsFromDX9INTEL_fn)(
cl_platform_id platform, cl_platform_id platform,
cl_dx9_device_source_intel dx9_device_source, cl_dx9_device_source_intel dx9_device_source,
void* dx9_object, void* dx9_object,
...@@ -179,7 +179,7 @@ clCreateFromDX9MediaSurfaceINTEL( ...@@ -179,7 +179,7 @@ clCreateFromDX9MediaSurfaceINTEL(
UINT plane, UINT plane,
cl_int* errcode_ret) CL_EXT_SUFFIX__VERSION_1_1; cl_int* errcode_ret) CL_EXT_SUFFIX__VERSION_1_1;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceINTEL_fn)( typedef cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceINTEL_fn)(
cl_context context, cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
IDirect3DSurface9* resource, IDirect3DSurface9* resource,
...@@ -196,7 +196,7 @@ clEnqueueAcquireDX9ObjectsINTEL( ...@@ -196,7 +196,7 @@ clEnqueueAcquireDX9ObjectsINTEL(
const cl_event* event_wait_list, const cl_event* event_wait_list,
cl_event* event) CL_EXT_SUFFIX__VERSION_1_1; cl_event* event) CL_EXT_SUFFIX__VERSION_1_1;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireDX9ObjectsINTEL_fn)( typedef cl_int (CL_API_CALL *clEnqueueAcquireDX9ObjectsINTEL_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem* mem_objects, const cl_mem* mem_objects,
...@@ -213,7 +213,7 @@ clEnqueueReleaseDX9ObjectsINTEL( ...@@ -213,7 +213,7 @@ clEnqueueReleaseDX9ObjectsINTEL(
const cl_event* event_wait_list, const cl_event* event_wait_list,
cl_event* event) CL_EXT_SUFFIX__VERSION_1_1; cl_event* event) CL_EXT_SUFFIX__VERSION_1_1;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseDX9ObjectsINTEL_fn)( typedef cl_int (CL_API_CALL *clEnqueueReleaseDX9ObjectsINTEL_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
cl_mem* mem_objects, cl_mem* mem_objects,
......
...@@ -56,7 +56,7 @@ clCreateFromEGLImageKHR(cl_context context, ...@@ -56,7 +56,7 @@ clCreateFromEGLImageKHR(cl_context context,
const cl_egl_image_properties_khr * properties, const cl_egl_image_properties_khr * properties,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromEGLImageKHR_fn)( typedef cl_mem (CL_API_CALL *clCreateFromEGLImageKHR_fn)(
cl_context context, cl_context context,
CLeglDisplayKHR egldisplay, CLeglDisplayKHR egldisplay,
CLeglImageKHR eglimage, CLeglImageKHR eglimage,
...@@ -73,7 +73,7 @@ clEnqueueAcquireEGLObjectsKHR(cl_command_queue command_queue, ...@@ -73,7 +73,7 @@ clEnqueueAcquireEGLObjectsKHR(cl_command_queue command_queue,
const cl_event * event_wait_list, const cl_event * event_wait_list,
cl_event * event) CL_API_SUFFIX__VERSION_1_0; cl_event * event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireEGLObjectsKHR_fn)( typedef cl_int (CL_API_CALL *clEnqueueAcquireEGLObjectsKHR_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem * mem_objects, const cl_mem * mem_objects,
...@@ -90,7 +90,7 @@ clEnqueueReleaseEGLObjectsKHR(cl_command_queue command_queue, ...@@ -90,7 +90,7 @@ clEnqueueReleaseEGLObjectsKHR(cl_command_queue command_queue,
const cl_event * event_wait_list, const cl_event * event_wait_list,
cl_event * event) CL_API_SUFFIX__VERSION_1_0; cl_event * event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseEGLObjectsKHR_fn)( typedef cl_int (CL_API_CALL *clEnqueueReleaseEGLObjectsKHR_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_uint num_objects, cl_uint num_objects,
const cl_mem * mem_objects, const cl_mem * mem_objects,
...@@ -107,7 +107,7 @@ clCreateEventFromEGLSyncKHR(cl_context context, ...@@ -107,7 +107,7 @@ clCreateEventFromEGLSyncKHR(cl_context context,
CLeglDisplayKHR display, CLeglDisplayKHR display,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_event (CL_API_CALL *clCreateEventFromEGLSyncKHR_fn)( typedef cl_event (CL_API_CALL *clCreateEventFromEGLSyncKHR_fn)(
cl_context context, cl_context context,
CLeglSyncKHR sync, CLeglSyncKHR sync,
CLeglDisplayKHR display, CLeglDisplayKHR display,
......
...@@ -102,7 +102,7 @@ clIcdGetPlatformIDsKHR(cl_uint num_entries, ...@@ -102,7 +102,7 @@ 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 typedef cl_int
(CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(cl_uint num_entries, (CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(cl_uint num_entries,
cl_platform_id * platforms, cl_platform_id * platforms,
cl_uint * num_platforms); cl_uint * num_platforms);
...@@ -129,7 +129,7 @@ clCreateProgramWithILKHR(cl_context context, ...@@ -129,7 +129,7 @@ clCreateProgramWithILKHR(cl_context context,
size_t length, size_t length,
cl_int * errcode_ret); cl_int * errcode_ret);
typedef CL_API_ENTRY cl_program typedef cl_program
(CL_API_CALL *clCreateProgramWithILKHR_fn)(cl_context context, (CL_API_CALL *clCreateProgramWithILKHR_fn)(cl_context context,
const void * il, const void * il,
size_t length, size_t length,
...@@ -178,7 +178,7 @@ typedef CL_API_ENTRY cl_program ...@@ -178,7 +178,7 @@ typedef CL_API_ENTRY cl_program
extern CL_API_ENTRY cl_int CL_API_CALL extern CL_API_ENTRY cl_int CL_API_CALL
clTerminateContextKHR(cl_context context) CL_EXT_SUFFIX__VERSION_1_2; clTerminateContextKHR(cl_context context) CL_EXT_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int typedef cl_int
(CL_API_CALL *clTerminateContextKHR_fn)(cl_context context) CL_EXT_SUFFIX__VERSION_1_2; (CL_API_CALL *clTerminateContextKHR_fn)(cl_context context) CL_EXT_SUFFIX__VERSION_1_2;
...@@ -206,7 +206,7 @@ clCreateCommandQueueWithPropertiesKHR(cl_context context, ...@@ -206,7 +206,7 @@ clCreateCommandQueueWithPropertiesKHR(cl_context context,
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_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,
...@@ -270,13 +270,13 @@ typedef CL_API_ENTRY cl_command_queue ...@@ -270,13 +270,13 @@ typedef CL_API_ENTRY cl_command_queue
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_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_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;
...@@ -287,7 +287,7 @@ clCreateSubDevicesEXT(cl_device_id in_device, ...@@ -287,7 +287,7 @@ clCreateSubDevicesEXT(cl_device_id in_device,
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_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,
...@@ -346,7 +346,7 @@ clEnqueueMigrateMemObjectEXT(cl_command_queue command_queue, ...@@ -346,7 +346,7 @@ clEnqueueMigrateMemObjectEXT(cl_command_queue command_queue,
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_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,
...@@ -566,7 +566,7 @@ clGetKernelSubGroupInfoKHR(cl_kernel in_kernel, ...@@ -566,7 +566,7 @@ clGetKernelSubGroupInfoKHR(cl_kernel in_kernel,
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_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,
...@@ -1068,7 +1068,7 @@ clCreateAcceleratorINTEL( ...@@ -1068,7 +1068,7 @@ clCreateAcceleratorINTEL(
const void* descriptor, const void* descriptor,
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_accelerator_intel (CL_API_CALL *clCreateAcceleratorINTEL_fn)( typedef cl_accelerator_intel (CL_API_CALL *clCreateAcceleratorINTEL_fn)(
cl_context context, cl_context context,
cl_accelerator_type_intel accelerator_type, cl_accelerator_type_intel accelerator_type,
size_t descriptor_size, size_t descriptor_size,
...@@ -1083,7 +1083,7 @@ clGetAcceleratorInfoINTEL( ...@@ -1083,7 +1083,7 @@ clGetAcceleratorInfoINTEL(
void* param_value, void* param_value,
size_t* param_value_size_ret) CL_EXT_SUFFIX__VERSION_1_2; size_t* param_value_size_ret) CL_EXT_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetAcceleratorInfoINTEL_fn)( typedef cl_int (CL_API_CALL *clGetAcceleratorInfoINTEL_fn)(
cl_accelerator_intel accelerator, cl_accelerator_intel accelerator,
cl_accelerator_info_intel param_name, cl_accelerator_info_intel param_name,
size_t param_value_size, size_t param_value_size,
...@@ -1094,14 +1094,14 @@ extern CL_API_ENTRY cl_int CL_API_CALL ...@@ -1094,14 +1094,14 @@ extern CL_API_ENTRY cl_int CL_API_CALL
clRetainAcceleratorINTEL( clRetainAcceleratorINTEL(
cl_accelerator_intel accelerator) CL_EXT_SUFFIX__VERSION_1_2; cl_accelerator_intel accelerator) CL_EXT_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clRetainAcceleratorINTEL_fn)( typedef cl_int (CL_API_CALL *clRetainAcceleratorINTEL_fn)(
cl_accelerator_intel accelerator) CL_EXT_SUFFIX__VERSION_1_2; cl_accelerator_intel accelerator) CL_EXT_SUFFIX__VERSION_1_2;
extern CL_API_ENTRY cl_int CL_API_CALL extern CL_API_ENTRY cl_int CL_API_CALL
clReleaseAcceleratorINTEL( clReleaseAcceleratorINTEL(
cl_accelerator_intel accelerator) CL_EXT_SUFFIX__VERSION_1_2; cl_accelerator_intel accelerator) CL_EXT_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clReleaseAcceleratorINTEL_fn)( typedef cl_int (CL_API_CALL *clReleaseAcceleratorINTEL_fn)(
cl_accelerator_intel accelerator) CL_EXT_SUFFIX__VERSION_1_2; cl_accelerator_intel accelerator) CL_EXT_SUFFIX__VERSION_1_2;
/****************************************** /******************************************
...@@ -1374,7 +1374,7 @@ clHostMemAllocINTEL( ...@@ -1374,7 +1374,7 @@ clHostMemAllocINTEL(
cl_uint alignment, cl_uint alignment,
cl_int* errcode_ret); cl_int* errcode_ret);
typedef CL_API_ENTRY void* (CL_API_CALL * typedef void* (CL_API_CALL *
clHostMemAllocINTEL_fn)( clHostMemAllocINTEL_fn)(
cl_context context, cl_context context,
const cl_mem_properties_intel* properties, const cl_mem_properties_intel* properties,
...@@ -1391,7 +1391,7 @@ clDeviceMemAllocINTEL( ...@@ -1391,7 +1391,7 @@ clDeviceMemAllocINTEL(
cl_uint alignment, cl_uint alignment,
cl_int* errcode_ret); cl_int* errcode_ret);
typedef CL_API_ENTRY void* (CL_API_CALL * typedef void* (CL_API_CALL *
clDeviceMemAllocINTEL_fn)( clDeviceMemAllocINTEL_fn)(
cl_context context, cl_context context,
cl_device_id device, cl_device_id device,
...@@ -1409,7 +1409,7 @@ clSharedMemAllocINTEL( ...@@ -1409,7 +1409,7 @@ clSharedMemAllocINTEL(
cl_uint alignment, cl_uint alignment,
cl_int* errcode_ret); cl_int* errcode_ret);
typedef CL_API_ENTRY void* (CL_API_CALL * typedef void* (CL_API_CALL *
clSharedMemAllocINTEL_fn)( clSharedMemAllocINTEL_fn)(
cl_context context, cl_context context,
cl_device_id device, cl_device_id device,
...@@ -1423,7 +1423,7 @@ clMemFreeINTEL( ...@@ -1423,7 +1423,7 @@ clMemFreeINTEL(
cl_context context, cl_context context,
void* ptr); void* ptr);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clMemFreeINTEL_fn)( clMemFreeINTEL_fn)(
cl_context context, cl_context context,
void* ptr); void* ptr);
...@@ -1433,7 +1433,7 @@ clMemBlockingFreeINTEL( ...@@ -1433,7 +1433,7 @@ clMemBlockingFreeINTEL(
cl_context context, cl_context context,
void* ptr); void* ptr);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clMemBlockingFreeINTEL_fn)( clMemBlockingFreeINTEL_fn)(
cl_context context, cl_context context,
void* ptr); void* ptr);
...@@ -1447,7 +1447,7 @@ clGetMemAllocInfoINTEL( ...@@ -1447,7 +1447,7 @@ clGetMemAllocInfoINTEL(
void* param_value, void* param_value,
size_t* param_value_size_ret); size_t* param_value_size_ret);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clGetMemAllocInfoINTEL_fn)( clGetMemAllocInfoINTEL_fn)(
cl_context context, cl_context context,
const void* ptr, const void* ptr,
...@@ -1462,7 +1462,7 @@ clSetKernelArgMemPointerINTEL( ...@@ -1462,7 +1462,7 @@ clSetKernelArgMemPointerINTEL(
cl_uint arg_index, cl_uint arg_index,
const void* arg_value); const void* arg_value);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clSetKernelArgMemPointerINTEL_fn)( clSetKernelArgMemPointerINTEL_fn)(
cl_kernel kernel, cl_kernel kernel,
cl_uint arg_index, cl_uint arg_index,
...@@ -1478,7 +1478,7 @@ clEnqueueMemsetINTEL( /* Deprecated */ ...@@ -1478,7 +1478,7 @@ clEnqueueMemsetINTEL( /* Deprecated */
const cl_event* event_wait_list, const cl_event* event_wait_list,
cl_event* event); cl_event* event);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clEnqueueMemsetINTEL_fn)( /* Deprecated */ clEnqueueMemsetINTEL_fn)( /* Deprecated */
cl_command_queue command_queue, cl_command_queue command_queue,
void* dst_ptr, void* dst_ptr,
...@@ -1499,7 +1499,7 @@ clEnqueueMemFillINTEL( ...@@ -1499,7 +1499,7 @@ clEnqueueMemFillINTEL(
const cl_event* event_wait_list, const cl_event* event_wait_list,
cl_event* event); cl_event* event);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clEnqueueMemFillINTEL_fn)( clEnqueueMemFillINTEL_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
void* dst_ptr, void* dst_ptr,
...@@ -1521,7 +1521,7 @@ clEnqueueMemcpyINTEL( ...@@ -1521,7 +1521,7 @@ clEnqueueMemcpyINTEL(
const cl_event* event_wait_list, const cl_event* event_wait_list,
cl_event* event); cl_event* event);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clEnqueueMemcpyINTEL_fn)( clEnqueueMemcpyINTEL_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_bool blocking, cl_bool blocking,
...@@ -1547,7 +1547,7 @@ clEnqueueMigrateMemINTEL( ...@@ -1547,7 +1547,7 @@ clEnqueueMigrateMemINTEL(
const cl_event* event_wait_list, const cl_event* event_wait_list,
cl_event* event); cl_event* event);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clEnqueueMigrateMemINTEL_fn)( clEnqueueMigrateMemINTEL_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
const void* ptr, const void* ptr,
...@@ -1569,7 +1569,7 @@ clEnqueueMemAdviseINTEL( ...@@ -1569,7 +1569,7 @@ clEnqueueMemAdviseINTEL(
const cl_event* event_wait_list, const cl_event* event_wait_list,
cl_event* event); cl_event* event);
typedef CL_API_ENTRY cl_int (CL_API_CALL * typedef cl_int (CL_API_CALL *
clEnqueueMemAdviseINTEL_fn)( clEnqueueMemAdviseINTEL_fn)(
cl_command_queue command_queue, cl_command_queue command_queue,
const void* ptr, const void* ptr,
...@@ -1594,7 +1594,7 @@ clCreateBufferWithPropertiesINTEL( ...@@ -1594,7 +1594,7 @@ clCreateBufferWithPropertiesINTEL(
void * host_ptr, void * host_ptr,
cl_int * errcode_ret) CL_EXT_SUFFIX__VERSION_1_0; cl_int * errcode_ret) CL_EXT_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem (CL_API_CALL * typedef cl_mem (CL_API_CALL *
clCreateBufferWithPropertiesINTEL_fn)( clCreateBufferWithPropertiesINTEL_fn)(
cl_context context, cl_context context,
const cl_mem_properties_intel* properties, const cl_mem_properties_intel* properties,
......
...@@ -145,7 +145,7 @@ clGetGLContextInfoKHR(const cl_context_properties * properties, ...@@ -145,7 +145,7 @@ clGetGLContextInfoKHR(const cl_context_properties * properties,
void * param_value, void * param_value,
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0; size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetGLContextInfoKHR_fn)( typedef cl_int (CL_API_CALL *clGetGLContextInfoKHR_fn)(
const cl_context_properties * properties, const cl_context_properties * properties,
cl_gl_context_info param_name, cl_gl_context_info param_name,
size_t param_value_size, size_t param_value_size,
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
#include <CL/cl_gl.h> #include <CL/cl_gl.h>
#if defined(_WIN32) #if defined(_WIN32)
#include <CL/cl_d3d10.h>
#include <CL/cl_d3d11.h> #include <CL/cl_d3d11.h>
#include <CL/cl_d3d10.h>
#include <CL/cl_dx9_media_sharing.h> #include <CL/cl_dx9_media_sharing.h>
#endif #endif
...@@ -41,35 +41,35 @@ extern "C" { ...@@ -41,35 +41,35 @@ extern "C" {
/* API function pointer definitions */ /* API function pointer definitions */
// Platform APIs // Platform APIs
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetPlatformIDs)( typedef cl_int(CL_API_CALL *cl_api_clGetPlatformIDs)(
cl_uint num_entries, cl_platform_id *platforms, cl_uint num_entries, cl_platform_id *platforms,
cl_uint *num_platforms) CL_API_SUFFIX__VERSION_1_0; cl_uint *num_platforms) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetPlatformInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetPlatformInfo)(
cl_platform_id platform, cl_platform_info param_name, cl_platform_id platform, cl_platform_info param_name,
size_t param_value_size, void *param_value, size_t param_value_size, void *param_value,
size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0; size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
// Device APIs // Device APIs
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetDeviceIDs)( typedef cl_int(CL_API_CALL *cl_api_clGetDeviceIDs)(
cl_platform_id platform, cl_device_type device_type, cl_uint num_entries, 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; cl_device_id *devices, cl_uint *num_devices) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetDeviceInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetDeviceInfo)(
cl_device_id device, cl_device_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clCreateSubDevices)( typedef cl_int(CL_API_CALL *cl_api_clCreateSubDevices)(
cl_device_id in_device, cl_device_id in_device,
const cl_device_partition_property *partition_properties, const cl_device_partition_property *partition_properties,
cl_uint num_entries, cl_device_id *out_devices, cl_uint *num_devices); cl_uint num_entries, cl_device_id *out_devices, cl_uint *num_devices);
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainDevice)( typedef cl_int(CL_API_CALL *cl_api_clRetainDevice)(
cl_device_id device) CL_API_SUFFIX__VERSION_1_2; cl_device_id device) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseDevice)( typedef cl_int(CL_API_CALL *cl_api_clReleaseDevice)(
cl_device_id device) CL_API_SUFFIX__VERSION_1_2; cl_device_id device) CL_API_SUFFIX__VERSION_1_2;
#else #else
...@@ -81,36 +81,36 @@ typedef void *cl_api_clReleaseDevice; ...@@ -81,36 +81,36 @@ typedef void *cl_api_clReleaseDevice;
#endif #endif
// Context APIs // Context APIs
typedef CL_API_ENTRY cl_context(CL_API_CALL *cl_api_clCreateContext)( typedef cl_context(CL_API_CALL *cl_api_clCreateContext)(
const cl_context_properties *properties, cl_uint num_devices, const cl_context_properties *properties, cl_uint num_devices,
const cl_device_id *devices, const cl_device_id *devices,
void(CL_CALLBACK *pfn_notify)(const char *, const void *, size_t, void *), void(CL_CALLBACK *pfn_notify)(const char *, const void *, size_t, void *),
void *user_data, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; void *user_data, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_context(CL_API_CALL *cl_api_clCreateContextFromType)( typedef cl_context(CL_API_CALL *cl_api_clCreateContextFromType)(
const cl_context_properties *properties, cl_device_type device_type, const cl_context_properties *properties, cl_device_type device_type,
void(CL_CALLBACK *pfn_notify)(const char *, const void *, size_t, void *), void(CL_CALLBACK *pfn_notify)(const char *, const void *, size_t, void *),
void *user_data, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; void *user_data, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainContext)( typedef cl_int(CL_API_CALL *cl_api_clRetainContext)(
cl_context context) CL_API_SUFFIX__VERSION_1_0; cl_context context) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseContext)( typedef cl_int(CL_API_CALL *cl_api_clReleaseContext)(
cl_context context) CL_API_SUFFIX__VERSION_1_0; cl_context context) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetContextInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetContextInfo)(
cl_context context, cl_context_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
// Command Queue APIs // Command Queue APIs
typedef CL_API_ENTRY cl_command_queue(CL_API_CALL *cl_api_clCreateCommandQueue)( typedef cl_command_queue(CL_API_CALL *cl_api_clCreateCommandQueue)(
cl_context context, cl_device_id device, cl_context context, cl_device_id device,
cl_command_queue_properties properties, cl_command_queue_properties properties,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_2_0 #ifdef CL_VERSION_2_0
typedef CL_API_ENTRY typedef
cl_command_queue(CL_API_CALL *cl_api_clCreateCommandQueueWithProperties)( cl_command_queue(CL_API_CALL *cl_api_clCreateCommandQueueWithProperties)(
cl_context /* context */, cl_device_id /* device */, cl_context /* context */, cl_device_id /* device */,
const cl_queue_properties * /* properties */, const cl_queue_properties * /* properties */,
...@@ -122,25 +122,25 @@ typedef void *cl_api_clCreateCommandQueueWithProperties; ...@@ -122,25 +122,25 @@ typedef void *cl_api_clCreateCommandQueueWithProperties;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainCommandQueue)( typedef cl_int(CL_API_CALL *cl_api_clRetainCommandQueue)(
cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0; cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseCommandQueue)( typedef cl_int(CL_API_CALL *cl_api_clReleaseCommandQueue)(
cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0; cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetCommandQueueInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetCommandQueueInfo)(
cl_command_queue command_queue, cl_command_queue_info param_name, cl_command_queue command_queue, cl_command_queue_info param_name,
size_t param_value_size, void *param_value, size_t param_value_size, void *param_value,
size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0; size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
// Memory Object APIs // Memory Object APIs
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateBuffer)( typedef cl_mem(CL_API_CALL *cl_api_clCreateBuffer)(
cl_context context, cl_mem_flags flags, size_t size, void *host_ptr, cl_context context, cl_mem_flags flags, size_t size, void *host_ptr,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateImage)( typedef cl_mem(CL_API_CALL *cl_api_clCreateImage)(
cl_context context, cl_mem_flags flags, const cl_image_format *image_format, cl_context context, cl_mem_flags flags, const cl_image_format *image_format,
const cl_image_desc *image_desc, void *host_ptr, const cl_image_desc *image_desc, void *host_ptr,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2;
...@@ -153,17 +153,17 @@ typedef void *cl_api_clCreateImage; ...@@ -153,17 +153,17 @@ typedef void *cl_api_clCreateImage;
#ifdef CL_VERSION_3_0 #ifdef CL_VERSION_3_0
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateBufferWithProperties)( typedef cl_mem(CL_API_CALL *cl_api_clCreateBufferWithProperties)(
cl_context context, const cl_mem_properties *properties, cl_mem_flags flags, cl_context context, const cl_mem_properties *properties, cl_mem_flags flags,
size_t size, void *host_ptr, size_t size, void *host_ptr,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_3_0; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_3_0;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateImageWithProperties)( typedef cl_mem(CL_API_CALL *cl_api_clCreateImageWithProperties)(
cl_context context, const cl_mem_properties *properties, cl_mem_flags flags, cl_context context, const cl_mem_properties *properties, cl_mem_flags flags,
const cl_image_format *image_format, const cl_image_desc *image_desc, const cl_image_format *image_format, const cl_image_desc *image_desc,
void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_3_0; void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_3_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL* cl_api_clSetContextDestructorCallback)( typedef cl_int(CL_API_CALL* cl_api_clSetContextDestructorCallback)(
cl_context context, cl_context context,
void(CL_CALLBACK* pfn_notify)(cl_context context, void* user_data), void(CL_CALLBACK* pfn_notify)(cl_context context, void* user_data),
void* user_data) CL_API_SUFFIX__VERSION_3_0; void* user_data) CL_API_SUFFIX__VERSION_3_0;
...@@ -176,43 +176,43 @@ typedef void *cl_api_clSetContextDestructorCallback; ...@@ -176,43 +176,43 @@ typedef void *cl_api_clSetContextDestructorCallback;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainMemObject)( typedef cl_int(CL_API_CALL *cl_api_clRetainMemObject)(
cl_mem memobj) CL_API_SUFFIX__VERSION_1_0; cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseMemObject)( typedef cl_int(CL_API_CALL *cl_api_clReleaseMemObject)(
cl_mem memobj) CL_API_SUFFIX__VERSION_1_0; cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetSupportedImageFormats)( typedef cl_int(CL_API_CALL *cl_api_clGetSupportedImageFormats)(
cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, 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_entries, cl_image_format *image_formats,
cl_uint *num_image_formats) CL_API_SUFFIX__VERSION_1_0; cl_uint *num_image_formats) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetMemObjectInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetMemObjectInfo)(
cl_mem memobj, cl_mem_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetImageInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetImageInfo)(
cl_mem image, cl_image_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_2_0 #ifdef CL_VERSION_2_0
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreatePipe)( typedef cl_mem(CL_API_CALL *cl_api_clCreatePipe)(
cl_context /* context */, cl_mem_flags /* flags */, cl_context /* context */, cl_mem_flags /* flags */,
cl_uint /* pipe_packet_size */, cl_uint /* pipe_max_packets */, cl_uint /* pipe_packet_size */, cl_uint /* pipe_max_packets */,
const cl_pipe_properties * /* properties */, const cl_pipe_properties * /* properties */,
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_2_0; cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetPipeInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetPipeInfo)(
cl_mem /* pipe */, cl_pipe_info /* param_name */, cl_mem /* pipe */, cl_pipe_info /* param_name */,
size_t /* param_value_size */, void * /* param_value */, size_t /* param_value_size */, void * /* param_value */,
size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_2_0; size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY void *(CL_API_CALL *cl_api_clSVMAlloc)( typedef void *(CL_API_CALL *cl_api_clSVMAlloc)(
cl_context /* context */, cl_svm_mem_flags /* flags */, size_t /* size */, cl_context /* context */, cl_svm_mem_flags /* flags */, size_t /* size */,
unsigned int /* alignment */)CL_API_SUFFIX__VERSION_2_0; unsigned int /* alignment */)CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY void(CL_API_CALL *cl_api_clSVMFree)( typedef void(CL_API_CALL *cl_api_clSVMFree)(
cl_context /* context */, cl_context /* context */,
void * /* svm_pointer */) CL_API_SUFFIX__VERSION_2_0; void * /* svm_pointer */) CL_API_SUFFIX__VERSION_2_0;
...@@ -226,24 +226,24 @@ typedef void *cl_api_clSVMFree; ...@@ -226,24 +226,24 @@ typedef void *cl_api_clSVMFree;
#endif #endif
// Sampler APIs // Sampler APIs
typedef CL_API_ENTRY cl_sampler(CL_API_CALL *cl_api_clCreateSampler)( typedef cl_sampler(CL_API_CALL *cl_api_clCreateSampler)(
cl_context context, cl_bool normalized_coords, cl_context context, cl_bool normalized_coords,
cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainSampler)( typedef cl_int(CL_API_CALL *cl_api_clRetainSampler)(
cl_sampler sampler) CL_API_SUFFIX__VERSION_1_0; cl_sampler sampler) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseSampler)( typedef cl_int(CL_API_CALL *cl_api_clReleaseSampler)(
cl_sampler sampler) CL_API_SUFFIX__VERSION_1_0; cl_sampler sampler) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetSamplerInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetSamplerInfo)(
cl_sampler sampler, cl_sampler_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_2_0 #ifdef CL_VERSION_2_0
typedef CL_API_ENTRY typedef
cl_sampler(CL_API_CALL *cl_api_clCreateSamplerWithProperties)( cl_sampler(CL_API_CALL *cl_api_clCreateSamplerWithProperties)(
cl_context /* context */, cl_context /* context */,
const cl_sampler_properties * /* sampler_properties */, const cl_sampler_properties * /* sampler_properties */,
...@@ -256,18 +256,18 @@ typedef void *cl_api_clCreateSamplerWithProperties; ...@@ -256,18 +256,18 @@ typedef void *cl_api_clCreateSamplerWithProperties;
#endif #endif
// Program Object APIs // Program Object APIs
typedef CL_API_ENTRY cl_program(CL_API_CALL *cl_api_clCreateProgramWithSource)( typedef cl_program(CL_API_CALL *cl_api_clCreateProgramWithSource)(
cl_context context, cl_uint count, const char **strings, cl_context context, cl_uint count, const char **strings,
const size_t *lengths, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; const size_t *lengths, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_program(CL_API_CALL *cl_api_clCreateProgramWithBinary)( typedef cl_program(CL_API_CALL *cl_api_clCreateProgramWithBinary)(
cl_context context, cl_uint num_devices, const cl_device_id *device_list, cl_context context, cl_uint num_devices, const cl_device_id *device_list,
const size_t *lengths, const unsigned char **binaries, const size_t *lengths, const unsigned char **binaries,
cl_int *binary_status, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int *binary_status, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY typedef
cl_program(CL_API_CALL *cl_api_clCreateProgramWithBuiltInKernels)( cl_program(CL_API_CALL *cl_api_clCreateProgramWithBuiltInKernels)(
cl_context context, cl_uint num_devices, const cl_device_id *device_list, cl_context context, cl_uint num_devices, const cl_device_id *device_list,
const char *kernel_names, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2; const char *kernel_names, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2;
...@@ -278,13 +278,13 @@ typedef void *cl_api_clCreateProgramWithBuiltInKernels; ...@@ -278,13 +278,13 @@ typedef void *cl_api_clCreateProgramWithBuiltInKernels;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainProgram)( typedef cl_int(CL_API_CALL *cl_api_clRetainProgram)(
cl_program program) CL_API_SUFFIX__VERSION_1_0; cl_program program) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseProgram)( typedef cl_int(CL_API_CALL *cl_api_clReleaseProgram)(
cl_program program) CL_API_SUFFIX__VERSION_1_0; cl_program program) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clBuildProgram)( typedef cl_int(CL_API_CALL *cl_api_clBuildProgram)(
cl_program program, cl_uint num_devices, const cl_device_id *device_list, cl_program program, cl_uint num_devices, const cl_device_id *device_list,
const char *options, const char *options,
void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data), void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data),
...@@ -292,14 +292,14 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clBuildProgram)( ...@@ -292,14 +292,14 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clBuildProgram)(
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clCompileProgram)( typedef cl_int(CL_API_CALL *cl_api_clCompileProgram)(
cl_program program, cl_uint num_devices, const cl_device_id *device_list, cl_program program, cl_uint num_devices, const cl_device_id *device_list,
const char *options, cl_uint num_input_headers, const char *options, cl_uint num_input_headers,
const cl_program *input_headers, const char **header_include_names, const cl_program *input_headers, const char **header_include_names,
void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data), void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data),
void *user_data) CL_API_SUFFIX__VERSION_1_2; void *user_data) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_program(CL_API_CALL *cl_api_clLinkProgram)( typedef cl_program(CL_API_CALL *cl_api_clLinkProgram)(
cl_context context, cl_uint num_devices, const cl_device_id *device_list, cl_context context, cl_uint num_devices, const cl_device_id *device_list,
const char *options, cl_uint num_input_programs, const char *options, cl_uint num_input_programs,
const cl_program *input_programs, const cl_program *input_programs,
...@@ -315,12 +315,12 @@ typedef void *cl_api_clLinkProgram; ...@@ -315,12 +315,12 @@ typedef void *cl_api_clLinkProgram;
#ifdef CL_VERSION_2_2 #ifdef CL_VERSION_2_2
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clSetProgramSpecializationConstant)( cl_int(CL_API_CALL *cl_api_clSetProgramSpecializationConstant)(
cl_program program, cl_uint spec_id, size_t spec_size, cl_program program, cl_uint spec_id, size_t spec_size,
const void *spec_value) CL_API_SUFFIX__VERSION_2_2; const void *spec_value) CL_API_SUFFIX__VERSION_2_2;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clSetProgramReleaseCallback)( typedef cl_int(CL_API_CALL *cl_api_clSetProgramReleaseCallback)(
cl_program program, cl_program program,
void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data), void(CL_CALLBACK *pfn_notify)(cl_program program, void *user_data),
void *user_data) CL_API_SUFFIX__VERSION_2_2; void *user_data) CL_API_SUFFIX__VERSION_2_2;
...@@ -334,7 +334,7 @@ typedef void *cl_api_clSetProgramReleaseCallback; ...@@ -334,7 +334,7 @@ typedef void *cl_api_clSetProgramReleaseCallback;
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clUnloadPlatformCompiler)( typedef cl_int(CL_API_CALL *cl_api_clUnloadPlatformCompiler)(
cl_platform_id platform) CL_API_SUFFIX__VERSION_1_2; cl_platform_id platform) CL_API_SUFFIX__VERSION_1_2;
#else #else
...@@ -343,41 +343,41 @@ typedef void *cl_api_clUnloadPlatformCompiler; ...@@ -343,41 +343,41 @@ typedef void *cl_api_clUnloadPlatformCompiler;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetProgramInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetProgramInfo)(
cl_program program, cl_program_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetProgramBuildInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetProgramBuildInfo)(
cl_program program, cl_device_id device, cl_program_build_info param_name, 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, void *param_value,
size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0; size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
// Kernel Object APIs // Kernel Object APIs
typedef CL_API_ENTRY cl_kernel(CL_API_CALL *cl_api_clCreateKernel)( typedef cl_kernel(CL_API_CALL *cl_api_clCreateKernel)(
cl_program program, const char *kernel_name, cl_program program, const char *kernel_name,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clCreateKernelsInProgram)( typedef cl_int(CL_API_CALL *cl_api_clCreateKernelsInProgram)(
cl_program program, cl_uint num_kernels, cl_kernel *kernels, cl_program program, cl_uint num_kernels, cl_kernel *kernels,
cl_uint *num_kernels_ret) CL_API_SUFFIX__VERSION_1_0; cl_uint *num_kernels_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainKernel)( typedef cl_int(CL_API_CALL *cl_api_clRetainKernel)(
cl_kernel kernel) CL_API_SUFFIX__VERSION_1_0; cl_kernel kernel) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseKernel)( typedef cl_int(CL_API_CALL *cl_api_clReleaseKernel)(
cl_kernel kernel) CL_API_SUFFIX__VERSION_1_0; cl_kernel kernel) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clSetKernelArg)( typedef cl_int(CL_API_CALL *cl_api_clSetKernelArg)(
cl_kernel kernel, cl_uint arg_index, size_t arg_size, cl_kernel kernel, cl_uint arg_index, size_t arg_size,
const void *arg_value) CL_API_SUFFIX__VERSION_1_0; const void *arg_value) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetKernelInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetKernelInfo)(
cl_kernel kernel, cl_kernel_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetKernelArgInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetKernelArgInfo)(
cl_kernel kernel, cl_uint arg_indx, cl_kernel_arg_info param_name, cl_kernel kernel, cl_uint arg_indx, cl_kernel_arg_info param_name,
size_t param_value_size, void *param_value, size_t param_value_size, void *param_value,
size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_2; size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_2;
...@@ -388,23 +388,23 @@ typedef void *cl_api_clGetKernelArgInfo; ...@@ -388,23 +388,23 @@ typedef void *cl_api_clGetKernelArgInfo;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetKernelWorkGroupInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetKernelWorkGroupInfo)(
cl_kernel kernel, cl_device_id device, cl_kernel_work_group_info param_name, 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, void *param_value,
size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0; size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_2_0 #ifdef CL_VERSION_2_0
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clSetKernelArgSVMPointer)( typedef cl_int(CL_API_CALL *cl_api_clSetKernelArgSVMPointer)(
cl_kernel /* kernel */, cl_uint /* arg_index */, cl_kernel /* kernel */, cl_uint /* arg_index */,
const void * /* arg_value */) CL_API_SUFFIX__VERSION_2_0; const void * /* arg_value */) CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clSetKernelExecInfo)( typedef cl_int(CL_API_CALL *cl_api_clSetKernelExecInfo)(
cl_kernel /* kernel */, cl_kernel_exec_info /* param_name */, cl_kernel /* kernel */, cl_kernel_exec_info /* param_name */,
size_t /* param_value_size */, size_t /* param_value_size */,
const void * /* param_value */) CL_API_SUFFIX__VERSION_2_0; const void * /* param_value */) CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetKernelSubGroupInfoKHR)( typedef cl_int(CL_API_CALL *cl_api_clGetKernelSubGroupInfoKHR)(
cl_kernel /* in_kernel */, cl_device_id /*in_device*/, cl_kernel /* in_kernel */, cl_device_id /*in_device*/,
cl_kernel_sub_group_info /* param_name */, size_t /*input_value_size*/, cl_kernel_sub_group_info /* param_name */, size_t /*input_value_size*/,
const void * /*input_value*/, size_t /*param_value_size*/, const void * /*input_value*/, size_t /*param_value_size*/,
...@@ -420,33 +420,33 @@ typedef void *cl_api_clGetKernelSubGroupInfoKHR; ...@@ -420,33 +420,33 @@ typedef void *cl_api_clGetKernelSubGroupInfoKHR;
#endif #endif
// Event Object APIs // Event Object APIs
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clWaitForEvents)( typedef cl_int(CL_API_CALL *cl_api_clWaitForEvents)(
cl_uint num_events, const cl_event *event_list) CL_API_SUFFIX__VERSION_1_0; cl_uint num_events, const cl_event *event_list) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetEventInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetEventInfo)(
cl_event event, cl_event_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainEvent)(cl_event event) typedef cl_int(CL_API_CALL *cl_api_clRetainEvent)(cl_event event)
CL_API_SUFFIX__VERSION_1_0; CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseEvent)(cl_event event) typedef cl_int(CL_API_CALL *cl_api_clReleaseEvent)(cl_event event)
CL_API_SUFFIX__VERSION_1_0; CL_API_SUFFIX__VERSION_1_0;
// Profiling APIs // Profiling APIs
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetEventProfilingInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetEventProfilingInfo)(
cl_event event, cl_profiling_info param_name, size_t param_value_size, 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; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
// Flush and Finish APIs // Flush and Finish APIs
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clFlush)( typedef cl_int(CL_API_CALL *cl_api_clFlush)(
cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0; cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clFinish)( typedef cl_int(CL_API_CALL *cl_api_clFinish)(
cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0; cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0;
// Enqueued Commands APIs // Enqueued Commands APIs
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueReadBuffer)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueReadBuffer)(
cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read,
size_t offset, size_t cb, void *ptr, cl_uint num_events_in_wait_list, size_t offset, size_t cb, void *ptr, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
...@@ -454,7 +454,7 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueReadBuffer)( ...@@ -454,7 +454,7 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueReadBuffer)(
#ifdef CL_VERSION_1_1 #ifdef CL_VERSION_1_1
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueReadBufferRect)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueReadBufferRect)(
cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read,
const size_t *buffer_origin, const size_t *host_origin, const size_t *buffer_origin, const size_t *host_origin,
const size_t *region, size_t buffer_row_pitch, size_t buffer_slice_pitch, const size_t *region, size_t buffer_row_pitch, size_t buffer_slice_pitch,
...@@ -468,7 +468,7 @@ typedef void *cl_api_clEnqueueReadBufferRect; ...@@ -468,7 +468,7 @@ typedef void *cl_api_clEnqueueReadBufferRect;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueWriteBuffer)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueWriteBuffer)(
cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write,
size_t offset, size_t cb, const void *ptr, cl_uint num_events_in_wait_list, size_t offset, size_t cb, const void *ptr, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
...@@ -476,7 +476,7 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueWriteBuffer)( ...@@ -476,7 +476,7 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueWriteBuffer)(
#ifdef CL_VERSION_1_1 #ifdef CL_VERSION_1_1
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueWriteBufferRect)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueWriteBufferRect)(
cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read,
const size_t *buffer_origin, const size_t *host_origin, const size_t *buffer_origin, const size_t *host_origin,
const size_t *region, size_t buffer_row_pitch, size_t buffer_slice_pitch, const size_t *region, size_t buffer_row_pitch, size_t buffer_slice_pitch,
...@@ -492,7 +492,7 @@ typedef void *cl_api_clEnqueueWriteBufferRect; ...@@ -492,7 +492,7 @@ typedef void *cl_api_clEnqueueWriteBufferRect;
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueFillBuffer)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueFillBuffer)(
cl_command_queue command_queue, cl_mem buffer, const void *pattern, cl_command_queue command_queue, cl_mem buffer, const void *pattern,
size_t pattern_size, size_t offset, size_t cb, size_t pattern_size, size_t offset, size_t cb,
cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_uint num_events_in_wait_list, const cl_event *event_wait_list,
...@@ -504,7 +504,7 @@ typedef void *cl_api_clEnqueueFillBuffer; ...@@ -504,7 +504,7 @@ typedef void *cl_api_clEnqueueFillBuffer;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueCopyBuffer)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueCopyBuffer)(
cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer,
size_t src_offset, size_t dst_offset, size_t cb, size_t src_offset, size_t dst_offset, size_t cb,
cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_uint num_events_in_wait_list, const cl_event *event_wait_list,
...@@ -512,7 +512,7 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueCopyBuffer)( ...@@ -512,7 +512,7 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueCopyBuffer)(
#ifdef CL_VERSION_1_1 #ifdef CL_VERSION_1_1
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueCopyBufferRect)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueCopyBufferRect)(
cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer,
const size_t *src_origin, const size_t *dst_origin, const size_t *region, const size_t *src_origin, const size_t *dst_origin, const size_t *region,
size_t src_row_pitch, size_t src_slice_pitch, size_t dst_row_pitch, size_t src_row_pitch, size_t src_slice_pitch, size_t dst_row_pitch,
...@@ -526,14 +526,14 @@ typedef void *cl_api_clEnqueueCopyBufferRect; ...@@ -526,14 +526,14 @@ typedef void *cl_api_clEnqueueCopyBufferRect;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueReadImage)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueReadImage)(
cl_command_queue command_queue, cl_mem image, cl_bool blocking_read, cl_command_queue command_queue, cl_mem image, cl_bool blocking_read,
const size_t *origin, const size_t *region, size_t row_pitch, 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, size_t slice_pitch, void *ptr, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueWriteImage)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueWriteImage)(
cl_command_queue command_queue, cl_mem image, cl_bool blocking_write, 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, 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, size_t input_slice_pitch, const void *ptr, cl_uint num_events_in_wait_list,
...@@ -542,7 +542,7 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueWriteImage)( ...@@ -542,7 +542,7 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueWriteImage)(
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueFillImage)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueFillImage)(
cl_command_queue command_queue, cl_mem image, const void *fill_color, cl_command_queue command_queue, cl_mem image, const void *fill_color,
const size_t origin[3], const size_t region[3], const size_t origin[3], const size_t region[3],
cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_uint num_events_in_wait_list, const cl_event *event_wait_list,
...@@ -554,45 +554,45 @@ typedef void *cl_api_clEnqueueFillImage; ...@@ -554,45 +554,45 @@ typedef void *cl_api_clEnqueueFillImage;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueCopyImage)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueCopyImage)(
cl_command_queue command_queue, cl_mem src_image, cl_mem dst_image, 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, 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_uint num_events_in_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueCopyImageToBuffer)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueCopyImageToBuffer)(
cl_command_queue command_queue, cl_mem src_image, cl_mem dst_buffer, 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, 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_uint num_events_in_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueCopyBufferToImage)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueCopyBufferToImage)(
cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_image, 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, 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_uint num_events_in_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY void *(CL_API_CALL *cl_api_clEnqueueMapBuffer)( typedef void *(CL_API_CALL *cl_api_clEnqueueMapBuffer)(
cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map, cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map,
cl_map_flags map_flags, size_t offset, size_t cb, cl_map_flags map_flags, size_t offset, size_t cb,
cl_uint num_events_in_wait_list, const cl_event *event_wait_list, 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_event *event, cl_int *errcode_ret)CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY void *(CL_API_CALL *cl_api_clEnqueueMapImage)( typedef void *(CL_API_CALL *cl_api_clEnqueueMapImage)(
cl_command_queue command_queue, cl_mem image, cl_bool blocking_map, 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, cl_map_flags map_flags, const size_t *origin, const size_t *region,
size_t *image_row_pitch, size_t *image_slice_pitch, size_t *image_row_pitch, size_t *image_slice_pitch,
cl_uint num_events_in_wait_list, const cl_event *event_wait_list, 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_event *event, cl_int *errcode_ret)CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueUnmapMemObject)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueUnmapMemObject)(
cl_command_queue command_queue, cl_mem memobj, void *mapped_ptr, 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_uint num_events_in_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueMigrateMemObjects)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueMigrateMemObjects)(
cl_command_queue command_queue, cl_uint num_mem_objects, cl_command_queue command_queue, cl_uint num_mem_objects,
const cl_mem *mem_objects, cl_mem_migration_flags flags, const cl_mem *mem_objects, cl_mem_migration_flags flags,
cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_uint num_events_in_wait_list, const cl_event *event_wait_list,
...@@ -604,19 +604,19 @@ typedef void *cl_api_clEnqueueMigrateMemObjects; ...@@ -604,19 +604,19 @@ typedef void *cl_api_clEnqueueMigrateMemObjects;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueNDRangeKernel)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueNDRangeKernel)(
cl_command_queue command_queue, cl_kernel kernel, cl_uint work_dim, 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 *global_work_offset, const size_t *global_work_size,
const size_t *local_work_size, cl_uint num_events_in_wait_list, const size_t *local_work_size, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueTask)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueTask)(
cl_command_queue command_queue, cl_kernel kernel, cl_command_queue command_queue, cl_kernel kernel,
cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_uint num_events_in_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueNativeKernel)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueNativeKernel)(
cl_command_queue command_queue, void(CL_CALLBACK *user_func)(void *), 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, 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 void **args_mem_loc, cl_uint num_events_in_wait_list,
...@@ -625,17 +625,17 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueNativeKernel)( ...@@ -625,17 +625,17 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueNativeKernel)(
#ifdef CL_VERSION_1_2 #ifdef CL_VERSION_1_2
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueMarkerWithWaitList)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueMarkerWithWaitList)(
cl_command_queue command_queue, cl_uint num_events_in_wait_list, cl_command_queue command_queue, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_2; cl_event *event) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueBarrierWithWaitList)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueBarrierWithWaitList)(
cl_command_queue command_queue, cl_uint num_events_in_wait_list, cl_command_queue command_queue, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_2; cl_event *event) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY void *( typedef void *(
CL_API_CALL *cl_api_clGetExtensionFunctionAddressForPlatform)( CL_API_CALL *cl_api_clGetExtensionFunctionAddressForPlatform)(
cl_platform_id platform, cl_platform_id platform,
const char *function_name)CL_API_SUFFIX__VERSION_1_2; const char *function_name)CL_API_SUFFIX__VERSION_1_2;
...@@ -652,7 +652,7 @@ typedef void *cl_api_clGetExtensionFunctionAddressForPlatform; ...@@ -652,7 +652,7 @@ typedef void *cl_api_clGetExtensionFunctionAddressForPlatform;
#ifdef CL_VERSION_2_0 #ifdef CL_VERSION_2_0
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueSVMFree)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueSVMFree)(
cl_command_queue /* command_queue */, cl_uint /* num_svm_pointers */, cl_command_queue /* command_queue */, 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 */,
...@@ -663,28 +663,28 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueSVMFree)( ...@@ -663,28 +663,28 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueSVMFree)(
const cl_event * /* event_wait_list */, const cl_event * /* event_wait_list */,
cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0; cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueSVMMemcpy)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueSVMMemcpy)(
cl_command_queue /* command_queue */, cl_bool /* blocking_copy */, cl_command_queue /* command_queue */, cl_bool /* blocking_copy */,
void * /* dst_ptr */, const void * /* src_ptr */, size_t /* size */, void * /* dst_ptr */, const void * /* src_ptr */, 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_API_SUFFIX__VERSION_2_0; cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueSVMMemFill)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueSVMMemFill)(
cl_command_queue /* command_queue */, void * /* svm_ptr */, cl_command_queue /* command_queue */, void * /* svm_ptr */,
const void * /* pattern */, size_t /* pattern_size */, size_t /* size */, const void * /* pattern */, size_t /* pattern_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_API_SUFFIX__VERSION_2_0; cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueSVMMap)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueSVMMap)(
cl_command_queue /* command_queue */, cl_bool /* blocking_map */, cl_command_queue /* command_queue */, cl_bool /* blocking_map */,
cl_map_flags /* map_flags */, void * /* svm_ptr */, size_t /* size */, cl_map_flags /* map_flags */, void * /* svm_ptr */, 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_API_SUFFIX__VERSION_2_0; cl_event * /* event */) CL_API_SUFFIX__VERSION_2_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueSVMUnmap)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueSVMUnmap)(
cl_command_queue /* command_queue */, void * /* svm_ptr */, cl_command_queue /* command_queue */, 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 */,
...@@ -701,119 +701,119 @@ typedef void *cl_api_clEnqueueSVMUnmap; ...@@ -701,119 +701,119 @@ typedef void *cl_api_clEnqueueSVMUnmap;
#endif #endif
// Deprecated APIs // Deprecated APIs
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clSetCommandQueueProperty)( typedef cl_int(CL_API_CALL *cl_api_clSetCommandQueueProperty)(
cl_command_queue command_queue, cl_command_queue_properties properties, cl_command_queue command_queue, cl_command_queue_properties properties,
cl_bool enable, cl_command_queue_properties *old_properties) cl_bool enable, cl_command_queue_properties *old_properties)
CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED; CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateImage2D)( typedef cl_mem(CL_API_CALL *cl_api_clCreateImage2D)(
cl_context context, cl_mem_flags flags, const cl_image_format *image_format, 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, size_t image_width, size_t image_height, size_t image_row_pitch,
void *host_ptr, cl_int *errcode_ret) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; void *host_ptr, cl_int *errcode_ret) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateImage3D)( typedef cl_mem(CL_API_CALL *cl_api_clCreateImage3D)(
cl_context context, cl_mem_flags flags, const cl_image_format *image_format, 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_width, size_t image_height, size_t image_depth,
size_t image_row_pitch, size_t image_slice_pitch, void *host_ptr, size_t image_row_pitch, size_t image_slice_pitch, void *host_ptr,
cl_int *errcode_ret) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; cl_int *errcode_ret) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clUnloadCompiler)(void) typedef cl_int(CL_API_CALL *cl_api_clUnloadCompiler)(void)
CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueMarker)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueMarker)(
cl_command_queue command_queue, cl_command_queue command_queue,
cl_event *event) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; cl_event *event) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueWaitForEvents)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueWaitForEvents)(
cl_command_queue command_queue, cl_uint num_events, cl_command_queue command_queue, cl_uint num_events,
const cl_event *event_list) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; const cl_event *event_list) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueBarrier)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueBarrier)(
cl_command_queue command_queue) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; cl_command_queue command_queue) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
typedef CL_API_ENTRY void *(CL_API_CALL *cl_api_clGetExtensionFunctionAddress)( typedef void *(CL_API_CALL *cl_api_clGetExtensionFunctionAddress)(
const char *function_name)CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; const char *function_name)CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
// GL and other APIs // GL and other APIs
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromGLBuffer)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromGLBuffer)(
cl_context context, cl_mem_flags flags, cl_GLuint bufobj, cl_context context, cl_mem_flags flags, cl_GLuint bufobj,
int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromGLTexture)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromGLTexture)(
cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel,
cl_GLuint texture, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2; cl_GLuint texture, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromGLTexture2D)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromGLTexture2D)(
cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel,
cl_GLuint texture, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_GLuint texture, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromGLTexture3D)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromGLTexture3D)(
cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel, cl_context context, cl_mem_flags flags, cl_GLenum target, cl_GLint miplevel,
cl_GLuint texture, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_GLuint texture, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromGLRenderbuffer)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromGLRenderbuffer)(
cl_context context, cl_mem_flags flags, cl_GLuint renderbuffer, cl_context context, cl_mem_flags flags, cl_GLuint renderbuffer,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetGLObjectInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetGLObjectInfo)(
cl_mem memobj, cl_gl_object_type *gl_object_type, cl_mem memobj, cl_gl_object_type *gl_object_type,
cl_GLuint *gl_object_name) CL_API_SUFFIX__VERSION_1_0; cl_GLuint *gl_object_name) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetGLTextureInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetGLTextureInfo)(
cl_mem memobj, cl_gl_texture_info param_name, size_t param_value_size, cl_mem memobj, cl_gl_texture_info param_name, size_t param_value_size,
void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueAcquireGLObjects)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueAcquireGLObjects)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueReleaseGLObjects)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueReleaseGLObjects)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
/* cl_khr_gl_sharing */ /* cl_khr_gl_sharing */
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetGLContextInfoKHR)( typedef cl_int(CL_API_CALL *cl_api_clGetGLContextInfoKHR)(
const cl_context_properties *properties, cl_gl_context_info param_name, const cl_context_properties *properties, cl_gl_context_info param_name,
size_t param_value_size, void *param_value, size_t *param_value_size_ret); size_t param_value_size, void *param_value, size_t *param_value_size_ret);
/* cl_khr_gl_event */ /* cl_khr_gl_event */
typedef CL_API_ENTRY cl_event(CL_API_CALL *cl_api_clCreateEventFromGLsyncKHR)( typedef cl_event(CL_API_CALL *cl_api_clCreateEventFromGLsyncKHR)(
cl_context context, cl_GLsync sync, cl_int *errcode_ret); cl_context context, cl_GLsync sync, cl_int *errcode_ret);
#if defined(_WIN32) #if defined(_WIN32)
/* cl_khr_d3d10_sharing */ /* cl_khr_d3d10_sharing */
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetDeviceIDsFromD3D10KHR)( typedef cl_int(CL_API_CALL *cl_api_clGetDeviceIDsFromD3D10KHR)(
cl_platform_id platform, cl_d3d10_device_source_khr d3d_device_source, cl_platform_id platform, cl_d3d10_device_source_khr d3d_device_source,
void *d3d_object, cl_d3d10_device_set_khr d3d_device_set, void *d3d_object, cl_d3d10_device_set_khr d3d_device_set,
cl_uint num_entries, cl_device_id *devices, cl_uint num_entries, cl_device_id *devices,
cl_uint *num_devices) CL_API_SUFFIX__VERSION_1_0; cl_uint *num_devices) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromD3D10BufferKHR)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromD3D10BufferKHR)(
cl_context context, cl_mem_flags flags, ID3D10Buffer *resource, cl_context context, cl_mem_flags flags, ID3D10Buffer *resource,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromD3D10Texture2DKHR)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromD3D10Texture2DKHR)(
cl_context context, cl_mem_flags flags, ID3D10Texture2D *resource, cl_context context, cl_mem_flags flags, ID3D10Texture2D *resource,
UINT subresource, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; UINT subresource, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromD3D10Texture3DKHR)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromD3D10Texture3DKHR)(
cl_context context, cl_mem_flags flags, ID3D10Texture3D *resource, cl_context context, cl_mem_flags flags, ID3D10Texture3D *resource,
UINT subresource, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; UINT subresource, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clEnqueueAcquireD3D10ObjectsKHR)( cl_int(CL_API_CALL *cl_api_clEnqueueAcquireD3D10ObjectsKHR)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_0; cl_event *event) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clEnqueueReleaseD3D10ObjectsKHR)( cl_int(CL_API_CALL *cl_api_clEnqueueReleaseD3D10ObjectsKHR)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
...@@ -848,32 +848,32 @@ extern CL_API_ENTRY cl_int CL_API_CALL clEnqueueReleaseD3D10ObjectsKHR( ...@@ -848,32 +848,32 @@ extern CL_API_ENTRY cl_int CL_API_CALL clEnqueueReleaseD3D10ObjectsKHR(
const cl_event *event_wait_list, cl_event *event); const cl_event *event_wait_list, cl_event *event);
/* cl_khr_d3d11_sharing */ /* cl_khr_d3d11_sharing */
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetDeviceIDsFromD3D11KHR)( typedef cl_int(CL_API_CALL *cl_api_clGetDeviceIDsFromD3D11KHR)(
cl_platform_id platform, cl_d3d11_device_source_khr d3d_device_source, cl_platform_id platform, cl_d3d11_device_source_khr d3d_device_source,
void *d3d_object, cl_d3d11_device_set_khr d3d_device_set, void *d3d_object, cl_d3d11_device_set_khr d3d_device_set,
cl_uint num_entries, cl_device_id *devices, cl_uint num_entries, cl_device_id *devices,
cl_uint *num_devices) CL_API_SUFFIX__VERSION_1_2; cl_uint *num_devices) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromD3D11BufferKHR)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromD3D11BufferKHR)(
cl_context context, cl_mem_flags flags, ID3D11Buffer *resource, cl_context context, cl_mem_flags flags, ID3D11Buffer *resource,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromD3D11Texture2DKHR)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromD3D11Texture2DKHR)(
cl_context context, cl_mem_flags flags, ID3D11Texture2D *resource, cl_context context, cl_mem_flags flags, ID3D11Texture2D *resource,
UINT subresource, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2; UINT subresource, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromD3D11Texture3DKHR)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromD3D11Texture3DKHR)(
cl_context context, cl_mem_flags flags, ID3D11Texture3D *resource, cl_context context, cl_mem_flags flags, ID3D11Texture3D *resource,
UINT subresource, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2; UINT subresource, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clEnqueueAcquireD3D11ObjectsKHR)( cl_int(CL_API_CALL *cl_api_clEnqueueAcquireD3D11ObjectsKHR)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_2; cl_event *event) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clEnqueueReleaseD3D11ObjectsKHR)( cl_int(CL_API_CALL *cl_api_clEnqueueReleaseD3D11ObjectsKHR)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
...@@ -881,26 +881,26 @@ cl_int(CL_API_CALL *cl_api_clEnqueueReleaseD3D11ObjectsKHR)( ...@@ -881,26 +881,26 @@ cl_int(CL_API_CALL *cl_api_clEnqueueReleaseD3D11ObjectsKHR)(
cl_event *event) CL_API_SUFFIX__VERSION_1_2; cl_event *event) CL_API_SUFFIX__VERSION_1_2;
/* cl_khr_dx9_media_sharing */ /* cl_khr_dx9_media_sharing */
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clGetDeviceIDsFromDX9MediaAdapterKHR)( cl_int(CL_API_CALL *cl_api_clGetDeviceIDsFromDX9MediaAdapterKHR)(
cl_platform_id platform, cl_uint num_media_adapters, cl_platform_id platform, cl_uint num_media_adapters,
cl_dx9_media_adapter_type_khr *media_adapters_type, void *media_adapters, cl_dx9_media_adapter_type_khr *media_adapters_type, void *media_adapters,
cl_dx9_media_adapter_set_khr media_adapter_set, cl_uint num_entries, cl_dx9_media_adapter_set_khr media_adapter_set, cl_uint num_entries,
cl_device_id *devices, cl_uint *num_devices) CL_API_SUFFIX__VERSION_1_2; cl_device_id *devices, cl_uint *num_devices) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromDX9MediaSurfaceKHR)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromDX9MediaSurfaceKHR)(
cl_context context, cl_mem_flags flags, cl_context context, cl_mem_flags flags,
cl_dx9_media_adapter_type_khr adapter_type, void *surface_info, cl_dx9_media_adapter_type_khr adapter_type, void *surface_info,
cl_uint plane, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2; cl_uint plane, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clEnqueueAcquireDX9MediaSurfacesKHR)( cl_int(CL_API_CALL *cl_api_clEnqueueAcquireDX9MediaSurfacesKHR)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_1_2; cl_event *event) CL_API_SUFFIX__VERSION_1_2;
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clEnqueueReleaseDX9MediaSurfacesKHR)( cl_int(CL_API_CALL *cl_api_clEnqueueReleaseDX9MediaSurfacesKHR)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
...@@ -987,29 +987,29 @@ typedef void *cl_api_clGetDeviceIDsFromDX9MediaAdapterKHR; ...@@ -987,29 +987,29 @@ typedef void *cl_api_clGetDeviceIDsFromDX9MediaAdapterKHR;
#ifdef CL_VERSION_1_1 #ifdef CL_VERSION_1_1
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clSetEventCallback)( typedef cl_int(CL_API_CALL *cl_api_clSetEventCallback)(
cl_event /* event */, cl_int /* command_exec_callback_type */, cl_event /* event */, cl_int /* command_exec_callback_type */,
void(CL_CALLBACK * /* pfn_notify */)(cl_event, cl_int, void *), void(CL_CALLBACK * /* pfn_notify */)(cl_event, cl_int, void *),
void * /* user_data */) CL_API_SUFFIX__VERSION_1_1; void * /* user_data */) CL_API_SUFFIX__VERSION_1_1;
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateSubBuffer)( typedef cl_mem(CL_API_CALL *cl_api_clCreateSubBuffer)(
cl_mem /* buffer */, cl_mem_flags /* flags */, cl_mem /* buffer */, cl_mem_flags /* flags */,
cl_buffer_create_type /* buffer_create_type */, cl_buffer_create_type /* buffer_create_type */,
const void * /* buffer_create_info */, const void * /* buffer_create_info */,
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_1; cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_1;
typedef CL_API_ENTRY typedef
cl_int(CL_API_CALL *cl_api_clSetMemObjectDestructorCallback)( cl_int(CL_API_CALL *cl_api_clSetMemObjectDestructorCallback)(
cl_mem /* memobj */, cl_mem /* memobj */,
void(CL_CALLBACK * /*pfn_notify*/)(cl_mem /* memobj */, void(CL_CALLBACK * /*pfn_notify*/)(cl_mem /* memobj */,
void * /*user_data*/), void * /*user_data*/),
void * /*user_data */) CL_API_SUFFIX__VERSION_1_1; void * /*user_data */) CL_API_SUFFIX__VERSION_1_1;
typedef CL_API_ENTRY cl_event(CL_API_CALL *cl_api_clCreateUserEvent)( typedef cl_event(CL_API_CALL *cl_api_clCreateUserEvent)(
cl_context /* context */, cl_context /* context */,
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_1; cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_1;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clSetUserEventStatus)( typedef cl_int(CL_API_CALL *cl_api_clSetUserEventStatus)(
cl_event /* event */, cl_event /* event */,
cl_int /* execution_status */) CL_API_SUFFIX__VERSION_1_1; cl_int /* execution_status */) CL_API_SUFFIX__VERSION_1_1;
...@@ -1023,68 +1023,68 @@ typedef void *cl_api_clSetUserEventStatus; ...@@ -1023,68 +1023,68 @@ typedef void *cl_api_clSetUserEventStatus;
#endif #endif
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clCreateSubDevicesEXT)( typedef cl_int(CL_API_CALL *cl_api_clCreateSubDevicesEXT)(
cl_device_id in_device, cl_device_id in_device,
const cl_device_partition_property_ext *partition_properties, const cl_device_partition_property_ext *partition_properties,
cl_uint num_entries, cl_device_id *out_devices, cl_uint *num_devices); cl_uint num_entries, cl_device_id *out_devices, cl_uint *num_devices);
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clRetainDeviceEXT)( typedef cl_int(CL_API_CALL *cl_api_clRetainDeviceEXT)(
cl_device_id device) CL_API_SUFFIX__VERSION_1_0; cl_device_id device) CL_API_SUFFIX__VERSION_1_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clReleaseDeviceEXT)( typedef cl_int(CL_API_CALL *cl_api_clReleaseDeviceEXT)(
cl_device_id device) CL_API_SUFFIX__VERSION_1_0; cl_device_id device) CL_API_SUFFIX__VERSION_1_0;
/* cl_khr_egl_image */ /* cl_khr_egl_image */
typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateFromEGLImageKHR)( typedef cl_mem(CL_API_CALL *cl_api_clCreateFromEGLImageKHR)(
cl_context context, CLeglDisplayKHR display, CLeglImageKHR image, cl_context context, CLeglDisplayKHR display, CLeglImageKHR image,
cl_mem_flags flags, const cl_egl_image_properties_khr *properties, cl_mem_flags flags, const cl_egl_image_properties_khr *properties,
cl_int *errcode_ret); cl_int *errcode_ret);
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueAcquireEGLObjectsKHR)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueAcquireEGLObjectsKHR)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, cl_event *event); const cl_event *event_wait_list, cl_event *event);
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueReleaseEGLObjectsKHR)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueReleaseEGLObjectsKHR)(
cl_command_queue command_queue, cl_uint num_objects, cl_command_queue command_queue, cl_uint num_objects,
const cl_mem *mem_objects, cl_uint num_events_in_wait_list, const cl_mem *mem_objects, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, cl_event *event); const cl_event *event_wait_list, cl_event *event);
/* cl_khr_egl_event */ /* cl_khr_egl_event */
typedef CL_API_ENTRY cl_event(CL_API_CALL *cl_api_clCreateEventFromEGLSyncKHR)( typedef cl_event(CL_API_CALL *cl_api_clCreateEventFromEGLSyncKHR)(
cl_context context, CLeglSyncKHR sync, CLeglDisplayKHR display, cl_context context, CLeglSyncKHR sync, CLeglDisplayKHR display,
cl_int *errcode_ret); cl_int *errcode_ret);
#ifdef CL_VERSION_2_1 #ifdef CL_VERSION_2_1
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clSetDefaultDeviceCommandQueue)( typedef cl_int(CL_API_CALL *cl_api_clSetDefaultDeviceCommandQueue)(
cl_context context, cl_device_id device, cl_context context, cl_device_id device,
cl_command_queue command_queue) CL_API_SUFFIX__VERSION_2_1; cl_command_queue command_queue) CL_API_SUFFIX__VERSION_2_1;
typedef CL_API_ENTRY cl_program(CL_API_CALL *cl_api_clCreateProgramWithIL)( typedef cl_program(CL_API_CALL *cl_api_clCreateProgramWithIL)(
cl_context context, const void *il, size_t length, cl_context context, const void *il, size_t length,
cl_int *errcode_ret) CL_API_SUFFIX__VERSION_2_1; cl_int *errcode_ret) CL_API_SUFFIX__VERSION_2_1;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetKernelSubGroupInfo)( typedef cl_int(CL_API_CALL *cl_api_clGetKernelSubGroupInfo)(
cl_kernel kernel, cl_device_id device, cl_kernel_sub_group_info param_name, cl_kernel kernel, cl_device_id device, cl_kernel_sub_group_info param_name,
size_t input_value_size, const void *input_value, size_t param_value_size, size_t input_value_size, const void *input_value, size_t param_value_size,
void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_2_1; void *param_value, size_t *param_value_size_ret) CL_API_SUFFIX__VERSION_2_1;
typedef CL_API_ENTRY cl_kernel(CL_API_CALL *cl_api_clCloneKernel)( typedef cl_kernel(CL_API_CALL *cl_api_clCloneKernel)(
cl_kernel source_kernel, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_2_1; cl_kernel source_kernel, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_2_1;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clEnqueueSVMMigrateMem)( typedef cl_int(CL_API_CALL *cl_api_clEnqueueSVMMigrateMem)(
cl_command_queue command_queue, cl_uint num_svm_pointers, cl_command_queue command_queue, cl_uint num_svm_pointers,
const void **svm_pointers, const size_t *sizes, const void **svm_pointers, const size_t *sizes,
cl_mem_migration_flags flags, cl_uint num_events_in_wait_list, cl_mem_migration_flags flags, cl_uint num_events_in_wait_list,
const cl_event *event_wait_list, const cl_event *event_wait_list,
cl_event *event) CL_API_SUFFIX__VERSION_2_1; cl_event *event) CL_API_SUFFIX__VERSION_2_1;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetDeviceAndHostTimer)( typedef cl_int(CL_API_CALL *cl_api_clGetDeviceAndHostTimer)(
cl_device_id device, cl_ulong *device_timestamp, cl_device_id device, cl_ulong *device_timestamp,
cl_ulong *host_timestamp) CL_API_SUFFIX__VERSION_2_1; cl_ulong *host_timestamp) CL_API_SUFFIX__VERSION_2_1;
typedef CL_API_ENTRY cl_int(CL_API_CALL *cl_api_clGetHostTimer)( typedef cl_int(CL_API_CALL *cl_api_clGetHostTimer)(
cl_device_id device, cl_ulong *host_timestamp) CL_API_SUFFIX__VERSION_2_1; cl_device_id device, cl_ulong *host_timestamp) CL_API_SUFFIX__VERSION_2_1;
#else #else
......
...@@ -24,11 +24,15 @@ extern "C" { ...@@ -24,11 +24,15 @@ extern "C" {
#endif #endif
#if defined(_WIN32) #if defined(_WIN32)
#define CL_API_ENTRY #if !defined(CL_API_ENTRY)
#define CL_API_ENTRY
#endif
#define CL_API_CALL __stdcall #define CL_API_CALL __stdcall
#define CL_CALLBACK __stdcall #define CL_CALLBACK __stdcall
#else #else
#define CL_API_ENTRY #if !defined(CL_API_ENTRY)
#define CL_API_ENTRY
#endif
#define CL_API_CALL #define CL_API_CALL
#define CL_CALLBACK #define CL_CALLBACK
#endif #endif
......
DisableFormat: true DisableFormat: true
SortIncludes: false
DisableFormat: true DisableFormat: true
SortIncludes: false
DisableFormat: true DisableFormat: true
SortIncludes: false
DisableFormat: true DisableFormat: true
SortIncludes: false
DisableFormat: true DisableFormat: true
SortIncludes: false
DisableFormat: true DisableFormat: true
SortIncludes: false
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"scripts/entry_point_packed_gl_enums.json": "scripts/entry_point_packed_gl_enums.json":
"4f7b43863a5e61991bba4010db463679", "4f7b43863a5e61991bba4010db463679",
"scripts/generate_entry_points.py": "scripts/generate_entry_points.py":
"a5727169ccae71f737d689a67f59e4c8", "142d88c6897c428055ed7f0cbcc24717",
"scripts/gl.xml": "scripts/gl.xml":
"2a73a58a7e26d8676a2c0af6d528cae6", "2a73a58a7e26d8676a2c0af6d528cae6",
"scripts/gl_angle_ext.xml": "scripts/gl_angle_ext.xml":
...@@ -166,9 +166,9 @@ ...@@ -166,9 +166,9 @@
"src/libGLESv2/libGLESv2_with_capture_autogen.def": "src/libGLESv2/libGLESv2_with_capture_autogen.def":
"301a20588e14724b390409c71d5ccfcd", "301a20588e14724b390409c71d5ccfcd",
"src/libOpenCL/entry_points_cl_autogen.cpp": "src/libOpenCL/entry_points_cl_autogen.cpp":
"9da7a72f6afcd5af04777103612a3bee", "228858e9707c6c1c4abe2fe618dfb2ab",
"src/libOpenCL/entry_points_cl_autogen.h": "src/libOpenCL/entry_points_cl_autogen.h":
"3b4a3094e8fd9082b71915b5bd1e8fee", "ca2c45e4f2ae7688efac5100d5b468ad",
"src/libOpenCL/libOpenCL_autogen.cpp": "src/libOpenCL/libOpenCL_autogen.cpp":
"6a44d6aedb6d21282de91bc719e7f0bf" "5505f26e1214b5c65fd3abfb46139ef0"
} }
\ No newline at end of file
...@@ -246,7 +246,7 @@ TEMPLATE_EGL_ENTRY_POINT_WITH_RETURN = """\ ...@@ -246,7 +246,7 @@ TEMPLATE_EGL_ENTRY_POINT_WITH_RETURN = """\
""" """
TEMPLATE_CL_ENTRY_POINT_NO_RETURN = """\ TEMPLATE_CL_ENTRY_POINT_NO_RETURN = """\
void CL_API_ENTRY CL_{name}({params}) void CL_API_CALL CL_{name}({params})
{{ {{
CL_EVENT({name}, "{format_params}"{comma_if_needed}{pass_params}); CL_EVENT({name}, "{format_params}"{comma_if_needed}{pass_params});
...@@ -255,7 +255,7 @@ void CL_API_ENTRY CL_{name}({params}) ...@@ -255,7 +255,7 @@ void CL_API_ENTRY CL_{name}({params})
""" """
TEMPLATE_CL_ENTRY_POINT_WITH_RETURN = """\ TEMPLATE_CL_ENTRY_POINT_WITH_RETURN = """\
{return_type}CL_API_ENTRY CL_{name}({params}) {return_type}CL_API_CALL CL_{name}({params})
{{ {{
CL_EVENT({name}, "{format_params}"{comma_if_needed}{pass_params}); CL_EVENT({name}, "{format_params}"{comma_if_needed}{pass_params});
...@@ -327,7 +327,7 @@ CONTEXT_HEADER = """\ ...@@ -327,7 +327,7 @@ CONTEXT_HEADER = """\
CONTEXT_DECL_FORMAT = """ {return_type} {name_lower_no_suffix}({internal_params}){maybe_const}; \\""" CONTEXT_DECL_FORMAT = """ {return_type} {name_lower_no_suffix}({internal_params}){maybe_const}; \\"""
TEMPLATE_CL_ENTRY_POINT_EXPORT = """\ TEMPLATE_CL_ENTRY_POINT_EXPORT = """\
ANGLE_EXPORT {return_type}CL_API_ENTRY cl{name}({params}) CL_API_CALL {return_type} CL_API_CALL cl{name}({params})
{{ {{
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.cl{name}({internal_params}); return cl_loader.cl{name}({internal_params});
...@@ -827,7 +827,7 @@ std::unique_ptr<angle::Library> &EntryPointsLib() ...@@ -827,7 +827,7 @@ std::unique_ptr<angle::Library> &EntryPointsLib()
return *sEntryPointsLib; return *sEntryPointsLib;
} }
angle::GenericProc CL_API_ENTRY GlobalLoad(const char *symbol) angle::GenericProc CL_API_CALL GlobalLoad(const char *symbol)
{ {
return reinterpret_cast<angle::GenericProc>(EntryPointsLib()->getSymbol(symbol)); return reinterpret_cast<angle::GenericProc>(EntryPointsLib()->getSymbol(symbol));
} }
...@@ -937,6 +937,9 @@ void EnsureEGLLoaded() {} ...@@ -937,6 +937,9 @@ void EnsureEGLLoaded() {}
LIBCL_HEADER_INCLUDES = """\ LIBCL_HEADER_INCLUDES = """\
#include "export.h" #include "export.h"
#ifndef CL_API_ENTRY
# define CL_API_ENTRY ANGLE_EXPORT
#endif
#include <CL/cl.h> #include <CL/cl.h>
""" """
...@@ -1186,7 +1189,7 @@ def get_api_entry_def(api): ...@@ -1186,7 +1189,7 @@ def get_api_entry_def(api):
if api == apis.EGL: if api == apis.EGL:
return "EGLAPIENTRY" return "EGLAPIENTRY"
elif api == apis.CL: elif api == apis.CL:
return "CL_API_ENTRY" return "CL_API_CALL"
else: else:
return "GL_APIENTRY" return "GL_APIENTRY"
......
DisableFormat: true DisableFormat: true
SortIncludes: false
...@@ -29,28 +29,22 @@ angle_source_set("cl_includes") { ...@@ -29,28 +29,22 @@ angle_source_set("cl_includes") {
] ]
} }
# TODO(jplate): Fix OpenCL headers for Windows http://anglebug.com/5761 angle_shared_library("OpenCL") {
if (is_linux) { defines = [
angle_shared_library("OpenCL") { "CL_TARGET_OPENCL_VERSION=100",
defines = [ "LIBCL_IMPLEMENTATION",
"CL_TARGET_OPENCL_VERSION=100", ]
"LIBCL_IMPLEMENTATION", sources = [
] "cl_loader.h",
sources = [ "cl_loader_autogen.cpp",
"cl_loader.h", "entry_points_cl_autogen.cpp",
"cl_loader_autogen.cpp", "entry_points_cl_autogen.h",
"entry_points_cl_autogen.cpp", "entry_points_cl_utils.h",
"entry_points_cl_autogen.h", "libOpenCL_autogen.cpp",
"entry_points_cl_utils.h", ]
"libOpenCL_autogen.cpp", deps = [ ":cl_includes" ]
]
deps = [ ":cl_includes" ]
}
} }
group("angle_cl") { group("angle_cl") {
# TODO(jplate): Fix OpenCL headers for Windows http://anglebug.com/5761 data_deps = [ ":OpenCL" ]
if (is_linux) {
data_deps = [ ":OpenCL" ]
}
} }
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
#include <export.h> #include <export.h>
#ifndef CL_API_ENTRY
# define CL_API_ENTRY ANGLE_EXPORT
#endif
#include <CL/cl_icd.h> #include <CL/cl_icd.h>
ANGLE_NO_EXPORT extern cl_icd_dispatch cl_loader; ANGLE_NO_EXPORT extern cl_icd_dispatch cl_loader;
...@@ -18,7 +21,7 @@ ANGLE_NO_EXPORT extern cl_icd_dispatch cl_loader; ...@@ -18,7 +21,7 @@ ANGLE_NO_EXPORT extern cl_icd_dispatch cl_loader;
namespace angle namespace angle
{ {
using GenericProc = void (*)(); using GenericProc = void (*)();
using LoadProc = GenericProc(CL_API_ENTRY *)(const char *); using LoadProc = GenericProc(CL_API_CALL *)(const char *);
ANGLE_NO_EXPORT void LoadCL(LoadProc loadProc); ANGLE_NO_EXPORT void LoadCL(LoadProc loadProc);
} // namespace angle } // namespace angle
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
extern "C" { extern "C" {
// CL 1.0 // CL 1.0
cl_int CL_API_ENTRY CL_GetPlatformIDs(cl_uint num_entries, cl_int CL_API_CALL CL_GetPlatformIDs(cl_uint num_entries,
cl_platform_id *platforms, cl_platform_id *platforms,
cl_uint *num_platforms) cl_uint *num_platforms)
{ {
CL_EVENT(GetPlatformIDs, CL_EVENT(GetPlatformIDs,
"num_entries = %u, platforms = 0x%016" PRIxPTR ", num_platforms = 0x%016" PRIxPTR "", "num_entries = %u, platforms = 0x%016" PRIxPTR ", num_platforms = 0x%016" PRIxPTR "",
...@@ -27,11 +27,11 @@ cl_int CL_API_ENTRY CL_GetPlatformIDs(cl_uint num_entries, ...@@ -27,11 +27,11 @@ cl_int CL_API_ENTRY CL_GetPlatformIDs(cl_uint num_entries,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetPlatformInfo(cl_platform_id platform, cl_int CL_API_CALL CL_GetPlatformInfo(cl_platform_id platform,
cl_platform_info param_name, cl_platform_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetPlatformInfo, CL_EVENT(GetPlatformInfo,
"platform = 0x%016" PRIxPTR "platform = 0x%016" PRIxPTR
...@@ -45,11 +45,11 @@ cl_int CL_API_ENTRY CL_GetPlatformInfo(cl_platform_id platform, ...@@ -45,11 +45,11 @@ cl_int CL_API_ENTRY CL_GetPlatformInfo(cl_platform_id platform,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetDeviceIDs(cl_platform_id platform, cl_int CL_API_CALL CL_GetDeviceIDs(cl_platform_id platform,
cl_device_type device_type, cl_device_type device_type,
cl_uint num_entries, cl_uint num_entries,
cl_device_id *devices, cl_device_id *devices,
cl_uint *num_devices) cl_uint *num_devices)
{ {
CL_EVENT(GetDeviceIDs, CL_EVENT(GetDeviceIDs,
"platform = 0x%016" PRIxPTR "platform = 0x%016" PRIxPTR
...@@ -63,11 +63,11 @@ cl_int CL_API_ENTRY CL_GetDeviceIDs(cl_platform_id platform, ...@@ -63,11 +63,11 @@ cl_int CL_API_ENTRY CL_GetDeviceIDs(cl_platform_id platform,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetDeviceInfo(cl_device_id device, cl_int CL_API_CALL CL_GetDeviceInfo(cl_device_id device,
cl_device_info param_name, cl_device_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetDeviceInfo, CL_EVENT(GetDeviceInfo,
"device = 0x%016" PRIxPTR "device = 0x%016" PRIxPTR
...@@ -81,15 +81,15 @@ cl_int CL_API_ENTRY CL_GetDeviceInfo(cl_device_id device, ...@@ -81,15 +81,15 @@ cl_int CL_API_ENTRY CL_GetDeviceInfo(cl_device_id device,
return (cl_int)0; return (cl_int)0;
} }
cl_context CL_API_ENTRY CL_CreateContext(const cl_context_properties *properties, cl_context CL_API_CALL CL_CreateContext(const cl_context_properties *properties,
cl_uint num_devices, cl_uint num_devices,
const cl_device_id *devices, const cl_device_id *devices,
void(CL_CALLBACK *pfn_notify)(const char *errinfo, void(CL_CALLBACK *pfn_notify)(const char *errinfo,
const void *private_info, const void *private_info,
size_t cb, size_t cb,
void *user_data), void *user_data),
void *user_data, void *user_data,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(CreateContext, CL_EVENT(CreateContext,
"properties = 0x%016" PRIxPTR ", num_devices = %u, devices = 0x%016" PRIxPTR "properties = 0x%016" PRIxPTR ", num_devices = %u, devices = 0x%016" PRIxPTR
...@@ -103,7 +103,7 @@ cl_context CL_API_ENTRY CL_CreateContext(const cl_context_properties *properties ...@@ -103,7 +103,7 @@ cl_context CL_API_ENTRY CL_CreateContext(const cl_context_properties *properties
return (cl_context)0; return (cl_context)0;
} }
cl_context CL_API_ENTRY cl_context CL_API_CALL
CL_CreateContextFromType(const cl_context_properties *properties, CL_CreateContextFromType(const cl_context_properties *properties,
cl_device_type device_type, cl_device_type device_type,
void(CL_CALLBACK *pfn_notify)(const char *errinfo, void(CL_CALLBACK *pfn_notify)(const char *errinfo,
...@@ -124,7 +124,7 @@ CL_CreateContextFromType(const cl_context_properties *properties, ...@@ -124,7 +124,7 @@ CL_CreateContextFromType(const cl_context_properties *properties,
return (cl_context)0; return (cl_context)0;
} }
cl_int CL_API_ENTRY CL_RetainContext(cl_context context) cl_int CL_API_CALL CL_RetainContext(cl_context context)
{ {
CL_EVENT(RetainContext, "context = 0x%016" PRIxPTR "", (uintptr_t)context); CL_EVENT(RetainContext, "context = 0x%016" PRIxPTR "", (uintptr_t)context);
...@@ -133,7 +133,7 @@ cl_int CL_API_ENTRY CL_RetainContext(cl_context context) ...@@ -133,7 +133,7 @@ cl_int CL_API_ENTRY CL_RetainContext(cl_context context)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_ReleaseContext(cl_context context) cl_int CL_API_CALL CL_ReleaseContext(cl_context context)
{ {
CL_EVENT(ReleaseContext, "context = 0x%016" PRIxPTR "", (uintptr_t)context); CL_EVENT(ReleaseContext, "context = 0x%016" PRIxPTR "", (uintptr_t)context);
...@@ -142,11 +142,11 @@ cl_int CL_API_ENTRY CL_ReleaseContext(cl_context context) ...@@ -142,11 +142,11 @@ cl_int CL_API_ENTRY CL_ReleaseContext(cl_context context)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetContextInfo(cl_context context, cl_int CL_API_CALL CL_GetContextInfo(cl_context context,
cl_context_info param_name, cl_context_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetContextInfo, CL_EVENT(GetContextInfo,
"context = 0x%016" PRIxPTR "context = 0x%016" PRIxPTR
...@@ -160,7 +160,7 @@ cl_int CL_API_ENTRY CL_GetContextInfo(cl_context context, ...@@ -160,7 +160,7 @@ cl_int CL_API_ENTRY CL_GetContextInfo(cl_context context,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_RetainCommandQueue(cl_command_queue command_queue) cl_int CL_API_CALL CL_RetainCommandQueue(cl_command_queue command_queue)
{ {
CL_EVENT(RetainCommandQueue, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue); CL_EVENT(RetainCommandQueue, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue);
...@@ -169,7 +169,7 @@ cl_int CL_API_ENTRY CL_RetainCommandQueue(cl_command_queue command_queue) ...@@ -169,7 +169,7 @@ cl_int CL_API_ENTRY CL_RetainCommandQueue(cl_command_queue command_queue)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_ReleaseCommandQueue(cl_command_queue command_queue) cl_int CL_API_CALL CL_ReleaseCommandQueue(cl_command_queue command_queue)
{ {
CL_EVENT(ReleaseCommandQueue, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue); CL_EVENT(ReleaseCommandQueue, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue);
...@@ -178,11 +178,11 @@ cl_int CL_API_ENTRY CL_ReleaseCommandQueue(cl_command_queue command_queue) ...@@ -178,11 +178,11 @@ cl_int CL_API_ENTRY CL_ReleaseCommandQueue(cl_command_queue command_queue)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetCommandQueueInfo(cl_command_queue command_queue, cl_int CL_API_CALL CL_GetCommandQueueInfo(cl_command_queue command_queue,
cl_command_queue_info param_name, cl_command_queue_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetCommandQueueInfo, CL_EVENT(GetCommandQueueInfo,
"command_queue = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR
...@@ -196,11 +196,11 @@ cl_int CL_API_ENTRY CL_GetCommandQueueInfo(cl_command_queue command_queue, ...@@ -196,11 +196,11 @@ cl_int CL_API_ENTRY CL_GetCommandQueueInfo(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_mem CL_API_ENTRY CL_CreateBuffer(cl_context context, cl_mem CL_API_CALL CL_CreateBuffer(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
size_t size, size_t size,
void *host_ptr, void *host_ptr,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(CreateBuffer, CL_EVENT(CreateBuffer,
"context = 0x%016" PRIxPTR ", flags = %lu, size = %zu, host_ptr = 0x%016" PRIxPTR "context = 0x%016" PRIxPTR ", flags = %lu, size = %zu, host_ptr = 0x%016" PRIxPTR
...@@ -212,7 +212,7 @@ cl_mem CL_API_ENTRY CL_CreateBuffer(cl_context context, ...@@ -212,7 +212,7 @@ cl_mem CL_API_ENTRY CL_CreateBuffer(cl_context context,
return (cl_mem)0; return (cl_mem)0;
} }
cl_int CL_API_ENTRY CL_RetainMemObject(cl_mem memobj) cl_int CL_API_CALL CL_RetainMemObject(cl_mem memobj)
{ {
CL_EVENT(RetainMemObject, "memobj = 0x%016" PRIxPTR "", (uintptr_t)memobj); CL_EVENT(RetainMemObject, "memobj = 0x%016" PRIxPTR "", (uintptr_t)memobj);
...@@ -221,7 +221,7 @@ cl_int CL_API_ENTRY CL_RetainMemObject(cl_mem memobj) ...@@ -221,7 +221,7 @@ cl_int CL_API_ENTRY CL_RetainMemObject(cl_mem memobj)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_ReleaseMemObject(cl_mem memobj) cl_int CL_API_CALL CL_ReleaseMemObject(cl_mem memobj)
{ {
CL_EVENT(ReleaseMemObject, "memobj = 0x%016" PRIxPTR "", (uintptr_t)memobj); CL_EVENT(ReleaseMemObject, "memobj = 0x%016" PRIxPTR "", (uintptr_t)memobj);
...@@ -230,12 +230,12 @@ cl_int CL_API_ENTRY CL_ReleaseMemObject(cl_mem memobj) ...@@ -230,12 +230,12 @@ cl_int CL_API_ENTRY CL_ReleaseMemObject(cl_mem memobj)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetSupportedImageFormats(cl_context context, cl_int CL_API_CALL CL_GetSupportedImageFormats(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
cl_mem_object_type image_type, cl_mem_object_type image_type,
cl_uint num_entries, cl_uint num_entries,
cl_image_format *image_formats, cl_image_format *image_formats,
cl_uint *num_image_formats) cl_uint *num_image_formats)
{ {
CL_EVENT(GetSupportedImageFormats, CL_EVENT(GetSupportedImageFormats,
"context = 0x%016" PRIxPTR "context = 0x%016" PRIxPTR
...@@ -249,11 +249,11 @@ cl_int CL_API_ENTRY CL_GetSupportedImageFormats(cl_context context, ...@@ -249,11 +249,11 @@ cl_int CL_API_ENTRY CL_GetSupportedImageFormats(cl_context context,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetMemObjectInfo(cl_mem memobj, cl_int CL_API_CALL CL_GetMemObjectInfo(cl_mem memobj,
cl_mem_info param_name, cl_mem_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetMemObjectInfo, CL_EVENT(GetMemObjectInfo,
"memobj = 0x%016" PRIxPTR "memobj = 0x%016" PRIxPTR
...@@ -267,11 +267,11 @@ cl_int CL_API_ENTRY CL_GetMemObjectInfo(cl_mem memobj, ...@@ -267,11 +267,11 @@ cl_int CL_API_ENTRY CL_GetMemObjectInfo(cl_mem memobj,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetImageInfo(cl_mem image, cl_int CL_API_CALL CL_GetImageInfo(cl_mem image,
cl_image_info param_name, cl_image_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetImageInfo, CL_EVENT(GetImageInfo,
"image = 0x%016" PRIxPTR "image = 0x%016" PRIxPTR
...@@ -285,7 +285,7 @@ cl_int CL_API_ENTRY CL_GetImageInfo(cl_mem image, ...@@ -285,7 +285,7 @@ cl_int CL_API_ENTRY CL_GetImageInfo(cl_mem image,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_RetainSampler(cl_sampler sampler) cl_int CL_API_CALL CL_RetainSampler(cl_sampler sampler)
{ {
CL_EVENT(RetainSampler, "sampler = 0x%016" PRIxPTR "", (uintptr_t)sampler); CL_EVENT(RetainSampler, "sampler = 0x%016" PRIxPTR "", (uintptr_t)sampler);
...@@ -294,7 +294,7 @@ cl_int CL_API_ENTRY CL_RetainSampler(cl_sampler sampler) ...@@ -294,7 +294,7 @@ cl_int CL_API_ENTRY CL_RetainSampler(cl_sampler sampler)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_ReleaseSampler(cl_sampler sampler) cl_int CL_API_CALL CL_ReleaseSampler(cl_sampler sampler)
{ {
CL_EVENT(ReleaseSampler, "sampler = 0x%016" PRIxPTR "", (uintptr_t)sampler); CL_EVENT(ReleaseSampler, "sampler = 0x%016" PRIxPTR "", (uintptr_t)sampler);
...@@ -303,11 +303,11 @@ cl_int CL_API_ENTRY CL_ReleaseSampler(cl_sampler sampler) ...@@ -303,11 +303,11 @@ cl_int CL_API_ENTRY CL_ReleaseSampler(cl_sampler sampler)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetSamplerInfo(cl_sampler sampler, cl_int CL_API_CALL CL_GetSamplerInfo(cl_sampler sampler,
cl_sampler_info param_name, cl_sampler_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetSamplerInfo, CL_EVENT(GetSamplerInfo,
"sampler = 0x%016" PRIxPTR "sampler = 0x%016" PRIxPTR
...@@ -321,11 +321,11 @@ cl_int CL_API_ENTRY CL_GetSamplerInfo(cl_sampler sampler, ...@@ -321,11 +321,11 @@ cl_int CL_API_ENTRY CL_GetSamplerInfo(cl_sampler sampler,
return (cl_int)0; return (cl_int)0;
} }
cl_program CL_API_ENTRY CL_CreateProgramWithSource(cl_context context, cl_program CL_API_CALL CL_CreateProgramWithSource(cl_context context,
cl_uint count, cl_uint count,
const char **strings, const char **strings,
const size_t *lengths, const size_t *lengths,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(CreateProgramWithSource, CL_EVENT(CreateProgramWithSource,
"context = 0x%016" PRIxPTR ", count = %u, strings = 0x%016" PRIxPTR "context = 0x%016" PRIxPTR ", count = %u, strings = 0x%016" PRIxPTR
...@@ -338,13 +338,13 @@ cl_program CL_API_ENTRY CL_CreateProgramWithSource(cl_context context, ...@@ -338,13 +338,13 @@ cl_program CL_API_ENTRY CL_CreateProgramWithSource(cl_context context,
return (cl_program)0; return (cl_program)0;
} }
cl_program CL_API_ENTRY CL_CreateProgramWithBinary(cl_context context, cl_program CL_API_CALL CL_CreateProgramWithBinary(cl_context context,
cl_uint num_devices, cl_uint num_devices,
const cl_device_id *device_list, const cl_device_id *device_list,
const size_t *lengths, const size_t *lengths,
const unsigned char **binaries, const unsigned char **binaries,
cl_int *binary_status, cl_int *binary_status,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(CreateProgramWithBinary, CL_EVENT(CreateProgramWithBinary,
"context = 0x%016" PRIxPTR ", num_devices = %u, device_list = 0x%016" PRIxPTR "context = 0x%016" PRIxPTR ", num_devices = %u, device_list = 0x%016" PRIxPTR
...@@ -358,7 +358,7 @@ cl_program CL_API_ENTRY CL_CreateProgramWithBinary(cl_context context, ...@@ -358,7 +358,7 @@ cl_program CL_API_ENTRY CL_CreateProgramWithBinary(cl_context context,
return (cl_program)0; return (cl_program)0;
} }
cl_int CL_API_ENTRY CL_RetainProgram(cl_program program) cl_int CL_API_CALL CL_RetainProgram(cl_program program)
{ {
CL_EVENT(RetainProgram, "program = 0x%016" PRIxPTR "", (uintptr_t)program); CL_EVENT(RetainProgram, "program = 0x%016" PRIxPTR "", (uintptr_t)program);
...@@ -367,7 +367,7 @@ cl_int CL_API_ENTRY CL_RetainProgram(cl_program program) ...@@ -367,7 +367,7 @@ cl_int CL_API_ENTRY CL_RetainProgram(cl_program program)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_ReleaseProgram(cl_program program) cl_int CL_API_CALL CL_ReleaseProgram(cl_program program)
{ {
CL_EVENT(ReleaseProgram, "program = 0x%016" PRIxPTR "", (uintptr_t)program); CL_EVENT(ReleaseProgram, "program = 0x%016" PRIxPTR "", (uintptr_t)program);
...@@ -376,13 +376,13 @@ cl_int CL_API_ENTRY CL_ReleaseProgram(cl_program program) ...@@ -376,13 +376,13 @@ cl_int CL_API_ENTRY CL_ReleaseProgram(cl_program program)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_BuildProgram(cl_program program, cl_int CL_API_CALL CL_BuildProgram(cl_program program,
cl_uint num_devices, cl_uint num_devices,
const cl_device_id *device_list, const cl_device_id *device_list,
const char *options, const char *options,
void(CL_CALLBACK *pfn_notify)(cl_program program, void(CL_CALLBACK *pfn_notify)(cl_program program,
void *user_data), void *user_data),
void *user_data) void *user_data)
{ {
CL_EVENT(BuildProgram, CL_EVENT(BuildProgram,
"program = 0x%016" PRIxPTR ", num_devices = %u, device_list = 0x%016" PRIxPTR "program = 0x%016" PRIxPTR ", num_devices = %u, device_list = 0x%016" PRIxPTR
...@@ -396,11 +396,11 @@ cl_int CL_API_ENTRY CL_BuildProgram(cl_program program, ...@@ -396,11 +396,11 @@ cl_int CL_API_ENTRY CL_BuildProgram(cl_program program,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetProgramInfo(cl_program program, cl_int CL_API_CALL CL_GetProgramInfo(cl_program program,
cl_program_info param_name, cl_program_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetProgramInfo, CL_EVENT(GetProgramInfo,
"program = 0x%016" PRIxPTR "program = 0x%016" PRIxPTR
...@@ -414,12 +414,12 @@ cl_int CL_API_ENTRY CL_GetProgramInfo(cl_program program, ...@@ -414,12 +414,12 @@ cl_int CL_API_ENTRY CL_GetProgramInfo(cl_program program,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetProgramBuildInfo(cl_program program, cl_int CL_API_CALL CL_GetProgramBuildInfo(cl_program program,
cl_device_id device, cl_device_id device,
cl_program_build_info param_name, cl_program_build_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetProgramBuildInfo, CL_EVENT(GetProgramBuildInfo,
"program = 0x%016" PRIxPTR ", device = 0x%016" PRIxPTR "program = 0x%016" PRIxPTR ", device = 0x%016" PRIxPTR
...@@ -433,9 +433,9 @@ cl_int CL_API_ENTRY CL_GetProgramBuildInfo(cl_program program, ...@@ -433,9 +433,9 @@ cl_int CL_API_ENTRY CL_GetProgramBuildInfo(cl_program program,
return (cl_int)0; return (cl_int)0;
} }
cl_kernel CL_API_ENTRY CL_CreateKernel(cl_program program, cl_kernel CL_API_CALL CL_CreateKernel(cl_program program,
const char *kernel_name, const char *kernel_name,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(CreateKernel, CL_EVENT(CreateKernel,
"program = 0x%016" PRIxPTR ", kernel_name = 0x%016" PRIxPTR "program = 0x%016" PRIxPTR ", kernel_name = 0x%016" PRIxPTR
...@@ -447,10 +447,10 @@ cl_kernel CL_API_ENTRY CL_CreateKernel(cl_program program, ...@@ -447,10 +447,10 @@ cl_kernel CL_API_ENTRY CL_CreateKernel(cl_program program,
return (cl_kernel)0; return (cl_kernel)0;
} }
cl_int CL_API_ENTRY CL_CreateKernelsInProgram(cl_program program, cl_int CL_API_CALL CL_CreateKernelsInProgram(cl_program program,
cl_uint num_kernels, cl_uint num_kernels,
cl_kernel *kernels, cl_kernel *kernels,
cl_uint *num_kernels_ret) cl_uint *num_kernels_ret)
{ {
CL_EVENT(CreateKernelsInProgram, CL_EVENT(CreateKernelsInProgram,
"program = 0x%016" PRIxPTR ", num_kernels = %u, kernels = 0x%016" PRIxPTR "program = 0x%016" PRIxPTR ", num_kernels = %u, kernels = 0x%016" PRIxPTR
...@@ -462,7 +462,7 @@ cl_int CL_API_ENTRY CL_CreateKernelsInProgram(cl_program program, ...@@ -462,7 +462,7 @@ cl_int CL_API_ENTRY CL_CreateKernelsInProgram(cl_program program,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_RetainKernel(cl_kernel kernel) cl_int CL_API_CALL CL_RetainKernel(cl_kernel kernel)
{ {
CL_EVENT(RetainKernel, "kernel = 0x%016" PRIxPTR "", (uintptr_t)kernel); CL_EVENT(RetainKernel, "kernel = 0x%016" PRIxPTR "", (uintptr_t)kernel);
...@@ -471,7 +471,7 @@ cl_int CL_API_ENTRY CL_RetainKernel(cl_kernel kernel) ...@@ -471,7 +471,7 @@ cl_int CL_API_ENTRY CL_RetainKernel(cl_kernel kernel)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_ReleaseKernel(cl_kernel kernel) cl_int CL_API_CALL CL_ReleaseKernel(cl_kernel kernel)
{ {
CL_EVENT(ReleaseKernel, "kernel = 0x%016" PRIxPTR "", (uintptr_t)kernel); CL_EVENT(ReleaseKernel, "kernel = 0x%016" PRIxPTR "", (uintptr_t)kernel);
...@@ -480,10 +480,10 @@ cl_int CL_API_ENTRY CL_ReleaseKernel(cl_kernel kernel) ...@@ -480,10 +480,10 @@ cl_int CL_API_ENTRY CL_ReleaseKernel(cl_kernel kernel)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_SetKernelArg(cl_kernel kernel, cl_int CL_API_CALL CL_SetKernelArg(cl_kernel kernel,
cl_uint arg_index, cl_uint arg_index,
size_t arg_size, size_t arg_size,
const void *arg_value) const void *arg_value)
{ {
CL_EVENT(SetKernelArg, CL_EVENT(SetKernelArg,
"kernel = 0x%016" PRIxPTR "kernel = 0x%016" PRIxPTR
...@@ -495,11 +495,11 @@ cl_int CL_API_ENTRY CL_SetKernelArg(cl_kernel kernel, ...@@ -495,11 +495,11 @@ cl_int CL_API_ENTRY CL_SetKernelArg(cl_kernel kernel,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetKernelInfo(cl_kernel kernel, cl_int CL_API_CALL CL_GetKernelInfo(cl_kernel kernel,
cl_kernel_info param_name, cl_kernel_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetKernelInfo, CL_EVENT(GetKernelInfo,
"kernel = 0x%016" PRIxPTR "kernel = 0x%016" PRIxPTR
...@@ -513,12 +513,12 @@ cl_int CL_API_ENTRY CL_GetKernelInfo(cl_kernel kernel, ...@@ -513,12 +513,12 @@ cl_int CL_API_ENTRY CL_GetKernelInfo(cl_kernel kernel,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetKernelWorkGroupInfo(cl_kernel kernel, cl_int CL_API_CALL CL_GetKernelWorkGroupInfo(cl_kernel kernel,
cl_device_id device, cl_device_id device,
cl_kernel_work_group_info param_name, cl_kernel_work_group_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetKernelWorkGroupInfo, CL_EVENT(GetKernelWorkGroupInfo,
"kernel = 0x%016" PRIxPTR ", device = 0x%016" PRIxPTR "kernel = 0x%016" PRIxPTR ", device = 0x%016" PRIxPTR
...@@ -532,7 +532,7 @@ cl_int CL_API_ENTRY CL_GetKernelWorkGroupInfo(cl_kernel kernel, ...@@ -532,7 +532,7 @@ cl_int CL_API_ENTRY CL_GetKernelWorkGroupInfo(cl_kernel kernel,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_WaitForEvents(cl_uint num_events, const cl_event *event_list) cl_int CL_API_CALL CL_WaitForEvents(cl_uint num_events, const cl_event *event_list)
{ {
CL_EVENT(WaitForEvents, "num_events = %u, event_list = 0x%016" PRIxPTR "", num_events, CL_EVENT(WaitForEvents, "num_events = %u, event_list = 0x%016" PRIxPTR "", num_events,
(uintptr_t)event_list); (uintptr_t)event_list);
...@@ -542,11 +542,11 @@ cl_int CL_API_ENTRY CL_WaitForEvents(cl_uint num_events, const cl_event *event_l ...@@ -542,11 +542,11 @@ cl_int CL_API_ENTRY CL_WaitForEvents(cl_uint num_events, const cl_event *event_l
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetEventInfo(cl_event event, cl_int CL_API_CALL CL_GetEventInfo(cl_event event,
cl_event_info param_name, cl_event_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetEventInfo, CL_EVENT(GetEventInfo,
"event = 0x%016" PRIxPTR "event = 0x%016" PRIxPTR
...@@ -560,7 +560,7 @@ cl_int CL_API_ENTRY CL_GetEventInfo(cl_event event, ...@@ -560,7 +560,7 @@ cl_int CL_API_ENTRY CL_GetEventInfo(cl_event event,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_RetainEvent(cl_event event) cl_int CL_API_CALL CL_RetainEvent(cl_event event)
{ {
CL_EVENT(RetainEvent, "event = 0x%016" PRIxPTR "", (uintptr_t)event); CL_EVENT(RetainEvent, "event = 0x%016" PRIxPTR "", (uintptr_t)event);
...@@ -569,7 +569,7 @@ cl_int CL_API_ENTRY CL_RetainEvent(cl_event event) ...@@ -569,7 +569,7 @@ cl_int CL_API_ENTRY CL_RetainEvent(cl_event event)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_ReleaseEvent(cl_event event) cl_int CL_API_CALL CL_ReleaseEvent(cl_event event)
{ {
CL_EVENT(ReleaseEvent, "event = 0x%016" PRIxPTR "", (uintptr_t)event); CL_EVENT(ReleaseEvent, "event = 0x%016" PRIxPTR "", (uintptr_t)event);
...@@ -578,11 +578,11 @@ cl_int CL_API_ENTRY CL_ReleaseEvent(cl_event event) ...@@ -578,11 +578,11 @@ cl_int CL_API_ENTRY CL_ReleaseEvent(cl_event event)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_GetEventProfilingInfo(cl_event event, cl_int CL_API_CALL CL_GetEventProfilingInfo(cl_event event,
cl_profiling_info param_name, cl_profiling_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) size_t *param_value_size_ret)
{ {
CL_EVENT(GetEventProfilingInfo, CL_EVENT(GetEventProfilingInfo,
"event = 0x%016" PRIxPTR "event = 0x%016" PRIxPTR
...@@ -596,7 +596,7 @@ cl_int CL_API_ENTRY CL_GetEventProfilingInfo(cl_event event, ...@@ -596,7 +596,7 @@ cl_int CL_API_ENTRY CL_GetEventProfilingInfo(cl_event event,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_Flush(cl_command_queue command_queue) cl_int CL_API_CALL CL_Flush(cl_command_queue command_queue)
{ {
CL_EVENT(Flush, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue); CL_EVENT(Flush, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue);
...@@ -605,7 +605,7 @@ cl_int CL_API_ENTRY CL_Flush(cl_command_queue command_queue) ...@@ -605,7 +605,7 @@ cl_int CL_API_ENTRY CL_Flush(cl_command_queue command_queue)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_Finish(cl_command_queue command_queue) cl_int CL_API_CALL CL_Finish(cl_command_queue command_queue)
{ {
CL_EVENT(Finish, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue); CL_EVENT(Finish, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue);
...@@ -614,15 +614,15 @@ cl_int CL_API_ENTRY CL_Finish(cl_command_queue command_queue) ...@@ -614,15 +614,15 @@ cl_int CL_API_ENTRY CL_Finish(cl_command_queue command_queue)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueReadBuffer(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueReadBuffer(cl_command_queue command_queue,
cl_mem buffer, cl_mem buffer,
cl_bool blocking_read, cl_bool blocking_read,
size_t offset, size_t offset,
size_t size, size_t size,
void *ptr, void *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_event *event)
{ {
CL_EVENT(EnqueueReadBuffer, CL_EVENT(EnqueueReadBuffer,
"command_queue = 0x%016" PRIxPTR ", buffer = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", buffer = 0x%016" PRIxPTR
...@@ -637,15 +637,15 @@ cl_int CL_API_ENTRY CL_EnqueueReadBuffer(cl_command_queue command_queue, ...@@ -637,15 +637,15 @@ cl_int CL_API_ENTRY CL_EnqueueReadBuffer(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueWriteBuffer(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueWriteBuffer(cl_command_queue command_queue,
cl_mem buffer, cl_mem buffer,
cl_bool blocking_write, cl_bool blocking_write,
size_t offset, size_t offset,
size_t size, size_t size,
const void *ptr, const void *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_event *event)
{ {
CL_EVENT(EnqueueWriteBuffer, CL_EVENT(EnqueueWriteBuffer,
"command_queue = 0x%016" PRIxPTR ", buffer = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", buffer = 0x%016" PRIxPTR
...@@ -660,15 +660,15 @@ cl_int CL_API_ENTRY CL_EnqueueWriteBuffer(cl_command_queue command_queue, ...@@ -660,15 +660,15 @@ cl_int CL_API_ENTRY CL_EnqueueWriteBuffer(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueCopyBuffer(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueCopyBuffer(cl_command_queue command_queue,
cl_mem src_buffer, cl_mem src_buffer,
cl_mem dst_buffer, cl_mem dst_buffer,
size_t src_offset, size_t src_offset,
size_t dst_offset, size_t dst_offset,
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_event *event)
{ {
CL_EVENT(EnqueueCopyBuffer, CL_EVENT(EnqueueCopyBuffer,
"command_queue = 0x%016" PRIxPTR ", src_buffer = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", src_buffer = 0x%016" PRIxPTR
...@@ -684,17 +684,17 @@ cl_int CL_API_ENTRY CL_EnqueueCopyBuffer(cl_command_queue command_queue, ...@@ -684,17 +684,17 @@ cl_int CL_API_ENTRY CL_EnqueueCopyBuffer(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueReadImage(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueReadImage(cl_command_queue command_queue,
cl_mem image, cl_mem image,
cl_bool blocking_read, cl_bool blocking_read,
const size_t *origin, const size_t *origin,
const size_t *region, const size_t *region,
size_t row_pitch, size_t row_pitch,
size_t slice_pitch, size_t slice_pitch,
void *ptr, void *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_event *event)
{ {
CL_EVENT(EnqueueReadImage, CL_EVENT(EnqueueReadImage,
"command_queue = 0x%016" PRIxPTR ", image = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", image = 0x%016" PRIxPTR
...@@ -711,17 +711,17 @@ cl_int CL_API_ENTRY CL_EnqueueReadImage(cl_command_queue command_queue, ...@@ -711,17 +711,17 @@ cl_int CL_API_ENTRY CL_EnqueueReadImage(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueWriteImage(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueWriteImage(cl_command_queue command_queue,
cl_mem image, cl_mem image,
cl_bool blocking_write, cl_bool blocking_write,
const size_t *origin, const size_t *origin,
const size_t *region, const size_t *region,
size_t input_row_pitch, size_t input_row_pitch,
size_t input_slice_pitch, size_t input_slice_pitch,
const void *ptr, const void *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_event *event)
{ {
CL_EVENT(EnqueueWriteImage, CL_EVENT(EnqueueWriteImage,
"command_queue = 0x%016" PRIxPTR ", image = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", image = 0x%016" PRIxPTR
...@@ -738,15 +738,15 @@ cl_int CL_API_ENTRY CL_EnqueueWriteImage(cl_command_queue command_queue, ...@@ -738,15 +738,15 @@ cl_int CL_API_ENTRY CL_EnqueueWriteImage(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueCopyImage(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueCopyImage(cl_command_queue command_queue,
cl_mem src_image, cl_mem src_image,
cl_mem dst_image, cl_mem dst_image,
const size_t *src_origin, const size_t *src_origin,
const size_t *dst_origin, const size_t *dst_origin,
const size_t *region, const size_t *region,
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)
{ {
CL_EVENT(EnqueueCopyImage, CL_EVENT(EnqueueCopyImage,
"command_queue = 0x%016" PRIxPTR ", src_image = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", src_image = 0x%016" PRIxPTR
...@@ -763,15 +763,15 @@ cl_int CL_API_ENTRY CL_EnqueueCopyImage(cl_command_queue command_queue, ...@@ -763,15 +763,15 @@ cl_int CL_API_ENTRY CL_EnqueueCopyImage(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueCopyImageToBuffer(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueCopyImageToBuffer(cl_command_queue command_queue,
cl_mem src_image, cl_mem src_image,
cl_mem dst_buffer, cl_mem dst_buffer,
const size_t *src_origin, const size_t *src_origin,
const size_t *region, const size_t *region,
size_t dst_offset, size_t dst_offset,
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)
{ {
CL_EVENT(EnqueueCopyImageToBuffer, CL_EVENT(EnqueueCopyImageToBuffer,
"command_queue = 0x%016" PRIxPTR ", src_image = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", src_image = 0x%016" PRIxPTR
...@@ -788,15 +788,15 @@ cl_int CL_API_ENTRY CL_EnqueueCopyImageToBuffer(cl_command_queue command_queue, ...@@ -788,15 +788,15 @@ cl_int CL_API_ENTRY CL_EnqueueCopyImageToBuffer(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueCopyBufferToImage(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueCopyBufferToImage(cl_command_queue command_queue,
cl_mem src_buffer, cl_mem src_buffer,
cl_mem dst_image, cl_mem dst_image,
size_t src_offset, size_t src_offset,
const size_t *dst_origin, const size_t *dst_origin,
const size_t *region, const size_t *region,
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)
{ {
CL_EVENT(EnqueueCopyBufferToImage, CL_EVENT(EnqueueCopyBufferToImage,
"command_queue = 0x%016" PRIxPTR ", src_buffer = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", src_buffer = 0x%016" PRIxPTR
...@@ -813,16 +813,16 @@ cl_int CL_API_ENTRY CL_EnqueueCopyBufferToImage(cl_command_queue command_queue, ...@@ -813,16 +813,16 @@ cl_int CL_API_ENTRY CL_EnqueueCopyBufferToImage(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
void *CL_API_ENTRY CL_EnqueueMapBuffer(cl_command_queue command_queue, void *CL_API_CALL CL_EnqueueMapBuffer(cl_command_queue command_queue,
cl_mem buffer, cl_mem buffer,
cl_bool blocking_map, cl_bool blocking_map,
cl_map_flags map_flags, cl_map_flags map_flags,
size_t offset, size_t offset,
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_event *event,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(EnqueueMapBuffer, CL_EVENT(EnqueueMapBuffer,
"command_queue = 0x%016" PRIxPTR ", buffer = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", buffer = 0x%016" PRIxPTR
...@@ -838,18 +838,18 @@ void *CL_API_ENTRY CL_EnqueueMapBuffer(cl_command_queue command_queue, ...@@ -838,18 +838,18 @@ void *CL_API_ENTRY CL_EnqueueMapBuffer(cl_command_queue command_queue,
return (void *)0; return (void *)0;
} }
void *CL_API_ENTRY CL_EnqueueMapImage(cl_command_queue command_queue, void *CL_API_CALL CL_EnqueueMapImage(cl_command_queue command_queue,
cl_mem image, cl_mem image,
cl_bool blocking_map, cl_bool blocking_map,
cl_map_flags map_flags, cl_map_flags map_flags,
const size_t *origin, const size_t *origin,
const size_t *region, const size_t *region,
size_t *image_row_pitch, size_t *image_row_pitch,
size_t *image_slice_pitch, size_t *image_slice_pitch,
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,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(EnqueueMapImage, CL_EVENT(EnqueueMapImage,
"command_queue = 0x%016" PRIxPTR ", image = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", image = 0x%016" PRIxPTR
...@@ -868,12 +868,12 @@ void *CL_API_ENTRY CL_EnqueueMapImage(cl_command_queue command_queue, ...@@ -868,12 +868,12 @@ void *CL_API_ENTRY CL_EnqueueMapImage(cl_command_queue command_queue,
return (void *)0; return (void *)0;
} }
cl_int CL_API_ENTRY CL_EnqueueUnmapMemObject(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueUnmapMemObject(cl_command_queue command_queue,
cl_mem memobj, cl_mem memobj,
void *mapped_ptr, void *mapped_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_event *event)
{ {
CL_EVENT(EnqueueUnmapMemObject, CL_EVENT(EnqueueUnmapMemObject,
"command_queue = 0x%016" PRIxPTR ", memobj = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", memobj = 0x%016" PRIxPTR
...@@ -888,15 +888,15 @@ cl_int CL_API_ENTRY CL_EnqueueUnmapMemObject(cl_command_queue command_queue, ...@@ -888,15 +888,15 @@ cl_int CL_API_ENTRY CL_EnqueueUnmapMemObject(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueNDRangeKernel(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueNDRangeKernel(cl_command_queue command_queue,
cl_kernel kernel, cl_kernel kernel,
cl_uint work_dim, cl_uint work_dim,
const size_t *global_work_offset, const size_t *global_work_offset,
const size_t *global_work_size, const size_t *global_work_size,
const size_t *local_work_size, const size_t *local_work_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_event *event)
{ {
CL_EVENT(EnqueueNDRangeKernel, CL_EVENT(EnqueueNDRangeKernel,
"command_queue = 0x%016" PRIxPTR ", kernel = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", kernel = 0x%016" PRIxPTR
...@@ -913,16 +913,16 @@ cl_int CL_API_ENTRY CL_EnqueueNDRangeKernel(cl_command_queue command_queue, ...@@ -913,16 +913,16 @@ cl_int CL_API_ENTRY CL_EnqueueNDRangeKernel(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueNativeKernel(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueNativeKernel(cl_command_queue command_queue,
void(CL_CALLBACK *user_func)(void *), void(CL_CALLBACK *user_func)(void *),
void *args, void *args,
size_t cb_args, size_t cb_args,
cl_uint num_mem_objects, cl_uint num_mem_objects,
const cl_mem *mem_list, const cl_mem *mem_list,
const void **args_mem_loc, const void **args_mem_loc,
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)
{ {
CL_EVENT(EnqueueNativeKernel, CL_EVENT(EnqueueNativeKernel,
"command_queue = 0x%016" PRIxPTR ", user_func = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", user_func = 0x%016" PRIxPTR
...@@ -940,10 +940,10 @@ cl_int CL_API_ENTRY CL_EnqueueNativeKernel(cl_command_queue command_queue, ...@@ -940,10 +940,10 @@ cl_int CL_API_ENTRY CL_EnqueueNativeKernel(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_SetCommandQueueProperty(cl_command_queue command_queue, cl_int CL_API_CALL CL_SetCommandQueueProperty(cl_command_queue command_queue,
cl_command_queue_properties properties, cl_command_queue_properties properties,
cl_bool enable, cl_bool enable,
cl_command_queue_properties *old_properties) cl_command_queue_properties *old_properties)
{ {
CL_EVENT(SetCommandQueueProperty, CL_EVENT(SetCommandQueueProperty,
"command_queue = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR
...@@ -955,14 +955,14 @@ cl_int CL_API_ENTRY CL_SetCommandQueueProperty(cl_command_queue command_queue, ...@@ -955,14 +955,14 @@ cl_int CL_API_ENTRY CL_SetCommandQueueProperty(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_mem CL_API_ENTRY CL_CreateImage2D(cl_context context, cl_mem CL_API_CALL CL_CreateImage2D(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
const cl_image_format *image_format, const cl_image_format *image_format,
size_t image_width, size_t image_width,
size_t image_height, size_t image_height,
size_t image_row_pitch, size_t image_row_pitch,
void *host_ptr, void *host_ptr,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT( CL_EVENT(
CreateImage2D, CreateImage2D,
...@@ -977,16 +977,16 @@ cl_mem CL_API_ENTRY CL_CreateImage2D(cl_context context, ...@@ -977,16 +977,16 @@ cl_mem CL_API_ENTRY CL_CreateImage2D(cl_context context,
return (cl_mem)0; return (cl_mem)0;
} }
cl_mem CL_API_ENTRY CL_CreateImage3D(cl_context context, cl_mem CL_API_CALL CL_CreateImage3D(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
const cl_image_format *image_format, const cl_image_format *image_format,
size_t image_width, size_t image_width,
size_t image_height, size_t image_height,
size_t image_depth, size_t image_depth,
size_t image_row_pitch, size_t image_row_pitch,
size_t image_slice_pitch, size_t image_slice_pitch,
void *host_ptr, void *host_ptr,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT( CL_EVENT(
CreateImage3D, CreateImage3D,
...@@ -1001,7 +1001,7 @@ cl_mem CL_API_ENTRY CL_CreateImage3D(cl_context context, ...@@ -1001,7 +1001,7 @@ cl_mem CL_API_ENTRY CL_CreateImage3D(cl_context context,
return (cl_mem)0; return (cl_mem)0;
} }
cl_int CL_API_ENTRY CL_EnqueueMarker(cl_command_queue command_queue, cl_event *event) cl_int CL_API_CALL CL_EnqueueMarker(cl_command_queue command_queue, cl_event *event)
{ {
CL_EVENT(EnqueueMarker, "command_queue = 0x%016" PRIxPTR ", event = 0x%016" PRIxPTR "", CL_EVENT(EnqueueMarker, "command_queue = 0x%016" PRIxPTR ", event = 0x%016" PRIxPTR "",
(uintptr_t)command_queue, (uintptr_t)event); (uintptr_t)command_queue, (uintptr_t)event);
...@@ -1011,9 +1011,9 @@ cl_int CL_API_ENTRY CL_EnqueueMarker(cl_command_queue command_queue, cl_event *e ...@@ -1011,9 +1011,9 @@ cl_int CL_API_ENTRY CL_EnqueueMarker(cl_command_queue command_queue, cl_event *e
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueWaitForEvents(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueWaitForEvents(cl_command_queue command_queue,
cl_uint num_events, cl_uint num_events,
const cl_event *event_list) const cl_event *event_list)
{ {
CL_EVENT(EnqueueWaitForEvents, CL_EVENT(EnqueueWaitForEvents,
"command_queue = 0x%016" PRIxPTR ", num_events = %u, event_list = 0x%016" PRIxPTR "", "command_queue = 0x%016" PRIxPTR ", num_events = %u, event_list = 0x%016" PRIxPTR "",
...@@ -1024,7 +1024,7 @@ cl_int CL_API_ENTRY CL_EnqueueWaitForEvents(cl_command_queue command_queue, ...@@ -1024,7 +1024,7 @@ cl_int CL_API_ENTRY CL_EnqueueWaitForEvents(cl_command_queue command_queue,
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_EnqueueBarrier(cl_command_queue command_queue) cl_int CL_API_CALL CL_EnqueueBarrier(cl_command_queue command_queue)
{ {
CL_EVENT(EnqueueBarrier, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue); CL_EVENT(EnqueueBarrier, "command_queue = 0x%016" PRIxPTR "", (uintptr_t)command_queue);
...@@ -1033,7 +1033,7 @@ cl_int CL_API_ENTRY CL_EnqueueBarrier(cl_command_queue command_queue) ...@@ -1033,7 +1033,7 @@ cl_int CL_API_ENTRY CL_EnqueueBarrier(cl_command_queue command_queue)
return (cl_int)0; return (cl_int)0;
} }
cl_int CL_API_ENTRY CL_UnloadCompiler() cl_int CL_API_CALL CL_UnloadCompiler()
{ {
CL_EVENT(UnloadCompiler, ""); CL_EVENT(UnloadCompiler, "");
...@@ -1042,7 +1042,7 @@ cl_int CL_API_ENTRY CL_UnloadCompiler() ...@@ -1042,7 +1042,7 @@ cl_int CL_API_ENTRY CL_UnloadCompiler()
return (cl_int)0; return (cl_int)0;
} }
void *CL_API_ENTRY CL_GetExtensionFunctionAddress(const char *func_name) void *CL_API_CALL CL_GetExtensionFunctionAddress(const char *func_name)
{ {
CL_EVENT(GetExtensionFunctionAddress, "func_name = 0x%016" PRIxPTR "", (uintptr_t)func_name); CL_EVENT(GetExtensionFunctionAddress, "func_name = 0x%016" PRIxPTR "", (uintptr_t)func_name);
...@@ -1051,10 +1051,10 @@ void *CL_API_ENTRY CL_GetExtensionFunctionAddress(const char *func_name) ...@@ -1051,10 +1051,10 @@ void *CL_API_ENTRY CL_GetExtensionFunctionAddress(const char *func_name)
return (void *)0; return (void *)0;
} }
cl_command_queue CL_API_ENTRY CL_CreateCommandQueue(cl_context context, cl_command_queue CL_API_CALL CL_CreateCommandQueue(cl_context context,
cl_device_id device, cl_device_id device,
cl_command_queue_properties properties, cl_command_queue_properties properties,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(CreateCommandQueue, CL_EVENT(CreateCommandQueue,
"context = 0x%016" PRIxPTR ", device = 0x%016" PRIxPTR "context = 0x%016" PRIxPTR ", device = 0x%016" PRIxPTR
...@@ -1066,11 +1066,11 @@ cl_command_queue CL_API_ENTRY CL_CreateCommandQueue(cl_context context, ...@@ -1066,11 +1066,11 @@ cl_command_queue CL_API_ENTRY CL_CreateCommandQueue(cl_context context,
return (cl_command_queue)0; return (cl_command_queue)0;
} }
cl_sampler CL_API_ENTRY CL_CreateSampler(cl_context context, cl_sampler CL_API_CALL CL_CreateSampler(cl_context context,
cl_bool normalized_coords, cl_bool normalized_coords,
cl_addressing_mode addressing_mode, cl_addressing_mode addressing_mode,
cl_filter_mode filter_mode, cl_filter_mode filter_mode,
cl_int *errcode_ret) cl_int *errcode_ret)
{ {
CL_EVENT(CreateSampler, CL_EVENT(CreateSampler,
"context = 0x%016" PRIxPTR "context = 0x%016" PRIxPTR
...@@ -1084,11 +1084,11 @@ cl_sampler CL_API_ENTRY CL_CreateSampler(cl_context context, ...@@ -1084,11 +1084,11 @@ cl_sampler CL_API_ENTRY CL_CreateSampler(cl_context context,
return (cl_sampler)0; return (cl_sampler)0;
} }
cl_int CL_API_ENTRY CL_EnqueueTask(cl_command_queue command_queue, cl_int CL_API_CALL CL_EnqueueTask(cl_command_queue command_queue,
cl_kernel kernel, cl_kernel kernel,
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)
{ {
CL_EVENT(EnqueueTask, CL_EVENT(EnqueueTask,
"command_queue = 0x%016" PRIxPTR ", kernel = 0x%016" PRIxPTR "command_queue = 0x%016" PRIxPTR ", kernel = 0x%016" PRIxPTR
......
...@@ -13,30 +13,33 @@ ...@@ -13,30 +13,33 @@
#include "export.h" #include "export.h"
#ifndef CL_API_ENTRY
# define CL_API_ENTRY ANGLE_EXPORT
#endif
#include <CL/cl.h> #include <CL/cl.h>
extern "C" { extern "C" {
// CL 1.0 // CL 1.0
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetPlatformIDs(cl_uint num_entries, ANGLE_EXPORT cl_int CL_API_CALL CL_GetPlatformIDs(cl_uint num_entries,
cl_platform_id *platforms, cl_platform_id *platforms,
cl_uint *num_platforms); cl_uint *num_platforms);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetPlatformInfo(cl_platform_id platform, ANGLE_EXPORT cl_int CL_API_CALL CL_GetPlatformInfo(cl_platform_id platform,
cl_platform_info param_name, cl_platform_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret); size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetDeviceIDs(cl_platform_id platform, ANGLE_EXPORT cl_int CL_API_CALL CL_GetDeviceIDs(cl_platform_id platform,
cl_device_type device_type, cl_device_type device_type,
cl_uint num_entries, cl_uint num_entries,
cl_device_id *devices, cl_device_id *devices,
cl_uint *num_devices); cl_uint *num_devices);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetDeviceInfo(cl_device_id device, ANGLE_EXPORT cl_int CL_API_CALL CL_GetDeviceInfo(cl_device_id device,
cl_device_info param_name, cl_device_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret); size_t *param_value_size_ret);
ANGLE_EXPORT cl_context CL_API_ENTRY ANGLE_EXPORT cl_context CL_API_CALL
CL_CreateContext(const cl_context_properties *properties, CL_CreateContext(const cl_context_properties *properties,
cl_uint num_devices, cl_uint num_devices,
const cl_device_id *devices, const cl_device_id *devices,
...@@ -46,7 +49,7 @@ CL_CreateContext(const cl_context_properties *properties, ...@@ -46,7 +49,7 @@ CL_CreateContext(const cl_context_properties *properties,
void *user_data), void *user_data),
void *user_data, void *user_data,
cl_int *errcode_ret); cl_int *errcode_ret);
ANGLE_EXPORT cl_context CL_API_ENTRY ANGLE_EXPORT cl_context CL_API_CALL
CL_CreateContextFromType(const cl_context_properties *properties, CL_CreateContextFromType(const cl_context_properties *properties,
cl_device_type device_type, cl_device_type device_type,
void(CL_CALLBACK *pfn_notify)(const char *errinfo, void(CL_CALLBACK *pfn_notify)(const char *errinfo,
...@@ -55,289 +58,289 @@ CL_CreateContextFromType(const cl_context_properties *properties, ...@@ -55,289 +58,289 @@ CL_CreateContextFromType(const cl_context_properties *properties,
void *user_data), void *user_data),
void *user_data, void *user_data,
cl_int *errcode_ret); cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_RetainContext(cl_context context); ANGLE_EXPORT cl_int CL_API_CALL CL_RetainContext(cl_context context);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_ReleaseContext(cl_context context); ANGLE_EXPORT cl_int CL_API_CALL CL_ReleaseContext(cl_context context);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetContextInfo(cl_context context, ANGLE_EXPORT cl_int CL_API_CALL CL_GetContextInfo(cl_context context,
cl_context_info param_name, cl_context_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_RetainCommandQueue(cl_command_queue command_queue);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_ReleaseCommandQueue(cl_command_queue command_queue);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetCommandQueueInfo(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);
ANGLE_EXPORT cl_mem CL_API_ENTRY CL_CreateBuffer(cl_context context,
cl_mem_flags flags,
size_t size,
void *host_ptr,
cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_RetainMemObject(cl_mem memobj);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_ReleaseMemObject(cl_mem memobj);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetSupportedImageFormats(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);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetMemObjectInfo(cl_mem memobj,
cl_mem_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetImageInfo(cl_mem image,
cl_image_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_RetainSampler(cl_sampler sampler);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_ReleaseSampler(cl_sampler sampler);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetSamplerInfo(cl_sampler sampler,
cl_sampler_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_program CL_API_ENTRY CL_CreateProgramWithSource(cl_context context,
cl_uint count,
const char **strings,
const size_t *lengths,
cl_int *errcode_ret);
ANGLE_EXPORT cl_program CL_API_ENTRY CL_CreateProgramWithBinary(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);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_RetainProgram(cl_program program);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_ReleaseProgram(cl_program program);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_BuildProgram(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);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetProgramInfo(cl_program program,
cl_program_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetProgramBuildInfo(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);
ANGLE_EXPORT cl_kernel CL_API_ENTRY CL_CreateKernel(cl_program program,
const char *kernel_name,
cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_CreateKernelsInProgram(cl_program program,
cl_uint num_kernels,
cl_kernel *kernels,
cl_uint *num_kernels_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_RetainKernel(cl_kernel kernel);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_ReleaseKernel(cl_kernel kernel);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_SetKernelArg(cl_kernel kernel,
cl_uint arg_index,
size_t arg_size,
const void *arg_value);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetKernelInfo(cl_kernel kernel,
cl_kernel_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret); size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetKernelWorkGroupInfo(cl_kernel kernel, ANGLE_EXPORT cl_int CL_API_CALL CL_RetainCommandQueue(cl_command_queue command_queue);
cl_device_id device, ANGLE_EXPORT cl_int CL_API_CALL CL_ReleaseCommandQueue(cl_command_queue command_queue);
cl_kernel_work_group_info param_name, ANGLE_EXPORT cl_int CL_API_CALL CL_GetCommandQueueInfo(cl_command_queue command_queue,
size_t param_value_size, cl_command_queue_info param_name,
void *param_value, size_t param_value_size,
size_t *param_value_size_ret); void *param_value,
ANGLE_EXPORT cl_int CL_API_ENTRY CL_WaitForEvents(cl_uint num_events, const cl_event *event_list); size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetEventInfo(cl_event event, ANGLE_EXPORT cl_mem CL_API_CALL CL_CreateBuffer(cl_context context,
cl_event_info param_name, cl_mem_flags flags,
size_t size,
void *host_ptr,
cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_CALL CL_RetainMemObject(cl_mem memobj);
ANGLE_EXPORT cl_int CL_API_CALL CL_ReleaseMemObject(cl_mem memobj);
ANGLE_EXPORT cl_int CL_API_CALL CL_GetSupportedImageFormats(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);
ANGLE_EXPORT cl_int CL_API_CALL CL_GetMemObjectInfo(cl_mem memobj,
cl_mem_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_CALL CL_GetImageInfo(cl_mem image,
cl_image_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_CALL CL_RetainSampler(cl_sampler sampler);
ANGLE_EXPORT cl_int CL_API_CALL CL_ReleaseSampler(cl_sampler sampler);
ANGLE_EXPORT cl_int CL_API_CALL CL_GetSamplerInfo(cl_sampler sampler,
cl_sampler_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_program CL_API_CALL CL_CreateProgramWithSource(cl_context context,
cl_uint count,
const char **strings,
const size_t *lengths,
cl_int *errcode_ret);
ANGLE_EXPORT cl_program CL_API_CALL CL_CreateProgramWithBinary(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);
ANGLE_EXPORT cl_int CL_API_CALL CL_RetainProgram(cl_program program);
ANGLE_EXPORT cl_int CL_API_CALL CL_ReleaseProgram(cl_program program);
ANGLE_EXPORT cl_int CL_API_CALL CL_BuildProgram(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);
ANGLE_EXPORT cl_int CL_API_CALL CL_GetProgramInfo(cl_program program,
cl_program_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_CALL CL_GetProgramBuildInfo(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);
ANGLE_EXPORT cl_kernel CL_API_CALL CL_CreateKernel(cl_program program,
const char *kernel_name,
cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_CALL CL_CreateKernelsInProgram(cl_program program,
cl_uint num_kernels,
cl_kernel *kernels,
cl_uint *num_kernels_ret);
ANGLE_EXPORT cl_int CL_API_CALL CL_RetainKernel(cl_kernel kernel);
ANGLE_EXPORT cl_int CL_API_CALL CL_ReleaseKernel(cl_kernel kernel);
ANGLE_EXPORT cl_int CL_API_CALL CL_SetKernelArg(cl_kernel kernel,
cl_uint arg_index,
size_t arg_size,
const void *arg_value);
ANGLE_EXPORT cl_int CL_API_CALL CL_GetKernelInfo(cl_kernel kernel,
cl_kernel_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret); size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_RetainEvent(cl_event event); ANGLE_EXPORT cl_int CL_API_CALL CL_GetKernelWorkGroupInfo(cl_kernel kernel,
ANGLE_EXPORT cl_int CL_API_ENTRY CL_ReleaseEvent(cl_event event); cl_device_id device,
ANGLE_EXPORT cl_int CL_API_ENTRY CL_GetEventProfilingInfo(cl_event event, cl_kernel_work_group_info param_name,
cl_profiling_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret); size_t *param_value_size_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_Flush(cl_command_queue command_queue); ANGLE_EXPORT cl_int CL_API_CALL CL_WaitForEvents(cl_uint num_events, const cl_event *event_list);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_Finish(cl_command_queue command_queue); ANGLE_EXPORT cl_int CL_API_CALL CL_GetEventInfo(cl_event event,
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueReadBuffer(cl_command_queue command_queue, cl_event_info param_name,
cl_mem buffer, size_t param_value_size,
cl_bool blocking_read, void *param_value,
size_t offset, size_t *param_value_size_ret);
size_t size, ANGLE_EXPORT cl_int CL_API_CALL CL_RetainEvent(cl_event event);
void *ptr, ANGLE_EXPORT cl_int CL_API_CALL CL_ReleaseEvent(cl_event event);
cl_uint num_events_in_wait_list, ANGLE_EXPORT cl_int CL_API_CALL CL_GetEventProfilingInfo(cl_event event,
const cl_event *event_wait_list, cl_profiling_info param_name,
cl_event *event); size_t param_value_size,
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueWriteBuffer(cl_command_queue command_queue, void *param_value,
cl_mem buffer, size_t *param_value_size_ret);
cl_bool blocking_write, ANGLE_EXPORT cl_int CL_API_CALL CL_Flush(cl_command_queue command_queue);
size_t offset, ANGLE_EXPORT cl_int CL_API_CALL CL_Finish(cl_command_queue command_queue);
size_t size, ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueReadBuffer(cl_command_queue command_queue,
const void *ptr, cl_mem buffer,
cl_uint num_events_in_wait_list,
const cl_event *event_wait_list,
cl_event *event);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueCopyBuffer(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);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueReadImage(cl_command_queue command_queue,
cl_mem image,
cl_bool blocking_read, cl_bool blocking_read,
const size_t *origin, size_t offset,
const size_t *region, size_t size,
size_t row_pitch,
size_t slice_pitch,
void *ptr, void *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_event *event);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueWriteImage(cl_command_queue command_queue, ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueWriteBuffer(cl_command_queue command_queue,
cl_mem image, cl_mem buffer,
cl_bool blocking_write, cl_bool blocking_write,
const size_t *origin, size_t offset,
const size_t *region, size_t size,
size_t input_row_pitch,
size_t input_slice_pitch,
const void *ptr, const void *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_event *event);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueCopyImage(cl_command_queue command_queue, ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueCopyBuffer(cl_command_queue command_queue,
cl_mem src_image, cl_mem src_buffer,
cl_mem dst_image, cl_mem dst_buffer,
const size_t *src_origin, size_t src_offset,
const size_t *dst_origin, size_t dst_offset,
size_t size,
cl_uint num_events_in_wait_list,
const cl_event *event_wait_list,
cl_event *event);
ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueReadImage(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);
ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueWriteImage(cl_command_queue command_queue,
cl_mem image,
cl_bool blocking_write,
const size_t *origin,
const size_t *region, const size_t *region,
size_t input_row_pitch,
size_t input_slice_pitch,
const void *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_event *event);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueCopyImageToBuffer(cl_command_queue command_queue, ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueCopyImage(cl_command_queue command_queue,
cl_mem src_image, cl_mem src_image,
cl_mem dst_buffer, cl_mem dst_image,
const size_t *src_origin, const size_t *src_origin,
const size_t *region, const size_t *dst_origin,
size_t dst_offset, const size_t *region,
cl_uint num_events_in_wait_list,
const cl_event *event_wait_list,
cl_event *event);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueCopyBufferToImage(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);
ANGLE_EXPORT void *CL_API_ENTRY CL_EnqueueMapBuffer(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, 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);
cl_int *errcode_ret); ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueCopyImageToBuffer(cl_command_queue command_queue,
ANGLE_EXPORT void *CL_API_ENTRY CL_EnqueueMapImage(cl_command_queue command_queue, cl_mem src_image,
cl_mem 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);
ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueCopyBufferToImage(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);
ANGLE_EXPORT void *CL_API_CALL CL_EnqueueMapBuffer(cl_command_queue command_queue,
cl_mem buffer,
cl_bool blocking_map, cl_bool blocking_map,
cl_map_flags map_flags, cl_map_flags map_flags,
const size_t *origin, size_t offset,
const size_t *region, size_t size,
size_t *image_row_pitch,
size_t *image_slice_pitch,
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,
cl_int *errcode_ret); cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueUnmapMemObject(cl_command_queue command_queue, ANGLE_EXPORT void *CL_API_CALL CL_EnqueueMapImage(cl_command_queue command_queue,
cl_mem memobj, cl_mem image,
void *mapped_ptr, cl_bool blocking_map,
cl_uint num_events_in_wait_list, cl_map_flags map_flags,
const cl_event *event_wait_list, const size_t *origin,
cl_event *event); const size_t *region,
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueNDRangeKernel(cl_command_queue command_queue, size_t *image_row_pitch,
cl_kernel kernel, size_t *image_slice_pitch,
cl_uint work_dim, cl_uint num_events_in_wait_list,
const size_t *global_work_offset, const cl_event *event_wait_list,
const size_t *global_work_size, cl_event *event,
const size_t *local_work_size, cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueUnmapMemObject(cl_command_queue command_queue,
cl_mem memobj,
void *mapped_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_event *event);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueNativeKernel(cl_command_queue command_queue, ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueNDRangeKernel(cl_command_queue command_queue,
void(CL_CALLBACK *user_func)(void *), cl_kernel kernel,
void *args, cl_uint work_dim,
size_t cb_args, const size_t *global_work_offset,
cl_uint num_mem_objects, const size_t *global_work_size,
const cl_mem *mem_list, const size_t *local_work_size,
const void **args_mem_loc,
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);
ANGLE_EXPORT cl_int CL_API_ENTRY ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueNativeKernel(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);
ANGLE_EXPORT cl_int CL_API_CALL
CL_SetCommandQueueProperty(cl_command_queue command_queue, CL_SetCommandQueueProperty(cl_command_queue command_queue,
cl_command_queue_properties properties, cl_command_queue_properties properties,
cl_bool enable, cl_bool enable,
cl_command_queue_properties *old_properties); cl_command_queue_properties *old_properties);
ANGLE_EXPORT cl_mem CL_API_ENTRY CL_CreateImage2D(cl_context context, ANGLE_EXPORT cl_mem CL_API_CALL CL_CreateImage2D(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
const cl_image_format *image_format, const cl_image_format *image_format,
size_t image_width, size_t image_width,
size_t image_height, size_t image_height,
size_t image_row_pitch, size_t image_row_pitch,
void *host_ptr, void *host_ptr,
cl_int *errcode_ret); cl_int *errcode_ret);
ANGLE_EXPORT cl_mem CL_API_ENTRY CL_CreateImage3D(cl_context context, ANGLE_EXPORT cl_mem CL_API_CALL CL_CreateImage3D(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
const cl_image_format *image_format, const cl_image_format *image_format,
size_t image_width, size_t image_width,
size_t image_height, size_t image_height,
size_t image_depth, size_t image_depth,
size_t image_row_pitch, size_t image_row_pitch,
size_t image_slice_pitch, size_t image_slice_pitch,
void *host_ptr, void *host_ptr,
cl_int *errcode_ret); cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueMarker(cl_command_queue command_queue, cl_event *event); ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueMarker(cl_command_queue command_queue, cl_event *event);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueWaitForEvents(cl_command_queue command_queue, ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueWaitForEvents(cl_command_queue command_queue,
cl_uint num_events, cl_uint num_events,
const cl_event *event_list); const cl_event *event_list);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueBarrier(cl_command_queue command_queue); ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueBarrier(cl_command_queue command_queue);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_UnloadCompiler(); ANGLE_EXPORT cl_int CL_API_CALL CL_UnloadCompiler();
ANGLE_EXPORT void *CL_API_ENTRY CL_GetExtensionFunctionAddress(const char *func_name); ANGLE_EXPORT void *CL_API_CALL CL_GetExtensionFunctionAddress(const char *func_name);
ANGLE_EXPORT cl_command_queue CL_API_ENTRY ANGLE_EXPORT cl_command_queue CL_API_CALL
CL_CreateCommandQueue(cl_context context, CL_CreateCommandQueue(cl_context context,
cl_device_id device, cl_device_id device,
cl_command_queue_properties properties, cl_command_queue_properties properties,
cl_int *errcode_ret); cl_int *errcode_ret);
ANGLE_EXPORT cl_sampler CL_API_ENTRY CL_CreateSampler(cl_context context, ANGLE_EXPORT cl_sampler CL_API_CALL CL_CreateSampler(cl_context context,
cl_bool normalized_coords, cl_bool normalized_coords,
cl_addressing_mode addressing_mode, cl_addressing_mode addressing_mode,
cl_filter_mode filter_mode, cl_filter_mode filter_mode,
cl_int *errcode_ret); cl_int *errcode_ret);
ANGLE_EXPORT cl_int CL_API_ENTRY CL_EnqueueTask(cl_command_queue command_queue, ANGLE_EXPORT cl_int CL_API_CALL CL_EnqueueTask(cl_command_queue command_queue,
cl_kernel kernel, cl_kernel kernel,
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);
} // extern "C" } // extern "C"
#endif // LIBOPENCL_ENTRY_POINTS_CL_AUTOGEN_H_ #endif // LIBOPENCL_ENTRY_POINTS_CL_AUTOGEN_H_
...@@ -26,7 +26,7 @@ std::unique_ptr<angle::Library> &EntryPointsLib() ...@@ -26,7 +26,7 @@ std::unique_ptr<angle::Library> &EntryPointsLib()
return *sEntryPointsLib; return *sEntryPointsLib;
} }
angle::GenericProc CL_API_ENTRY GlobalLoad(const char *symbol) angle::GenericProc CL_API_CALL GlobalLoad(const char *symbol)
{ {
return reinterpret_cast<angle::GenericProc>(EntryPointsLib()->getSymbol(symbol)); return reinterpret_cast<angle::GenericProc>(EntryPointsLib()->getSymbol(symbol));
} }
...@@ -57,63 +57,62 @@ void EnsureCLLoaded() ...@@ -57,63 +57,62 @@ void EnsureCLLoaded()
extern "C" { extern "C" {
// CL 1.0 // CL 1.0
ANGLE_EXPORT cl_int CL_API_ENTRY clGetPlatformIDs(cl_uint num_entries, cl_int CL_API_CALL clGetPlatformIDs(cl_uint num_entries,
cl_platform_id *platforms, cl_platform_id *platforms,
cl_uint *num_platforms) CL_API_CALL cl_uint *num_platforms)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetPlatformIDs(num_entries, platforms, num_platforms); return cl_loader.clGetPlatformIDs(num_entries, platforms, num_platforms);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetPlatformInfo(cl_platform_id platform, cl_int CL_API_CALL clGetPlatformInfo(cl_platform_id platform,
cl_platform_info param_name, cl_platform_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetPlatformInfo(platform, param_name, param_value_size, param_value, return cl_loader.clGetPlatformInfo(platform, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetDeviceIDs(cl_platform_id platform, cl_int CL_API_CALL clGetDeviceIDs(cl_platform_id platform,
cl_device_type device_type, cl_device_type device_type,
cl_uint num_entries, cl_uint num_entries,
cl_device_id *devices, cl_device_id *devices,
cl_uint *num_devices) CL_API_CALL cl_uint *num_devices)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetDeviceIDs(platform, device_type, num_entries, devices, num_devices); return cl_loader.clGetDeviceIDs(platform, device_type, num_entries, devices, num_devices);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetDeviceInfo(cl_device_id device, cl_int CL_API_CALL clGetDeviceInfo(cl_device_id device,
cl_device_info param_name, cl_device_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetDeviceInfo(device, param_name, param_value_size, param_value, return cl_loader.clGetDeviceInfo(device, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_context CL_API_ENTRY cl_context CL_API_CALL clCreateContext(const cl_context_properties *properties,
clCreateContext(const cl_context_properties *properties, cl_uint num_devices,
cl_uint num_devices, const cl_device_id *devices,
const cl_device_id *devices, void(CL_CALLBACK *pfn_notify)(const char *errinfo,
void(CL_CALLBACK *pfn_notify)(const char *errinfo, const void *private_info,
const void *private_info, size_t cb,
size_t cb, void *user_data),
void *user_data), void *user_data,
void *user_data, cl_int *errcode_ret)
cl_int *errcode_ret) CL_API_CALL
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateContext(properties, num_devices, devices, pfn_notify, user_data, return cl_loader.clCreateContext(properties, num_devices, devices, pfn_notify, user_data,
errcode_ret); errcode_ret);
} }
ANGLE_EXPORT cl_context CL_API_ENTRY cl_context CL_API_CALL
clCreateContextFromType(const cl_context_properties *properties, clCreateContextFromType(const cl_context_properties *properties,
cl_device_type device_type, cl_device_type device_type,
void(CL_CALLBACK *pfn_notify)(const char *errinfo, void(CL_CALLBACK *pfn_notify)(const char *errinfo,
...@@ -121,362 +120,361 @@ clCreateContextFromType(const cl_context_properties *properties, ...@@ -121,362 +120,361 @@ clCreateContextFromType(const cl_context_properties *properties,
size_t cb, size_t cb,
void *user_data), void *user_data),
void *user_data, void *user_data,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateContextFromType(properties, device_type, pfn_notify, user_data, return cl_loader.clCreateContextFromType(properties, device_type, pfn_notify, user_data,
errcode_ret); errcode_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clRetainContext(cl_context context) CL_API_CALL cl_int CL_API_CALL clRetainContext(cl_context context)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clRetainContext(context); return cl_loader.clRetainContext(context);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clReleaseContext(cl_context context) CL_API_CALL cl_int CL_API_CALL clReleaseContext(cl_context context)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clReleaseContext(context); return cl_loader.clReleaseContext(context);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetContextInfo(cl_context context, cl_int CL_API_CALL clGetContextInfo(cl_context context,
cl_context_info param_name, cl_context_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetContextInfo(context, param_name, param_value_size, param_value, return cl_loader.clGetContextInfo(context, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clRetainCommandQueue(cl_command_queue command_queue) CL_API_CALL cl_int CL_API_CALL clRetainCommandQueue(cl_command_queue command_queue)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clRetainCommandQueue(command_queue); return cl_loader.clRetainCommandQueue(command_queue);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clReleaseCommandQueue(cl_command_queue command_queue) CL_API_CALL cl_int CL_API_CALL clReleaseCommandQueue(cl_command_queue command_queue)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clReleaseCommandQueue(command_queue); return cl_loader.clReleaseCommandQueue(command_queue);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetCommandQueueInfo(cl_command_queue command_queue, cl_int CL_API_CALL clGetCommandQueueInfo(cl_command_queue command_queue,
cl_command_queue_info param_name, cl_command_queue_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetCommandQueueInfo(command_queue, param_name, param_value_size, param_value, return cl_loader.clGetCommandQueueInfo(command_queue, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_mem CL_API_ENTRY clCreateBuffer(cl_context context, cl_mem CL_API_CALL clCreateBuffer(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
size_t size, size_t size,
void *host_ptr, void *host_ptr,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateBuffer(context, flags, size, host_ptr, errcode_ret); return cl_loader.clCreateBuffer(context, flags, size, host_ptr, errcode_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clRetainMemObject(cl_mem memobj) CL_API_CALL cl_int CL_API_CALL clRetainMemObject(cl_mem memobj)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clRetainMemObject(memobj); return cl_loader.clRetainMemObject(memobj);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clReleaseMemObject(cl_mem memobj) CL_API_CALL cl_int CL_API_CALL clReleaseMemObject(cl_mem memobj)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clReleaseMemObject(memobj); return cl_loader.clReleaseMemObject(memobj);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetSupportedImageFormats(cl_context context, cl_int CL_API_CALL clGetSupportedImageFormats(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
cl_mem_object_type image_type, cl_mem_object_type image_type,
cl_uint num_entries, cl_uint num_entries,
cl_image_format *image_formats, cl_image_format *image_formats,
cl_uint *num_image_formats) CL_API_CALL cl_uint *num_image_formats)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetSupportedImageFormats(context, flags, image_type, num_entries, return cl_loader.clGetSupportedImageFormats(context, flags, image_type, num_entries,
image_formats, num_image_formats); image_formats, num_image_formats);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetMemObjectInfo(cl_mem memobj, cl_int CL_API_CALL clGetMemObjectInfo(cl_mem memobj,
cl_mem_info param_name, cl_mem_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetMemObjectInfo(memobj, param_name, param_value_size, param_value, return cl_loader.clGetMemObjectInfo(memobj, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetImageInfo(cl_mem image, cl_int CL_API_CALL clGetImageInfo(cl_mem image,
cl_image_info param_name, cl_image_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetImageInfo(image, param_name, param_value_size, param_value, return cl_loader.clGetImageInfo(image, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clRetainSampler(cl_sampler sampler) CL_API_CALL cl_int CL_API_CALL clRetainSampler(cl_sampler sampler)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clRetainSampler(sampler); return cl_loader.clRetainSampler(sampler);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clReleaseSampler(cl_sampler sampler) CL_API_CALL cl_int CL_API_CALL clReleaseSampler(cl_sampler sampler)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clReleaseSampler(sampler); return cl_loader.clReleaseSampler(sampler);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetSamplerInfo(cl_sampler sampler, cl_int CL_API_CALL clGetSamplerInfo(cl_sampler sampler,
cl_sampler_info param_name, cl_sampler_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetSamplerInfo(sampler, param_name, param_value_size, param_value, return cl_loader.clGetSamplerInfo(sampler, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_program CL_API_ENTRY clCreateProgramWithSource(cl_context context, cl_program CL_API_CALL clCreateProgramWithSource(cl_context context,
cl_uint count, cl_uint count,
const char **strings, const char **strings,
const size_t *lengths, const size_t *lengths,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateProgramWithSource(context, count, strings, lengths, errcode_ret); return cl_loader.clCreateProgramWithSource(context, count, strings, lengths, errcode_ret);
} }
ANGLE_EXPORT cl_program CL_API_ENTRY clCreateProgramWithBinary(cl_context context, cl_program CL_API_CALL clCreateProgramWithBinary(cl_context context,
cl_uint num_devices, cl_uint num_devices,
const cl_device_id *device_list, const cl_device_id *device_list,
const size_t *lengths, const size_t *lengths,
const unsigned char **binaries, const unsigned char **binaries,
cl_int *binary_status, cl_int *binary_status,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateProgramWithBinary(context, num_devices, device_list, lengths, binaries, return cl_loader.clCreateProgramWithBinary(context, num_devices, device_list, lengths, binaries,
binary_status, errcode_ret); binary_status, errcode_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clRetainProgram(cl_program program) CL_API_CALL cl_int CL_API_CALL clRetainProgram(cl_program program)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clRetainProgram(program); return cl_loader.clRetainProgram(program);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clReleaseProgram(cl_program program) CL_API_CALL cl_int CL_API_CALL clReleaseProgram(cl_program program)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clReleaseProgram(program); return cl_loader.clReleaseProgram(program);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clBuildProgram(cl_program program, cl_int CL_API_CALL clBuildProgram(cl_program program,
cl_uint num_devices, cl_uint num_devices,
const cl_device_id *device_list, const cl_device_id *device_list,
const char *options, const char *options,
void(CL_CALLBACK *pfn_notify)(cl_program program, void(CL_CALLBACK *pfn_notify)(cl_program program,
void *user_data), void *user_data),
void *user_data) CL_API_CALL void *user_data)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clBuildProgram(program, num_devices, device_list, options, pfn_notify, return cl_loader.clBuildProgram(program, num_devices, device_list, options, pfn_notify,
user_data); user_data);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetProgramInfo(cl_program program, cl_int CL_API_CALL clGetProgramInfo(cl_program program,
cl_program_info param_name, cl_program_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetProgramInfo(program, param_name, param_value_size, param_value, return cl_loader.clGetProgramInfo(program, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetProgramBuildInfo(cl_program program, cl_int CL_API_CALL clGetProgramBuildInfo(cl_program program,
cl_device_id device, cl_device_id device,
cl_program_build_info param_name, cl_program_build_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetProgramBuildInfo(program, device, param_name, param_value_size, return cl_loader.clGetProgramBuildInfo(program, device, param_name, param_value_size,
param_value, param_value_size_ret); param_value, param_value_size_ret);
} }
ANGLE_EXPORT cl_kernel CL_API_ENTRY clCreateKernel(cl_program program, cl_kernel CL_API_CALL clCreateKernel(cl_program program,
const char *kernel_name, const char *kernel_name,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateKernel(program, kernel_name, errcode_ret); return cl_loader.clCreateKernel(program, kernel_name, errcode_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clCreateKernelsInProgram(cl_program program, cl_int CL_API_CALL clCreateKernelsInProgram(cl_program program,
cl_uint num_kernels, cl_uint num_kernels,
cl_kernel *kernels, cl_kernel *kernels,
cl_uint *num_kernels_ret) CL_API_CALL cl_uint *num_kernels_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateKernelsInProgram(program, num_kernels, kernels, num_kernels_ret); return cl_loader.clCreateKernelsInProgram(program, num_kernels, kernels, num_kernels_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clRetainKernel(cl_kernel kernel) CL_API_CALL cl_int CL_API_CALL clRetainKernel(cl_kernel kernel)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clRetainKernel(kernel); return cl_loader.clRetainKernel(kernel);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clReleaseKernel(cl_kernel kernel) CL_API_CALL cl_int CL_API_CALL clReleaseKernel(cl_kernel kernel)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clReleaseKernel(kernel); return cl_loader.clReleaseKernel(kernel);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clSetKernelArg(cl_kernel kernel, cl_int CL_API_CALL clSetKernelArg(cl_kernel kernel,
cl_uint arg_index, cl_uint arg_index,
size_t arg_size, size_t arg_size,
const void *arg_value) CL_API_CALL const void *arg_value)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clSetKernelArg(kernel, arg_index, arg_size, arg_value); return cl_loader.clSetKernelArg(kernel, arg_index, arg_size, arg_value);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetKernelInfo(cl_kernel kernel, cl_int CL_API_CALL clGetKernelInfo(cl_kernel kernel,
cl_kernel_info param_name, cl_kernel_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetKernelInfo(kernel, param_name, param_value_size, param_value, return cl_loader.clGetKernelInfo(kernel, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetKernelWorkGroupInfo(cl_kernel kernel, cl_int CL_API_CALL clGetKernelWorkGroupInfo(cl_kernel kernel,
cl_device_id device, cl_device_id device,
cl_kernel_work_group_info param_name, cl_kernel_work_group_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetKernelWorkGroupInfo(kernel, device, param_name, param_value_size, return cl_loader.clGetKernelWorkGroupInfo(kernel, device, param_name, param_value_size,
param_value, param_value_size_ret); param_value, param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clWaitForEvents(cl_uint num_events, cl_int CL_API_CALL clWaitForEvents(cl_uint num_events, const cl_event *event_list)
const cl_event *event_list) CL_API_CALL
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clWaitForEvents(num_events, event_list); return cl_loader.clWaitForEvents(num_events, event_list);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetEventInfo(cl_event event, cl_int CL_API_CALL clGetEventInfo(cl_event event,
cl_event_info param_name, cl_event_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetEventInfo(event, param_name, param_value_size, param_value, return cl_loader.clGetEventInfo(event, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clRetainEvent(cl_event event) CL_API_CALL cl_int CL_API_CALL clRetainEvent(cl_event event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clRetainEvent(event); return cl_loader.clRetainEvent(event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clReleaseEvent(cl_event event) CL_API_CALL cl_int CL_API_CALL clReleaseEvent(cl_event event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clReleaseEvent(event); return cl_loader.clReleaseEvent(event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clGetEventProfilingInfo(cl_event event, cl_int CL_API_CALL clGetEventProfilingInfo(cl_event event,
cl_profiling_info param_name, cl_profiling_info param_name,
size_t param_value_size, size_t param_value_size,
void *param_value, void *param_value,
size_t *param_value_size_ret) CL_API_CALL size_t *param_value_size_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetEventProfilingInfo(event, param_name, param_value_size, param_value, return cl_loader.clGetEventProfilingInfo(event, param_name, param_value_size, param_value,
param_value_size_ret); param_value_size_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clFlush(cl_command_queue command_queue) CL_API_CALL cl_int CL_API_CALL clFlush(cl_command_queue command_queue)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clFlush(command_queue); return cl_loader.clFlush(command_queue);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clFinish(cl_command_queue command_queue) CL_API_CALL cl_int CL_API_CALL clFinish(cl_command_queue command_queue)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clFinish(command_queue); return cl_loader.clFinish(command_queue);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueReadBuffer(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueReadBuffer(cl_command_queue command_queue,
cl_mem buffer, cl_mem buffer,
cl_bool blocking_read, cl_bool blocking_read,
size_t offset, size_t offset,
size_t size, size_t size,
void *ptr, void *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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueReadBuffer(command_queue, buffer, blocking_read, offset, size, ptr, return cl_loader.clEnqueueReadBuffer(command_queue, buffer, blocking_read, offset, size, ptr,
num_events_in_wait_list, event_wait_list, event); num_events_in_wait_list, event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueWriteBuffer(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueWriteBuffer(cl_command_queue command_queue,
cl_mem buffer, cl_mem buffer,
cl_bool blocking_write, cl_bool blocking_write,
size_t offset, size_t offset,
size_t size, size_t size,
const void *ptr, const void *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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueWriteBuffer(command_queue, buffer, blocking_write, offset, size, ptr, return cl_loader.clEnqueueWriteBuffer(command_queue, buffer, blocking_write, offset, size, ptr,
num_events_in_wait_list, event_wait_list, event); num_events_in_wait_list, event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyBuffer(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueCopyBuffer(cl_command_queue command_queue,
cl_mem src_buffer, cl_mem src_buffer,
cl_mem dst_buffer, cl_mem dst_buffer,
size_t src_offset, size_t src_offset,
size_t dst_offset, size_t dst_offset,
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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueCopyBuffer(command_queue, src_buffer, dst_buffer, src_offset, return cl_loader.clEnqueueCopyBuffer(command_queue, src_buffer, dst_buffer, src_offset,
...@@ -484,17 +482,17 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyBuffer(cl_command_queue command_qu ...@@ -484,17 +482,17 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyBuffer(cl_command_queue command_qu
event); event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueReadImage(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueReadImage(cl_command_queue command_queue,
cl_mem image, cl_mem image,
cl_bool blocking_read, cl_bool blocking_read,
const size_t *origin, const size_t *origin,
const size_t *region, const size_t *region,
size_t row_pitch, size_t row_pitch,
size_t slice_pitch, size_t slice_pitch,
void *ptr, void *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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueReadImage(command_queue, image, blocking_read, origin, region, return cl_loader.clEnqueueReadImage(command_queue, image, blocking_read, origin, region,
...@@ -502,17 +500,17 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueReadImage(cl_command_queue command_que ...@@ -502,17 +500,17 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueReadImage(cl_command_queue command_que
event_wait_list, event); event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueWriteImage(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueWriteImage(cl_command_queue command_queue,
cl_mem image, cl_mem image,
cl_bool blocking_write, cl_bool blocking_write,
const size_t *origin, const size_t *origin,
const size_t *region, const size_t *region,
size_t input_row_pitch, size_t input_row_pitch,
size_t input_slice_pitch, size_t input_slice_pitch,
const void *ptr, const void *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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueWriteImage(command_queue, image, blocking_write, origin, region, return cl_loader.clEnqueueWriteImage(command_queue, image, blocking_write, origin, region,
...@@ -520,30 +518,30 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueWriteImage(cl_command_queue command_qu ...@@ -520,30 +518,30 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueWriteImage(cl_command_queue command_qu
num_events_in_wait_list, event_wait_list, event); num_events_in_wait_list, event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyImage(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueCopyImage(cl_command_queue command_queue,
cl_mem src_image, cl_mem src_image,
cl_mem dst_image, cl_mem dst_image,
const size_t *src_origin, const size_t *src_origin,
const size_t *dst_origin, const size_t *dst_origin,
const size_t *region, const size_t *region,
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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueCopyImage(command_queue, src_image, dst_image, src_origin, dst_origin, return cl_loader.clEnqueueCopyImage(command_queue, src_image, dst_image, src_origin, dst_origin,
region, num_events_in_wait_list, event_wait_list, event); region, num_events_in_wait_list, event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyImageToBuffer(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueCopyImageToBuffer(cl_command_queue command_queue,
cl_mem src_image, cl_mem src_image,
cl_mem dst_buffer, cl_mem dst_buffer,
const size_t *src_origin, const size_t *src_origin,
const size_t *region, const size_t *region,
size_t dst_offset, size_t dst_offset,
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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueCopyImageToBuffer(command_queue, src_image, dst_buffer, src_origin, return cl_loader.clEnqueueCopyImageToBuffer(command_queue, src_image, dst_buffer, src_origin,
...@@ -551,15 +549,15 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyImageToBuffer(cl_command_queue com ...@@ -551,15 +549,15 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyImageToBuffer(cl_command_queue com
event_wait_list, event); event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyBufferToImage(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueCopyBufferToImage(cl_command_queue command_queue,
cl_mem src_buffer, cl_mem src_buffer,
cl_mem dst_image, cl_mem dst_image,
size_t src_offset, size_t src_offset,
const size_t *dst_origin, const size_t *dst_origin,
const size_t *region, const size_t *region,
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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueCopyBufferToImage(command_queue, src_buffer, dst_image, src_offset, return cl_loader.clEnqueueCopyBufferToImage(command_queue, src_buffer, dst_image, src_offset,
...@@ -567,16 +565,16 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyBufferToImage(cl_command_queue com ...@@ -567,16 +565,16 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueCopyBufferToImage(cl_command_queue com
event_wait_list, event); event_wait_list, event);
} }
ANGLE_EXPORT void *CL_API_ENTRY clEnqueueMapBuffer(cl_command_queue command_queue, void *CL_API_CALL clEnqueueMapBuffer(cl_command_queue command_queue,
cl_mem buffer, cl_mem buffer,
cl_bool blocking_map, cl_bool blocking_map,
cl_map_flags map_flags, cl_map_flags map_flags,
size_t offset, size_t offset,
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_event *event,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueMapBuffer(command_queue, buffer, blocking_map, map_flags, offset, return cl_loader.clEnqueueMapBuffer(command_queue, buffer, blocking_map, map_flags, offset,
...@@ -584,18 +582,18 @@ ANGLE_EXPORT void *CL_API_ENTRY clEnqueueMapBuffer(cl_command_queue command_queu ...@@ -584,18 +582,18 @@ ANGLE_EXPORT void *CL_API_ENTRY clEnqueueMapBuffer(cl_command_queue command_queu
errcode_ret); errcode_ret);
} }
ANGLE_EXPORT void *CL_API_ENTRY clEnqueueMapImage(cl_command_queue command_queue, void *CL_API_CALL clEnqueueMapImage(cl_command_queue command_queue,
cl_mem image, cl_mem image,
cl_bool blocking_map, cl_bool blocking_map,
cl_map_flags map_flags, cl_map_flags map_flags,
const size_t *origin, const size_t *origin,
const size_t *region, const size_t *region,
size_t *image_row_pitch, size_t *image_row_pitch,
size_t *image_slice_pitch, size_t *image_slice_pitch,
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,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueMapImage( return cl_loader.clEnqueueMapImage(
...@@ -603,27 +601,27 @@ ANGLE_EXPORT void *CL_API_ENTRY clEnqueueMapImage(cl_command_queue command_queue ...@@ -603,27 +601,27 @@ ANGLE_EXPORT void *CL_API_ENTRY clEnqueueMapImage(cl_command_queue command_queue
image_slice_pitch, num_events_in_wait_list, event_wait_list, event, errcode_ret); image_slice_pitch, num_events_in_wait_list, event_wait_list, event, errcode_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueUnmapMemObject(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueUnmapMemObject(cl_command_queue command_queue,
cl_mem memobj, cl_mem memobj,
void *mapped_ptr, void *mapped_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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueUnmapMemObject(command_queue, memobj, mapped_ptr, return cl_loader.clEnqueueUnmapMemObject(command_queue, memobj, mapped_ptr,
num_events_in_wait_list, event_wait_list, event); num_events_in_wait_list, event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueNDRangeKernel(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueNDRangeKernel(cl_command_queue command_queue,
cl_kernel kernel, cl_kernel kernel,
cl_uint work_dim, cl_uint work_dim,
const size_t *global_work_offset, const size_t *global_work_offset,
const size_t *global_work_size, const size_t *global_work_size,
const size_t *local_work_size, const size_t *local_work_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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueNDRangeKernel(command_queue, kernel, work_dim, global_work_offset, return cl_loader.clEnqueueNDRangeKernel(command_queue, kernel, work_dim, global_work_offset,
...@@ -631,16 +629,16 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueNDRangeKernel(cl_command_queue command ...@@ -631,16 +629,16 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueNDRangeKernel(cl_command_queue command
num_events_in_wait_list, event_wait_list, event); num_events_in_wait_list, event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueNativeKernel(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueNativeKernel(cl_command_queue command_queue,
void(CL_CALLBACK *user_func)(void *), void(CL_CALLBACK *user_func)(void *),
void *args, void *args,
size_t cb_args, size_t cb_args,
cl_uint num_mem_objects, cl_uint num_mem_objects,
const cl_mem *mem_list, const cl_mem *mem_list,
const void **args_mem_loc, const void **args_mem_loc,
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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueNativeKernel(command_queue, user_func, args, cb_args, num_mem_objects, return cl_loader.clEnqueueNativeKernel(command_queue, user_func, args, cb_args, num_mem_objects,
...@@ -648,40 +646,39 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueNativeKernel(cl_command_queue command_ ...@@ -648,40 +646,39 @@ ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueNativeKernel(cl_command_queue command_
event_wait_list, event); event_wait_list, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY cl_int CL_API_CALL clSetCommandQueueProperty(cl_command_queue command_queue,
clSetCommandQueueProperty(cl_command_queue command_queue, cl_command_queue_properties properties,
cl_command_queue_properties properties, cl_bool enable,
cl_bool enable, cl_command_queue_properties *old_properties)
cl_command_queue_properties *old_properties) CL_API_CALL
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clSetCommandQueueProperty(command_queue, properties, enable, old_properties); return cl_loader.clSetCommandQueueProperty(command_queue, properties, enable, old_properties);
} }
ANGLE_EXPORT cl_mem CL_API_ENTRY clCreateImage2D(cl_context context, cl_mem CL_API_CALL clCreateImage2D(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
const cl_image_format *image_format, const cl_image_format *image_format,
size_t image_width, size_t image_width,
size_t image_height, size_t image_height,
size_t image_row_pitch, size_t image_row_pitch,
void *host_ptr, void *host_ptr,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateImage2D(context, flags, image_format, image_width, image_height, return cl_loader.clCreateImage2D(context, flags, image_format, image_width, image_height,
image_row_pitch, host_ptr, errcode_ret); image_row_pitch, host_ptr, errcode_ret);
} }
ANGLE_EXPORT cl_mem CL_API_ENTRY clCreateImage3D(cl_context context, cl_mem CL_API_CALL clCreateImage3D(cl_context context,
cl_mem_flags flags, cl_mem_flags flags,
const cl_image_format *image_format, const cl_image_format *image_format,
size_t image_width, size_t image_width,
size_t image_height, size_t image_height,
size_t image_depth, size_t image_depth,
size_t image_row_pitch, size_t image_row_pitch,
size_t image_slice_pitch, size_t image_slice_pitch,
void *host_ptr, void *host_ptr,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateImage3D(context, flags, image_format, image_width, image_height, return cl_loader.clCreateImage3D(context, flags, image_format, image_width, image_height,
...@@ -689,65 +686,63 @@ ANGLE_EXPORT cl_mem CL_API_ENTRY clCreateImage3D(cl_context context, ...@@ -689,65 +686,63 @@ ANGLE_EXPORT cl_mem CL_API_ENTRY clCreateImage3D(cl_context context,
errcode_ret); errcode_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueMarker(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueMarker(cl_command_queue command_queue, cl_event *event)
cl_event *event) CL_API_CALL
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueMarker(command_queue, event); return cl_loader.clEnqueueMarker(command_queue, event);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueWaitForEvents(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueWaitForEvents(cl_command_queue command_queue,
cl_uint num_events, cl_uint num_events,
const cl_event *event_list) CL_API_CALL const cl_event *event_list)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueWaitForEvents(command_queue, num_events, event_list); return cl_loader.clEnqueueWaitForEvents(command_queue, num_events, event_list);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueBarrier(cl_command_queue command_queue) CL_API_CALL cl_int CL_API_CALL clEnqueueBarrier(cl_command_queue command_queue)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueBarrier(command_queue); return cl_loader.clEnqueueBarrier(command_queue);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clUnloadCompiler() CL_API_CALL cl_int CL_API_CALL clUnloadCompiler()
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clUnloadCompiler(); return cl_loader.clUnloadCompiler();
} }
ANGLE_EXPORT void *CL_API_ENTRY clGetExtensionFunctionAddress(const char *func_name) CL_API_CALL void *CL_API_CALL clGetExtensionFunctionAddress(const char *func_name)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clGetExtensionFunctionAddress(func_name); return cl_loader.clGetExtensionFunctionAddress(func_name);
} }
ANGLE_EXPORT cl_command_queue CL_API_ENTRY cl_command_queue CL_API_CALL clCreateCommandQueue(cl_context context,
clCreateCommandQueue(cl_context context, cl_device_id device,
cl_device_id device, cl_command_queue_properties properties,
cl_command_queue_properties properties, cl_int *errcode_ret)
cl_int *errcode_ret) CL_API_CALL
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateCommandQueue(context, device, properties, errcode_ret); return cl_loader.clCreateCommandQueue(context, device, properties, errcode_ret);
} }
ANGLE_EXPORT cl_sampler CL_API_ENTRY clCreateSampler(cl_context context, cl_sampler CL_API_CALL clCreateSampler(cl_context context,
cl_bool normalized_coords, cl_bool normalized_coords,
cl_addressing_mode addressing_mode, cl_addressing_mode addressing_mode,
cl_filter_mode filter_mode, cl_filter_mode filter_mode,
cl_int *errcode_ret) CL_API_CALL cl_int *errcode_ret)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clCreateSampler(context, normalized_coords, addressing_mode, filter_mode, return cl_loader.clCreateSampler(context, normalized_coords, addressing_mode, filter_mode,
errcode_ret); errcode_ret);
} }
ANGLE_EXPORT cl_int CL_API_ENTRY clEnqueueTask(cl_command_queue command_queue, cl_int CL_API_CALL clEnqueueTask(cl_command_queue command_queue,
cl_kernel kernel, cl_kernel kernel,
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_API_CALL cl_event *event)
{ {
EnsureCLLoaded(); EnsureCLLoaded();
return cl_loader.clEnqueueTask(command_queue, kernel, num_events_in_wait_list, event_wait_list, return cl_loader.clEnqueueTask(command_queue, kernel, num_events_in_wait_list, event_wait_list,
......
DisableFormat: true DisableFormat: true
SortIncludes: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment