Merge pull request #1587 from alalek:opencl_khronos_headers
commit
d50f0d2ed2
28 changed files with 15919 additions and 1108 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,126 @@ |
||||
/**********************************************************************************
|
||||
* Copyright (c) 2008-2012 The Khronos Group Inc. |
||||
* |
||||
* Permission is hereby granted, free of charge, to any person obtaining a |
||||
* copy of this software and/or associated documentation files (the |
||||
* "Materials"), to deal in the Materials without restriction, including |
||||
* without limitation the rights to use, copy, modify, merge, publish, |
||||
* distribute, sublicense, and/or sell copies of the Materials, and to |
||||
* permit persons to whom the Materials are furnished to do so, subject to |
||||
* the following conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be included |
||||
* in all copies or substantial portions of the Materials. |
||||
* |
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
||||
**********************************************************************************/ |
||||
|
||||
/* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ |
||||
|
||||
#ifndef __OPENCL_CL_D3D10_H |
||||
#define __OPENCL_CL_D3D10_H |
||||
|
||||
#include <d3d10.h> |
||||
#include <CL/cl.h> |
||||
#include <CL/cl_platform.h> |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
/******************************************************************************
|
||||
* cl_khr_d3d10_sharing */ |
||||
#define cl_khr_d3d10_sharing 1 |
||||
|
||||
typedef cl_uint cl_d3d10_device_source_khr; |
||||
typedef cl_uint cl_d3d10_device_set_khr; |
||||
|
||||
/******************************************************************************/ |
||||
|
||||
// Error Codes
|
||||
#define CL_INVALID_D3D10_DEVICE_KHR -1002 |
||||
#define CL_INVALID_D3D10_RESOURCE_KHR -1003 |
||||
#define CL_D3D10_RESOURCE_ALREADY_ACQUIRED_KHR -1004 |
||||
#define CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR -1005 |
||||
|
||||
// cl_d3d10_device_source_nv
|
||||
#define CL_D3D10_DEVICE_KHR 0x4010 |
||||
#define CL_D3D10_DXGI_ADAPTER_KHR 0x4011 |
||||
|
||||
// cl_d3d10_device_set_nv
|
||||
#define CL_PREFERRED_DEVICES_FOR_D3D10_KHR 0x4012 |
||||
#define CL_ALL_DEVICES_FOR_D3D10_KHR 0x4013 |
||||
|
||||
// cl_context_info
|
||||
#define CL_CONTEXT_D3D10_DEVICE_KHR 0x4014 |
||||
#define CL_CONTEXT_D3D10_PREFER_SHARED_RESOURCES_KHR 0x402C |
||||
|
||||
// cl_mem_info
|
||||
#define CL_MEM_D3D10_RESOURCE_KHR 0x4015 |
||||
|
||||
// cl_image_info
|
||||
#define CL_IMAGE_D3D10_SUBRESOURCE_KHR 0x4016 |
||||
|
||||
// cl_command_type
|
||||
#define CL_COMMAND_ACQUIRE_D3D10_OBJECTS_KHR 0x4017 |
||||
#define CL_COMMAND_RELEASE_D3D10_OBJECTS_KHR 0x4018 |
||||
|
||||
/******************************************************************************/ |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D10KHR_fn)( |
||||
cl_platform_id platform, |
||||
cl_d3d10_device_source_khr d3d_device_source, |
||||
void * d3d_object, |
||||
cl_d3d10_device_set_khr d3d_device_set, |
||||
cl_uint num_entries, |
||||
cl_device_id * devices, |
||||
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10BufferKHR_fn)( |
||||
cl_context context, |
||||
cl_mem_flags flags, |
||||
ID3D10Buffer * resource, |
||||
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10Texture2DKHR_fn)( |
||||
cl_context context, |
||||
cl_mem_flags flags, |
||||
ID3D10Texture2D * resource, |
||||
UINT subresource, |
||||
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10Texture3DKHR_fn)( |
||||
cl_context context, |
||||
cl_mem_flags flags, |
||||
ID3D10Texture3D * resource, |
||||
UINT subresource, |
||||
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D10ObjectsKHR_fn)( |
||||
cl_command_queue command_queue, |
||||
cl_uint num_objects, |
||||
const cl_mem * mem_objects, |
||||
cl_uint num_events_in_wait_list, |
||||
const cl_event * event_wait_list, |
||||
cl_event * event) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseD3D10ObjectsKHR_fn)( |
||||
cl_command_queue command_queue, |
||||
cl_uint num_objects, |
||||
const cl_mem * mem_objects, |
||||
cl_uint num_events_in_wait_list, |
||||
const cl_event * event_wait_list, |
||||
cl_event * event) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif // __OPENCL_CL_D3D10_H
|
||||
|
@ -0,0 +1,126 @@ |
||||
/**********************************************************************************
|
||||
* Copyright (c) 2008-2012 The Khronos Group Inc. |
||||
* |
||||
* Permission is hereby granted, free of charge, to any person obtaining a |
||||
* copy of this software and/or associated documentation files (the |
||||
* "Materials"), to deal in the Materials without restriction, including |
||||
* without limitation the rights to use, copy, modify, merge, publish, |
||||
* distribute, sublicense, and/or sell copies of the Materials, and to |
||||
* permit persons to whom the Materials are furnished to do so, subject to |
||||
* the following conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be included |
||||
* in all copies or substantial portions of the Materials. |
||||
* |
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
||||
**********************************************************************************/ |
||||
|
||||
/* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ |
||||
|
||||
#ifndef __OPENCL_CL_D3D11_H |
||||
#define __OPENCL_CL_D3D11_H |
||||
|
||||
#include <d3d11.h> |
||||
#include <CL/cl.h> |
||||
#include <CL/cl_platform.h> |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
/******************************************************************************
|
||||
* cl_khr_d3d11_sharing */ |
||||
#define cl_khr_d3d11_sharing 1 |
||||
|
||||
typedef cl_uint cl_d3d11_device_source_khr; |
||||
typedef cl_uint cl_d3d11_device_set_khr; |
||||
|
||||
/******************************************************************************/ |
||||
|
||||
// Error Codes
|
||||
#define CL_INVALID_D3D11_DEVICE_KHR -1006 |
||||
#define CL_INVALID_D3D11_RESOURCE_KHR -1007 |
||||
#define CL_D3D11_RESOURCE_ALREADY_ACQUIRED_KHR -1008 |
||||
#define CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR -1009 |
||||
|
||||
// cl_d3d11_device_source
|
||||
#define CL_D3D11_DEVICE_KHR 0x4019 |
||||
#define CL_D3D11_DXGI_ADAPTER_KHR 0x401A |
||||
|
||||
// cl_d3d11_device_set
|
||||
#define CL_PREFERRED_DEVICES_FOR_D3D11_KHR 0x401B |
||||
#define CL_ALL_DEVICES_FOR_D3D11_KHR 0x401C |
||||
|
||||
// cl_context_info
|
||||
#define CL_CONTEXT_D3D11_DEVICE_KHR 0x401D |
||||
#define CL_CONTEXT_D3D11_PREFER_SHARED_RESOURCES_KHR 0x402D |
||||
|
||||
// cl_mem_info
|
||||
#define CL_MEM_D3D11_RESOURCE_KHR 0x401E |
||||
|
||||
// cl_image_info
|
||||
#define CL_IMAGE_D3D11_SUBRESOURCE_KHR 0x401F |
||||
|
||||
// cl_command_type
|
||||
#define CL_COMMAND_ACQUIRE_D3D11_OBJECTS_KHR 0x4020 |
||||
#define CL_COMMAND_RELEASE_D3D11_OBJECTS_KHR 0x4021 |
||||
|
||||
/******************************************************************************/ |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D11KHR_fn)( |
||||
cl_platform_id platform, |
||||
cl_d3d11_device_source_khr d3d_device_source, |
||||
void * d3d_object, |
||||
cl_d3d11_device_set_khr d3d_device_set, |
||||
cl_uint num_entries, |
||||
cl_device_id * devices, |
||||
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11BufferKHR_fn)( |
||||
cl_context context, |
||||
cl_mem_flags flags, |
||||
ID3D11Buffer * resource, |
||||
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11Texture2DKHR_fn)( |
||||
cl_context context, |
||||
cl_mem_flags flags, |
||||
ID3D11Texture2D * resource, |
||||
UINT subresource, |
||||
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11Texture3DKHR_fn)( |
||||
cl_context context, |
||||
cl_mem_flags flags, |
||||
ID3D11Texture3D * resource, |
||||
UINT subresource, |
||||
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D11ObjectsKHR_fn)( |
||||
cl_command_queue command_queue, |
||||
cl_uint num_objects, |
||||
const cl_mem * mem_objects, |
||||
cl_uint num_events_in_wait_list, |
||||
const cl_event * event_wait_list, |
||||
cl_event * event) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseD3D11ObjectsKHR_fn)( |
||||
cl_command_queue command_queue, |
||||
cl_uint num_objects, |
||||
const cl_mem * mem_objects, |
||||
cl_uint num_events_in_wait_list, |
||||
const cl_event * event_wait_list, |
||||
cl_event * event) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif // __OPENCL_CL_D3D11_H
|
||||
|
@ -0,0 +1,127 @@ |
||||
/**********************************************************************************
|
||||
* Copyright (c) 2008-2012 The Khronos Group Inc. |
||||
* |
||||
* Permission is hereby granted, free of charge, to any person obtaining a |
||||
* copy of this software and/or associated documentation files (the |
||||
* "Materials"), to deal in the Materials without restriction, including |
||||
* without limitation the rights to use, copy, modify, merge, publish, |
||||
* distribute, sublicense, and/or sell copies of the Materials, and to |
||||
* permit persons to whom the Materials are furnished to do so, subject to |
||||
* the following conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be included |
||||
* in all copies or substantial portions of the Materials. |
||||
* |
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
||||
**********************************************************************************/ |
||||
|
||||
/* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ |
||||
|
||||
#ifndef __OPENCL_CL_DX9_MEDIA_SHARING_H |
||||
#define __OPENCL_CL_DX9_MEDIA_SHARING_H |
||||
|
||||
#include <CL/cl.h> |
||||
#include <CL/cl_platform.h> |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
/******************************************************************************
|
||||
/* cl_khr_dx9_media_sharing */ |
||||
#define cl_khr_dx9_media_sharing 1 |
||||
|
||||
typedef cl_uint cl_dx9_media_adapter_type_khr; |
||||
typedef cl_uint cl_dx9_media_adapter_set_khr; |
||||
|
||||
#if defined(_WIN32) |
||||
#include <d3d9.h> |
||||
typedef struct _cl_dx9_surface_info_khr |
||||
{ |
||||
IDirect3DSurface9 *resource; |
||||
HANDLE shared_handle; |
||||
} cl_dx9_surface_info_khr; |
||||
#endif |
||||
|
||||
|
||||
/******************************************************************************/ |
||||
|
||||
// Error Codes
|
||||
#define CL_INVALID_DX9_MEDIA_ADAPTER_KHR -1010 |
||||
#define CL_INVALID_DX9_MEDIA_SURFACE_KHR -1011 |
||||
#define CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR -1012 |
||||
#define CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR -1013 |
||||
|
||||
// cl_media_adapter_type_khr
|
||||
#define CL_ADAPTER_D3D9_KHR 0x2020 |
||||
#define CL_ADAPTER_D3D9EX_KHR 0x2021 |
||||
#define CL_ADAPTER_DXVA_KHR 0x2022 |
||||
|
||||
// cl_media_adapter_set_khr
|
||||
#define CL_PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR 0x2023 |
||||
#define CL_ALL_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR 0x2024 |
||||
|
||||
// cl_context_info
|
||||
#define CL_CONTEXT_ADAPTER_D3D9_KHR 0x2025 |
||||
#define CL_CONTEXT_ADAPTER_D3D9EX_KHR 0x2026 |
||||
#define CL_CONTEXT_ADAPTER_DXVA_KHR 0x2027 |
||||
|
||||
// cl_mem_info
|
||||
#define CL_MEM_DX9_MEDIA_ADAPTER_TYPE_KHR 0x2028 |
||||
#define CL_MEM_DX9_MEDIA_SURFACE_INFO_KHR 0x2029 |
||||
|
||||
// cl_image_info
|
||||
#define CL_IMAGE_DX9_MEDIA_PLANE_KHR 0x202A |
||||
|
||||
// cl_command_type
|
||||
#define CL_COMMAND_ACQUIRE_DX9_MEDIA_SURFACES_KHR 0x202B |
||||
#define CL_COMMAND_RELEASE_DX9_MEDIA_SURFACES_KHR 0x202C |
||||
|
||||
/******************************************************************************/ |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromDX9MediaAdapterKHR_fn)( |
||||
cl_platform_id platform, |
||||
cl_uint num_media_adapters, |
||||
cl_dx9_media_adapter_type_khr * media_adapter_type, |
||||
void * media_adapters, |
||||
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; |
||||
|
||||
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceKHR_fn)( |
||||
cl_context context, |
||||
cl_mem_flags flags, |
||||
cl_dx9_media_adapter_type_khr adapter_type, |
||||
void * surface_info, |
||||
cl_uint plane,
|
||||
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireDX9MediaSurfacesKHR_fn)( |
||||
cl_command_queue command_queue, |
||||
cl_uint num_objects, |
||||
const cl_mem * mem_objects, |
||||
cl_uint num_events_in_wait_list, |
||||
const cl_event * event_wait_list, |
||||
cl_event * event) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseDX9MediaSurfacesKHR_fn)( |
||||
cl_command_queue command_queue, |
||||
cl_uint num_objects, |
||||
const cl_mem * mem_objects, |
||||
cl_uint num_events_in_wait_list, |
||||
const cl_event * event_wait_list, |
||||
cl_event * event) CL_API_SUFFIX__VERSION_1_2; |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif // __OPENCL_CL_DX9_MEDIA_SHARING_H
|
||||
|
@ -0,0 +1,131 @@ |
||||
/*******************************************************************************
|
||||
* Copyright (c) 2008-2010 The Khronos Group Inc. |
||||
* |
||||
* Permission is hereby granted, free of charge, to any person obtaining a |
||||
* copy of this software and/or associated documentation files (the |
||||
* "Materials"), to deal in the Materials without restriction, including |
||||
* without limitation the rights to use, copy, modify, merge, publish, |
||||
* distribute, sublicense, and/or sell copies of the Materials, and to |
||||
* permit persons to whom the Materials are furnished to do so, subject to |
||||
* the following conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be included |
||||
* in all copies or substantial portions of the Materials. |
||||
* |
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
||||
******************************************************************************/ |
||||
|
||||
#ifndef __OPENCL_CL_EGL_H |
||||
#define __OPENCL_CL_EGL_H |
||||
|
||||
#ifdef __APPLE__ |
||||
|
||||
#else |
||||
#include <CL/cl.h> |
||||
#include <EGL/egl.h> |
||||
#include <EGL/eglext.h> |
||||
#endif |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
|
||||
/* Command type for events created with clEnqueueAcquireEGLObjectsKHR */ |
||||
#define CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHR 0x202F |
||||
#define CL_COMMAND_ACQUIRE_EGL_OBJECTS_KHR 0x202D |
||||
#define CL_COMMAND_RELEASE_EGL_OBJECTS_KHR 0x202E |
||||
|
||||
/* Error type for clCreateFromEGLImageKHR */ |
||||
#define CL_INVALID_EGL_OBJECT_KHR -1093 |
||||
#define CL_EGL_RESOURCE_NOT_ACQUIRED_KHR -1092 |
||||
|
||||
/* CLeglImageKHR is an opaque handle to an EGLImage */ |
||||
typedef void* CLeglImageKHR; |
||||
|
||||
/* CLeglDisplayKHR is an opaque handle to an EGLDisplay */ |
||||
typedef void* CLeglDisplayKHR; |
||||
|
||||
/* properties passed to clCreateFromEGLImageKHR */ |
||||
typedef intptr_t cl_egl_image_properties_khr; |
||||
|
||||
|
||||
#define cl_khr_egl_image 1 |
||||
|
||||
extern CL_API_ENTRY cl_mem CL_API_CALL |
||||
clCreateFromEGLImageKHR(cl_context /* context */, |
||||
CLeglDisplayKHR /* egldisplay */, |
||||
CLeglImageKHR /* eglimage */, |
||||
cl_mem_flags /* flags */, |
||||
const cl_egl_image_properties_khr * /* properties */, |
||||
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromEGLImageKHR_fn)( |
||||
cl_context context, |
||||
CLeglDisplayKHR egldisplay, |
||||
CLeglImageKHR eglimage, |
||||
cl_mem_flags flags, |
||||
const cl_egl_image_properties_khr * properties, |
||||
cl_int * errcode_ret); |
||||
|
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clEnqueueAcquireEGLObjectsKHR(cl_command_queue /* command_queue */, |
||||
cl_uint /* num_objects */, |
||||
const cl_mem * /* mem_objects */, |
||||
cl_uint /* num_events_in_wait_list */, |
||||
const cl_event * /* event_wait_list */, |
||||
cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireEGLObjectsKHR_fn)( |
||||
cl_command_queue command_queue, |
||||
cl_uint num_objects, |
||||
const cl_mem * mem_objects, |
||||
cl_uint num_events_in_wait_list, |
||||
const cl_event * event_wait_list, |
||||
cl_event * event); |
||||
|
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clEnqueueReleaseEGLObjectsKHR(cl_command_queue /* command_queue */, |
||||
cl_uint /* num_objects */, |
||||
const cl_mem * /* mem_objects */, |
||||
cl_uint /* num_events_in_wait_list */, |
||||
const cl_event * /* event_wait_list */, |
||||
cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseEGLObjectsKHR_fn)( |
||||
cl_command_queue command_queue, |
||||
cl_uint num_objects, |
||||
const cl_mem * mem_objects, |
||||
cl_uint num_events_in_wait_list, |
||||
const cl_event * event_wait_list, |
||||
cl_event * event); |
||||
|
||||
|
||||
#define cl_khr_egl_event 1 |
||||
|
||||
extern CL_API_ENTRY cl_event CL_API_CALL |
||||
clCreateEventFromEGLSyncKHR(cl_context /* context */, |
||||
EGLSyncKHR /* sync */, |
||||
EGLDisplay /* display */, |
||||
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_event (CL_API_CALL *clCreateEventFromEGLSyncKHR_fn)( |
||||
cl_context context, |
||||
EGLSyncKHR sync, |
||||
EGLDisplay display, |
||||
cl_int * errcode_ret); |
||||
|
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif /* __OPENCL_CL_EGL_H */ |
@ -0,0 +1,306 @@ |
||||
/*******************************************************************************
|
||||
* Copyright (c) 2008-2013 The Khronos Group Inc. |
||||
* |
||||
* Permission is hereby granted, free of charge, to any person obtaining a |
||||
* copy of this software and/or associated documentation files (the |
||||
* "Materials"), to deal in the Materials without restriction, including |
||||
* without limitation the rights to use, copy, modify, merge, publish, |
||||
* distribute, sublicense, and/or sell copies of the Materials, and to |
||||
* permit persons to whom the Materials are furnished to do so, subject to |
||||
* the following conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be included |
||||
* in all copies or substantial portions of the Materials. |
||||
* |
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
||||
******************************************************************************/ |
||||
|
||||
/* $Revision: 11928 $ on $Date: 2010-07-13 09:04:56 -0700 (Tue, 13 Jul 2010) $ */ |
||||
|
||||
/* cl_ext.h contains OpenCL extensions which don't have external */ |
||||
/* (OpenGL, D3D) dependencies. */ |
||||
|
||||
#ifndef __CL_EXT_H |
||||
#define __CL_EXT_H |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#ifdef __APPLE__ |
||||
#include <OpenCL/cl.h> |
||||
#include <AvailabilityMacros.h> |
||||
#else |
||||
#include <CL/cl.h> |
||||
#endif |
||||
|
||||
/* cl_khr_fp16 extension - no extension #define since it has no functions */ |
||||
#define CL_DEVICE_HALF_FP_CONFIG 0x1033 |
||||
|
||||
/* Memory object destruction
|
||||
* |
||||
* Apple extension for use to manage externally allocated buffers used with cl_mem objects with CL_MEM_USE_HOST_PTR |
||||
* |
||||
* Registers a user callback function that will be called when the memory object is deleted and its resources
|
||||
* freed. Each call to clSetMemObjectCallbackFn registers the specified user callback function on a callback
|
||||
* stack associated with memobj. The registered user callback functions are called in the reverse order in
|
||||
* which they were registered. The user callback functions are called and then the memory object is deleted
|
||||
* and its resources freed. This provides a mechanism for the application (and libraries) using memobj to be
|
||||
* notified when the memory referenced by host_ptr, specified when the memory object is created and used as
|
||||
* the storage bits for the memory object, can be reused or freed. |
||||
* |
||||
* The application may not call CL api's with the cl_mem object passed to the pfn_notify. |
||||
* |
||||
* Please check for the "cl_APPLE_SetMemObjectDestructor" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS) |
||||
* before using. |
||||
*/ |
||||
#define cl_APPLE_SetMemObjectDestructor 1 |
||||
cl_int CL_API_ENTRY clSetMemObjectDestructorAPPLE( cl_mem /* memobj */,
|
||||
void (* /*pfn_notify*/)( cl_mem /* memobj */, void* /*user_data*/),
|
||||
void * /*user_data */ ) CL_EXT_SUFFIX__VERSION_1_0;
|
||||
|
||||
|
||||
/* Context Logging Functions
|
||||
* |
||||
* The next three convenience functions are intended to be used as the pfn_notify parameter to clCreateContext(). |
||||
* Please check for the "cl_APPLE_ContextLoggingFunctions" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS) |
||||
* before using. |
||||
* |
||||
* clLogMessagesToSystemLog fowards on all log messages to the Apple System Logger
|
||||
*/ |
||||
#define cl_APPLE_ContextLoggingFunctions 1 |
||||
extern void CL_API_ENTRY clLogMessagesToSystemLogAPPLE( const char * /* errstr */,
|
||||
const void * /* private_info */,
|
||||
size_t /* cb */,
|
||||
void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0; |
||||
|
||||
/* clLogMessagesToStdout sends all log messages to the file descriptor stdout */ |
||||
extern void CL_API_ENTRY clLogMessagesToStdoutAPPLE( const char * /* errstr */,
|
||||
const void * /* private_info */,
|
||||
size_t /* cb */,
|
||||
void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0; |
||||
|
||||
/* clLogMessagesToStderr sends all log messages to the file descriptor stderr */ |
||||
extern void CL_API_ENTRY clLogMessagesToStderrAPPLE( const char * /* errstr */,
|
||||
const void * /* private_info */,
|
||||
size_t /* cb */,
|
||||
void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0; |
||||
|
||||
|
||||
/************************
|
||||
* cl_khr_icd extension *
|
||||
************************/ |
||||
#define cl_khr_icd 1 |
||||
|
||||
/* cl_platform_info */ |
||||
#define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920 |
||||
|
||||
/* Additional Error Codes */ |
||||
#define CL_PLATFORM_NOT_FOUND_KHR -1001 |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clIcdGetPlatformIDsKHR(cl_uint /* num_entries */, |
||||
cl_platform_id * /* platforms */, |
||||
cl_uint * /* num_platforms */); |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clIcdGetPlatformIDsKHR_fn)( |
||||
cl_uint /* num_entries */, |
||||
cl_platform_id * /* platforms */, |
||||
cl_uint * /* num_platforms */); |
||||
|
||||
|
||||
/* Extension: cl_khr_image2D_buffer
|
||||
* |
||||
* This extension allows a 2D image to be created from a cl_mem buffer without a copy. |
||||
* The type associated with a 2D image created from a buffer in an OpenCL program is image2d_t. |
||||
* Both the sampler and sampler-less read_image built-in functions are supported for 2D images |
||||
* and 2D images created from a buffer. Similarly, the write_image built-ins are also supported |
||||
* for 2D images created from a buffer. |
||||
* |
||||
* When the 2D image from buffer is created, the client must specify the width, |
||||
* height, image format (i.e. channel order and channel data type) and optionally the row pitch |
||||
* |
||||
* The pitch specified must be a multiple of CL_DEVICE_IMAGE_PITCH_ALIGNMENT pixels. |
||||
* The base address of the buffer must be aligned to CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT pixels. |
||||
*/ |
||||
|
||||
/*************************************
|
||||
* cl_khr_initalize_memory extension * |
||||
*************************************/ |
||||
|
||||
#define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x200E |
||||
|
||||
|
||||
/**************************************
|
||||
* cl_khr_terminate_context extension * |
||||
**************************************/ |
||||
|
||||
#define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x200F |
||||
#define CL_CONTEXT_TERMINATE_KHR 0x2010 |
||||
|
||||
#define cl_khr_terminate_context 1 |
||||
extern CL_API_ENTRY cl_int CL_API_CALL clTerminateContextKHR(cl_context /* context */) CL_EXT_SUFFIX__VERSION_1_2; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clTerminateContextKHR_fn)(cl_context /* context */) CL_EXT_SUFFIX__VERSION_1_2; |
||||
|
||||
|
||||
/*
|
||||
* Extension: cl_khr_spir |
||||
* |
||||
* This extension adds support to create an OpenCL program object from a
|
||||
* Standard Portable Intermediate Representation (SPIR) instance |
||||
*/ |
||||
|
||||
/******************************************
|
||||
* cl_nv_device_attribute_query extension * |
||||
******************************************/ |
||||
/* cl_nv_device_attribute_query extension - no extension #define since it has no functions */ |
||||
#define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000 |
||||
#define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001 |
||||
#define CL_DEVICE_REGISTERS_PER_BLOCK_NV 0x4002 |
||||
#define CL_DEVICE_WARP_SIZE_NV 0x4003 |
||||
#define CL_DEVICE_GPU_OVERLAP_NV 0x4004 |
||||
#define CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV 0x4005 |
||||
#define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006 |
||||
|
||||
/*********************************
|
||||
* cl_amd_device_attribute_query * |
||||
*********************************/ |
||||
#define CL_DEVICE_PROFILING_TIMER_OFFSET_AMD 0x4036 |
||||
|
||||
#ifdef CL_VERSION_1_1 |
||||
/***********************************
|
||||
* cl_ext_device_fission extension * |
||||
***********************************/ |
||||
#define cl_ext_device_fission 1 |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clReleaseDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
|
||||
|
||||
typedef CL_API_ENTRY cl_int
|
||||
(CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1; |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clRetainDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
|
||||
|
||||
typedef CL_API_ENTRY cl_int
|
||||
(CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1; |
||||
|
||||
typedef cl_ulong cl_device_partition_property_ext; |
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clCreateSubDevicesEXT( cl_device_id /*in_device*/, |
||||
const cl_device_partition_property_ext * /* properties */, |
||||
cl_uint /*num_entries*/, |
||||
cl_device_id * /*out_devices*/, |
||||
cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1; |
||||
|
||||
typedef CL_API_ENTRY cl_int
|
||||
( CL_API_CALL * clCreateSubDevicesEXT_fn)( cl_device_id /*in_device*/, |
||||
const cl_device_partition_property_ext * /* properties */, |
||||
cl_uint /*num_entries*/, |
||||
cl_device_id * /*out_devices*/, |
||||
cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1; |
||||
|
||||
/* cl_device_partition_property_ext */ |
||||
#define CL_DEVICE_PARTITION_EQUALLY_EXT 0x4050 |
||||
#define CL_DEVICE_PARTITION_BY_COUNTS_EXT 0x4051 |
||||
#define CL_DEVICE_PARTITION_BY_NAMES_EXT 0x4052 |
||||
#define CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT 0x4053 |
||||
|
||||
/* clDeviceGetInfo selectors */ |
||||
#define CL_DEVICE_PARENT_DEVICE_EXT 0x4054 |
||||
#define CL_DEVICE_PARTITION_TYPES_EXT 0x4055 |
||||
#define CL_DEVICE_AFFINITY_DOMAINS_EXT 0x4056 |
||||
#define CL_DEVICE_REFERENCE_COUNT_EXT 0x4057 |
||||
#define CL_DEVICE_PARTITION_STYLE_EXT 0x4058 |
||||
|
||||
/* error codes */ |
||||
#define CL_DEVICE_PARTITION_FAILED_EXT -1057 |
||||
#define CL_INVALID_PARTITION_COUNT_EXT -1058 |
||||
#define CL_INVALID_PARTITION_NAME_EXT -1059 |
||||
|
||||
/* CL_AFFINITY_DOMAINs */ |
||||
#define CL_AFFINITY_DOMAIN_L1_CACHE_EXT 0x1 |
||||
#define CL_AFFINITY_DOMAIN_L2_CACHE_EXT 0x2 |
||||
#define CL_AFFINITY_DOMAIN_L3_CACHE_EXT 0x3 |
||||
#define CL_AFFINITY_DOMAIN_L4_CACHE_EXT 0x4 |
||||
#define CL_AFFINITY_DOMAIN_NUMA_EXT 0x10 |
||||
#define CL_AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT 0x100 |
||||
|
||||
/* cl_device_partition_property_ext list terminators */ |
||||
#define CL_PROPERTIES_LIST_END_EXT ((cl_device_partition_property_ext) 0) |
||||
#define CL_PARTITION_BY_COUNTS_LIST_END_EXT ((cl_device_partition_property_ext) 0) |
||||
#define CL_PARTITION_BY_NAMES_LIST_END_EXT ((cl_device_partition_property_ext) 0 - 1) |
||||
|
||||
/*********************************
|
||||
* cl_qcom_ext_host_ptr extension |
||||
*********************************/ |
||||
|
||||
#define CL_MEM_EXT_HOST_PTR_QCOM (1 << 29) |
||||
|
||||
#define CL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOM 0x40A0 |
||||
#define CL_DEVICE_PAGE_SIZE_QCOM 0x40A1 |
||||
#define CL_IMAGE_ROW_ALIGNMENT_QCOM 0x40A2 |
||||
#define CL_IMAGE_SLICE_ALIGNMENT_QCOM 0x40A3 |
||||
#define CL_MEM_HOST_UNCACHED_QCOM 0x40A4 |
||||
#define CL_MEM_HOST_WRITEBACK_QCOM 0x40A5 |
||||
#define CL_MEM_HOST_WRITETHROUGH_QCOM 0x40A6 |
||||
#define CL_MEM_HOST_WRITE_COMBINING_QCOM 0x40A7 |
||||
|
||||
typedef cl_uint cl_image_pitch_info_qcom; |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clGetDeviceImageInfoQCOM(cl_device_id device, |
||||
size_t image_width, |
||||
size_t image_height, |
||||
const cl_image_format *image_format, |
||||
cl_image_pitch_info_qcom param_name, |
||||
size_t param_value_size, |
||||
void *param_value, |
||||
size_t *param_value_size_ret); |
||||
|
||||
typedef struct _cl_mem_ext_host_ptr |
||||
{ |
||||
// Type of external memory allocation.
|
||||
// Legal values will be defined in layered extensions.
|
||||
cl_uint allocation_type; |
||||
|
||||
// Host cache policy for this external memory allocation.
|
||||
cl_uint host_cache_policy; |
||||
|
||||
} cl_mem_ext_host_ptr; |
||||
|
||||
/*********************************
|
||||
* cl_qcom_ion_host_ptr extension |
||||
*********************************/ |
||||
|
||||
#define CL_MEM_ION_HOST_PTR_QCOM 0x40A8 |
||||
|
||||
typedef struct _cl_mem_ion_host_ptr |
||||
{ |
||||
// Type of external memory allocation.
|
||||
// Must be CL_MEM_ION_HOST_PTR_QCOM for ION allocations.
|
||||
cl_mem_ext_host_ptr ext_host_ptr; |
||||
|
||||
// ION file descriptor
|
||||
int ion_filedesc; |
||||
|
||||
// Host pointer to the ION allocated memory
|
||||
void* ion_hostptr; |
||||
|
||||
} cl_mem_ion_host_ptr; |
||||
|
||||
#endif /* CL_VERSION_1_1 */ |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
|
||||
#endif /* __CL_EXT_H */ |
@ -0,0 +1,162 @@ |
||||
/**********************************************************************************
|
||||
* Copyright (c) 2008 - 2012 The Khronos Group Inc. |
||||
* |
||||
* Permission is hereby granted, free of charge, to any person obtaining a |
||||
* copy of this software and/or associated documentation files (the |
||||
* "Materials"), to deal in the Materials without restriction, including |
||||
* without limitation the rights to use, copy, modify, merge, publish, |
||||
* distribute, sublicense, and/or sell copies of the Materials, and to |
||||
* permit persons to whom the Materials are furnished to do so, subject to |
||||
* the following conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be included |
||||
* in all copies or substantial portions of the Materials. |
||||
* |
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
||||
**********************************************************************************/ |
||||
|
||||
#ifndef __OPENCL_CL_GL_H |
||||
#define __OPENCL_CL_GL_H |
||||
|
||||
#ifdef __APPLE__ |
||||
#include <OpenCL/cl.h> |
||||
#else |
||||
#include <CL/cl.h> |
||||
#endif |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
typedef cl_uint cl_gl_object_type; |
||||
typedef cl_uint cl_gl_texture_info; |
||||
typedef cl_uint cl_gl_platform_info; |
||||
typedef struct __GLsync *cl_GLsync; |
||||
|
||||
/* cl_gl_object_type = 0x2000 - 0x200F enum values are currently taken */ |
||||
#define CL_GL_OBJECT_BUFFER 0x2000 |
||||
#define CL_GL_OBJECT_TEXTURE2D 0x2001 |
||||
#define CL_GL_OBJECT_TEXTURE3D 0x2002 |
||||
#define CL_GL_OBJECT_RENDERBUFFER 0x2003 |
||||
#define CL_GL_OBJECT_TEXTURE2D_ARRAY 0x200E |
||||
#define CL_GL_OBJECT_TEXTURE1D 0x200F |
||||
#define CL_GL_OBJECT_TEXTURE1D_ARRAY 0x2010 |
||||
#define CL_GL_OBJECT_TEXTURE_BUFFER 0x2011 |
||||
|
||||
/* cl_gl_texture_info */ |
||||
#define CL_GL_TEXTURE_TARGET 0x2004 |
||||
#define CL_GL_MIPMAP_LEVEL 0x2005 |
||||
#define CL_GL_NUM_SAMPLES 0x2012 |
||||
|
||||
|
||||
extern CL_API_ENTRY cl_mem CL_API_CALL |
||||
clCreateFromGLBuffer(cl_context /* context */, |
||||
cl_mem_flags /* flags */, |
||||
cl_GLuint /* bufobj */, |
||||
int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
extern CL_API_ENTRY cl_mem CL_API_CALL |
||||
clCreateFromGLTexture(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; |
||||
|
||||
extern CL_API_ENTRY cl_mem CL_API_CALL |
||||
clCreateFromGLRenderbuffer(cl_context /* context */, |
||||
cl_mem_flags /* flags */, |
||||
cl_GLuint /* renderbuffer */, |
||||
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clGetGLObjectInfo(cl_mem /* memobj */, |
||||
cl_gl_object_type * /* gl_object_type */, |
||||
cl_GLuint * /* gl_object_name */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clGetGLTextureInfo(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; |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clEnqueueAcquireGLObjects(cl_command_queue /* command_queue */, |
||||
cl_uint /* num_objects */, |
||||
const cl_mem * /* mem_objects */, |
||||
cl_uint /* num_events_in_wait_list */, |
||||
const cl_event * /* event_wait_list */, |
||||
cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clEnqueueReleaseGLObjects(cl_command_queue /* command_queue */, |
||||
cl_uint /* num_objects */, |
||||
const cl_mem * /* mem_objects */, |
||||
cl_uint /* num_events_in_wait_list */, |
||||
const cl_event * /* event_wait_list */, |
||||
cl_event * /* event */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
|
||||
// Deprecated OpenCL 1.1 APIs
|
||||
extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL |
||||
clCreateFromGLTexture2D(cl_context /* context */, |
||||
cl_mem_flags /* flags */, |
||||
cl_GLenum /* target */, |
||||
cl_GLint /* miplevel */, |
||||
cl_GLuint /* texture */, |
||||
cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; |
||||
|
||||
extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL |
||||
clCreateFromGLTexture3D(cl_context /* context */, |
||||
cl_mem_flags /* flags */, |
||||
cl_GLenum /* target */, |
||||
cl_GLint /* miplevel */, |
||||
cl_GLuint /* texture */, |
||||
cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; |
||||
|
||||
/* cl_khr_gl_sharing extension */ |
||||
|
||||
#define cl_khr_gl_sharing 1 |
||||
|
||||
typedef cl_uint cl_gl_context_info; |
||||
|
||||
/* Additional Error Codes */ |
||||
#define CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR -1000 |
||||
|
||||
/* cl_gl_context_info */ |
||||
#define CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR 0x2006 |
||||
#define CL_DEVICES_FOR_GL_CONTEXT_KHR 0x2007 |
||||
|
||||
/* Additional cl_context_properties */ |
||||
#define CL_GL_CONTEXT_KHR 0x2008 |
||||
#define CL_EGL_DISPLAY_KHR 0x2009 |
||||
#define CL_GLX_DISPLAY_KHR 0x200A |
||||
#define CL_WGL_HDC_KHR 0x200B |
||||
#define CL_CGL_SHAREGROUP_KHR 0x200C |
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL |
||||
clGetGLContextInfoKHR(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 */) CL_API_SUFFIX__VERSION_1_0; |
||||
|
||||
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetGLContextInfoKHR_fn)( |
||||
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); |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif /* __OPENCL_CL_GL_H */ |
@ -0,0 +1,69 @@ |
||||
/**********************************************************************************
|
||||
* Copyright (c) 2008-2012 The Khronos Group Inc. |
||||
* |
||||
* Permission is hereby granted, free of charge, to any person obtaining a |
||||
* copy of this software and/or associated documentation files (the |
||||
* "Materials"), to deal in the Materials without restriction, including |
||||
* without limitation the rights to use, copy, modify, merge, publish, |
||||
* distribute, sublicense, and/or sell copies of the Materials, and to |
||||
* permit persons to whom the Materials are furnished to do so, subject to |
||||
* the following conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be included |
||||
* in all copies or substantial portions of the Materials. |
||||
* |
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
||||
**********************************************************************************/ |
||||
|
||||
/* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ |
||||
|
||||
/* cl_gl_ext.h contains vendor (non-KHR) OpenCL extensions which have */ |
||||
/* OpenGL dependencies. */ |
||||
|
||||
#ifndef __OPENCL_CL_GL_EXT_H |
||||
#define __OPENCL_CL_GL_EXT_H |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#ifdef __APPLE__ |
||||
#include <OpenCL/cl_gl.h> |
||||
#else |
||||
#include <CL/cl_gl.h> |
||||
#endif |
||||
|
||||
/*
|
||||
* For each extension, follow this template |
||||
* cl_VEN_extname extension */ |
||||
/* #define cl_VEN_extname 1
|
||||
* ... define new types, if any |
||||
* ... define new tokens, if any |
||||
* ... define new APIs, if any |
||||
* |
||||
* If you need GLtypes here, mirror them with a cl_GLtype, rather than including a GL header |
||||
* This allows us to avoid having to decide whether to include GL headers or GLES here. |
||||
*/ |
||||
|
||||
/*
|
||||
* cl_khr_gl_event extension |
||||
* See section 9.9 in the OpenCL 1.1 spec for more information |
||||
*/ |
||||
#define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D |
||||
|
||||
extern CL_API_ENTRY cl_event CL_API_CALL |
||||
clCreateEventFromGLsyncKHR(cl_context /* context */, |
||||
cl_GLsync /* cl_GLsync */, |
||||
cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1; |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif /* __OPENCL_CL_GL_EXT_H */ |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,54 @@ |
||||
/*******************************************************************************
|
||||
* Copyright (c) 2008-2012 The Khronos Group Inc. |
||||
* |
||||
* Permission is hereby granted, free of charge, to any person obtaining a |
||||
* copy of this software and/or associated documentation files (the |
||||
* "Materials"), to deal in the Materials without restriction, including |
||||
* without limitation the rights to use, copy, modify, merge, publish, |
||||
* distribute, sublicense, and/or sell copies of the Materials, and to |
||||
* permit persons to whom the Materials are furnished to do so, subject to |
||||
* the following conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be included |
||||
* in all copies or substantial portions of the Materials. |
||||
* |
||||
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||||
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
||||
******************************************************************************/ |
||||
|
||||
/* $Revision: 11708 $ on $Date: 2010-06-13 23:36:24 -0700 (Sun, 13 Jun 2010) $ */ |
||||
|
||||
#ifndef __OPENCL_H |
||||
#define __OPENCL_H |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#ifdef __APPLE__ |
||||
|
||||
#include <OpenCL/cl.h> |
||||
#include <OpenCL/cl_gl.h> |
||||
#include <OpenCL/cl_gl_ext.h> |
||||
#include <OpenCL/cl_ext.h> |
||||
|
||||
#else |
||||
|
||||
#include <CL/cl.h> |
||||
#include <CL/cl_gl.h> |
||||
#include <CL/cl_gl_ext.h> |
||||
#include <CL/cl_ext.h> |
||||
|
||||
#endif |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif /* __OPENCL_H */ |
||||
|
@ -1,14 +0,0 @@ |
||||
#if defined __APPLE__ |
||||
#include <OpenCL/cl.h> |
||||
#else |
||||
#include <CL/cl.h> |
||||
#endif |
||||
|
||||
int main(int argc, char** argv) |
||||
{ |
||||
#ifdef CL_VERSION_1_1 |
||||
#else |
||||
#error OpenCL 1.1 not found |
||||
#endif |
||||
return 0; |
||||
} |
@ -1,333 +0,0 @@ |
||||
//
|
||||
// AUTOGENERATED, DO NOT EDIT
|
||||
//
|
||||
#ifndef __OPENCV_OCL_CL_RUNTIME_OPENCL_HPP__ |
||||
#define __OPENCV_OCL_CL_RUNTIME_OPENCL_HPP__ |
||||
|
||||
#ifdef HAVE_OPENCL |
||||
|
||||
#if defined __APPLE__ && !defined(IOS) |
||||
#include <OpenCL/cl.h> |
||||
#else |
||||
|
||||
// generated by parser_cl.py
|
||||
#define clGetPlatformIDs clGetPlatformIDs_ |
||||
#define clGetPlatformInfo clGetPlatformInfo_ |
||||
#define clGetDeviceIDs clGetDeviceIDs_ |
||||
#define clGetDeviceInfo clGetDeviceInfo_ |
||||
#define clCreateContext clCreateContext_ |
||||
#define clCreateContextFromType clCreateContextFromType_ |
||||
#define clRetainContext clRetainContext_ |
||||
#define clReleaseContext clReleaseContext_ |
||||
#define clGetContextInfo clGetContextInfo_ |
||||
#define clCreateCommandQueue clCreateCommandQueue_ |
||||
#define clRetainCommandQueue clRetainCommandQueue_ |
||||
#define clReleaseCommandQueue clReleaseCommandQueue_ |
||||
#define clGetCommandQueueInfo clGetCommandQueueInfo_ |
||||
#define clSetCommandQueueProperty clSetCommandQueueProperty_ |
||||
#define clCreateBuffer clCreateBuffer_ |
||||
#define clCreateSubBuffer clCreateSubBuffer_ |
||||
#define clCreateImage2D clCreateImage2D_ |
||||
#define clCreateImage3D clCreateImage3D_ |
||||
#define clRetainMemObject clRetainMemObject_ |
||||
#define clReleaseMemObject clReleaseMemObject_ |
||||
#define clGetSupportedImageFormats clGetSupportedImageFormats_ |
||||
#define clGetMemObjectInfo clGetMemObjectInfo_ |
||||
#define clGetImageInfo clGetImageInfo_ |
||||
#define clSetMemObjectDestructorCallback clSetMemObjectDestructorCallback_ |
||||
#define clCreateSampler clCreateSampler_ |
||||
#define clRetainSampler clRetainSampler_ |
||||
#define clReleaseSampler clReleaseSampler_ |
||||
#define clGetSamplerInfo clGetSamplerInfo_ |
||||
#define clCreateProgramWithSource clCreateProgramWithSource_ |
||||
#define clCreateProgramWithBinary clCreateProgramWithBinary_ |
||||
#define clRetainProgram clRetainProgram_ |
||||
#define clReleaseProgram clReleaseProgram_ |
||||
#define clBuildProgram clBuildProgram_ |
||||
#define clUnloadCompiler clUnloadCompiler_ |
||||
#define clGetProgramInfo clGetProgramInfo_ |
||||
#define clGetProgramBuildInfo clGetProgramBuildInfo_ |
||||
#define clCreateKernel clCreateKernel_ |
||||
#define clCreateKernelsInProgram clCreateKernelsInProgram_ |
||||
#define clRetainKernel clRetainKernel_ |
||||
#define clReleaseKernel clReleaseKernel_ |
||||
#define clSetKernelArg clSetKernelArg_ |
||||
#define clGetKernelInfo clGetKernelInfo_ |
||||
#define clGetKernelWorkGroupInfo clGetKernelWorkGroupInfo_ |
||||
#define clWaitForEvents clWaitForEvents_ |
||||
#define clGetEventInfo clGetEventInfo_ |
||||
#define clCreateUserEvent clCreateUserEvent_ |
||||
#define clRetainEvent clRetainEvent_ |
||||
#define clReleaseEvent clReleaseEvent_ |
||||
#define clSetUserEventStatus clSetUserEventStatus_ |
||||
#define clSetEventCallback clSetEventCallback_ |
||||
#define clGetEventProfilingInfo clGetEventProfilingInfo_ |
||||
#define clFlush clFlush_ |
||||
#define clFinish clFinish_ |
||||
#define clEnqueueReadBuffer clEnqueueReadBuffer_ |
||||
#define clEnqueueReadBufferRect clEnqueueReadBufferRect_ |
||||
#define clEnqueueWriteBuffer clEnqueueWriteBuffer_ |
||||
#define clEnqueueWriteBufferRect clEnqueueWriteBufferRect_ |
||||
#define clEnqueueCopyBuffer clEnqueueCopyBuffer_ |
||||
#define clEnqueueCopyBufferRect clEnqueueCopyBufferRect_ |
||||
#define clEnqueueReadImage clEnqueueReadImage_ |
||||
#define clEnqueueWriteImage clEnqueueWriteImage_ |
||||
#define clEnqueueCopyImage clEnqueueCopyImage_ |
||||
#define clEnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer_ |
||||
#define clEnqueueCopyBufferToImage clEnqueueCopyBufferToImage_ |
||||
#define clEnqueueMapBuffer clEnqueueMapBuffer_ |
||||
#define clEnqueueMapImage clEnqueueMapImage_ |
||||
#define clEnqueueUnmapMemObject clEnqueueUnmapMemObject_ |
||||
#define clEnqueueNDRangeKernel clEnqueueNDRangeKernel_ |
||||
#define clEnqueueTask clEnqueueTask_ |
||||
#define clEnqueueNativeKernel clEnqueueNativeKernel_ |
||||
#define clEnqueueMarker clEnqueueMarker_ |
||||
#define clEnqueueWaitForEvents clEnqueueWaitForEvents_ |
||||
#define clEnqueueBarrier clEnqueueBarrier_ |
||||
#define clGetExtensionFunctionAddress clGetExtensionFunctionAddress_ |
||||
|
||||
#if defined __APPLE__ |
||||
#include <OpenCL/cl.h> |
||||
#else |
||||
#include <CL/cl.h> |
||||
#endif |
||||
|
||||
// generated by parser_cl.py
|
||||
#undef clGetPlatformIDs |
||||
#define clGetPlatformIDs clGetPlatformIDs_pfn |
||||
#undef clGetPlatformInfo |
||||
#define clGetPlatformInfo clGetPlatformInfo_pfn |
||||
#undef clGetDeviceIDs |
||||
#define clGetDeviceIDs clGetDeviceIDs_pfn |
||||
#undef clGetDeviceInfo |
||||
#define clGetDeviceInfo clGetDeviceInfo_pfn |
||||
#undef clCreateContext |
||||
#define clCreateContext clCreateContext_pfn |
||||
#undef clCreateContextFromType |
||||
#define clCreateContextFromType clCreateContextFromType_pfn |
||||
#undef clRetainContext |
||||
#define clRetainContext clRetainContext_pfn |
||||
#undef clReleaseContext |
||||
#define clReleaseContext clReleaseContext_pfn |
||||
#undef clGetContextInfo |
||||
#define clGetContextInfo clGetContextInfo_pfn |
||||
#undef clCreateCommandQueue |
||||
#define clCreateCommandQueue clCreateCommandQueue_pfn |
||||
#undef clRetainCommandQueue |
||||
#define clRetainCommandQueue clRetainCommandQueue_pfn |
||||
#undef clReleaseCommandQueue |
||||
#define clReleaseCommandQueue clReleaseCommandQueue_pfn |
||||
#undef clGetCommandQueueInfo |
||||
#define clGetCommandQueueInfo clGetCommandQueueInfo_pfn |
||||
#undef clSetCommandQueueProperty |
||||
#define clSetCommandQueueProperty clSetCommandQueueProperty_pfn |
||||
#undef clCreateBuffer |
||||
#define clCreateBuffer clCreateBuffer_pfn |
||||
#undef clCreateSubBuffer |
||||
#define clCreateSubBuffer clCreateSubBuffer_pfn |
||||
#undef clCreateImage2D |
||||
#define clCreateImage2D clCreateImage2D_pfn |
||||
#undef clCreateImage3D |
||||
#define clCreateImage3D clCreateImage3D_pfn |
||||
#undef clRetainMemObject |
||||
#define clRetainMemObject clRetainMemObject_pfn |
||||
#undef clReleaseMemObject |
||||
#define clReleaseMemObject clReleaseMemObject_pfn |
||||
#undef clGetSupportedImageFormats |
||||
#define clGetSupportedImageFormats clGetSupportedImageFormats_pfn |
||||
#undef clGetMemObjectInfo |
||||
#define clGetMemObjectInfo clGetMemObjectInfo_pfn |
||||
#undef clGetImageInfo |
||||
#define clGetImageInfo clGetImageInfo_pfn |
||||
#undef clSetMemObjectDestructorCallback |
||||
#define clSetMemObjectDestructorCallback clSetMemObjectDestructorCallback_pfn |
||||
#undef clCreateSampler |
||||
#define clCreateSampler clCreateSampler_pfn |
||||
#undef clRetainSampler |
||||
#define clRetainSampler clRetainSampler_pfn |
||||
#undef clReleaseSampler |
||||
#define clReleaseSampler clReleaseSampler_pfn |
||||
#undef clGetSamplerInfo |
||||
#define clGetSamplerInfo clGetSamplerInfo_pfn |
||||
#undef clCreateProgramWithSource |
||||
#define clCreateProgramWithSource clCreateProgramWithSource_pfn |
||||
#undef clCreateProgramWithBinary |
||||
#define clCreateProgramWithBinary clCreateProgramWithBinary_pfn |
||||
#undef clRetainProgram |
||||
#define clRetainProgram clRetainProgram_pfn |
||||
#undef clReleaseProgram |
||||
#define clReleaseProgram clReleaseProgram_pfn |
||||
#undef clBuildProgram |
||||
#define clBuildProgram clBuildProgram_pfn |
||||
#undef clUnloadCompiler |
||||
#define clUnloadCompiler clUnloadCompiler_pfn |
||||
#undef clGetProgramInfo |
||||
#define clGetProgramInfo clGetProgramInfo_pfn |
||||
#undef clGetProgramBuildInfo |
||||
#define clGetProgramBuildInfo clGetProgramBuildInfo_pfn |
||||
#undef clCreateKernel |
||||
#define clCreateKernel clCreateKernel_pfn |
||||
#undef clCreateKernelsInProgram |
||||
#define clCreateKernelsInProgram clCreateKernelsInProgram_pfn |
||||
#undef clRetainKernel |
||||
#define clRetainKernel clRetainKernel_pfn |
||||
#undef clReleaseKernel |
||||
#define clReleaseKernel clReleaseKernel_pfn |
||||
#undef clSetKernelArg |
||||
#define clSetKernelArg clSetKernelArg_pfn |
||||
#undef clGetKernelInfo |
||||
#define clGetKernelInfo clGetKernelInfo_pfn |
||||
#undef clGetKernelWorkGroupInfo |
||||
#define clGetKernelWorkGroupInfo clGetKernelWorkGroupInfo_pfn |
||||
#undef clWaitForEvents |
||||
#define clWaitForEvents clWaitForEvents_pfn |
||||
#undef clGetEventInfo |
||||
#define clGetEventInfo clGetEventInfo_pfn |
||||
#undef clCreateUserEvent |
||||
#define clCreateUserEvent clCreateUserEvent_pfn |
||||
#undef clRetainEvent |
||||
#define clRetainEvent clRetainEvent_pfn |
||||
#undef clReleaseEvent |
||||
#define clReleaseEvent clReleaseEvent_pfn |
||||
#undef clSetUserEventStatus |
||||
#define clSetUserEventStatus clSetUserEventStatus_pfn |
||||
#undef clSetEventCallback |
||||
#define clSetEventCallback clSetEventCallback_pfn |
||||
#undef clGetEventProfilingInfo |
||||
#define clGetEventProfilingInfo clGetEventProfilingInfo_pfn |
||||
#undef clFlush |
||||
#define clFlush clFlush_pfn |
||||
#undef clFinish |
||||
#define clFinish clFinish_pfn |
||||
#undef clEnqueueReadBuffer |
||||
#define clEnqueueReadBuffer clEnqueueReadBuffer_pfn |
||||
#undef clEnqueueReadBufferRect |
||||
#define clEnqueueReadBufferRect clEnqueueReadBufferRect_pfn |
||||
#undef clEnqueueWriteBuffer |
||||
#define clEnqueueWriteBuffer clEnqueueWriteBuffer_pfn |
||||
#undef clEnqueueWriteBufferRect |
||||
#define clEnqueueWriteBufferRect clEnqueueWriteBufferRect_pfn |
||||
#undef clEnqueueCopyBuffer |
||||
#define clEnqueueCopyBuffer clEnqueueCopyBuffer_pfn |
||||
#undef clEnqueueCopyBufferRect |
||||
#define clEnqueueCopyBufferRect clEnqueueCopyBufferRect_pfn |
||||
#undef clEnqueueReadImage |
||||
#define clEnqueueReadImage clEnqueueReadImage_pfn |
||||
#undef clEnqueueWriteImage |
||||
#define clEnqueueWriteImage clEnqueueWriteImage_pfn |
||||
#undef clEnqueueCopyImage |
||||
#define clEnqueueCopyImage clEnqueueCopyImage_pfn |
||||
#undef clEnqueueCopyImageToBuffer |
||||
#define clEnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer_pfn |
||||
#undef clEnqueueCopyBufferToImage |
||||
#define clEnqueueCopyBufferToImage clEnqueueCopyBufferToImage_pfn |
||||
#undef clEnqueueMapBuffer |
||||
#define clEnqueueMapBuffer clEnqueueMapBuffer_pfn |
||||
#undef clEnqueueMapImage |
||||
#define clEnqueueMapImage clEnqueueMapImage_pfn |
||||
#undef clEnqueueUnmapMemObject |
||||
#define clEnqueueUnmapMemObject clEnqueueUnmapMemObject_pfn |
||||
#undef clEnqueueNDRangeKernel |
||||
#define clEnqueueNDRangeKernel clEnqueueNDRangeKernel_pfn |
||||
#undef clEnqueueTask |
||||
#define clEnqueueTask clEnqueueTask_pfn |
||||
#undef clEnqueueNativeKernel |
||||
#define clEnqueueNativeKernel clEnqueueNativeKernel_pfn |
||||
#undef clEnqueueMarker |
||||
#define clEnqueueMarker clEnqueueMarker_pfn |
||||
#undef clEnqueueWaitForEvents |
||||
#define clEnqueueWaitForEvents clEnqueueWaitForEvents_pfn |
||||
#undef clEnqueueBarrier |
||||
#define clEnqueueBarrier clEnqueueBarrier_pfn |
||||
#undef clGetExtensionFunctionAddress |
||||
#define clGetExtensionFunctionAddress clGetExtensionFunctionAddress_pfn |
||||
|
||||
#ifndef CL_RUNTIME_EXPORT |
||||
#if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_OCL_SHARED)) && (defined WIN32 || defined _WIN32 || defined WINCE) |
||||
#define CL_RUNTIME_EXPORT __declspec(dllimport) |
||||
#else |
||||
#define CL_RUNTIME_EXPORT |
||||
#endif |
||||
#endif |
||||
|
||||
// generated by parser_cl.py
|
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetPlatformIDs)(cl_uint, cl_platform_id*, cl_uint*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetPlatformInfo)(cl_platform_id, cl_platform_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetDeviceIDs)(cl_platform_id, cl_device_type, cl_uint, cl_device_id*, cl_uint*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetDeviceInfo)(cl_device_id, cl_device_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_context (CL_API_CALL*clCreateContext)(const cl_context_properties*, cl_uint, const cl_device_id*, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_context (CL_API_CALL*clCreateContextFromType)(const cl_context_properties*, cl_device_type, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clRetainContext)(cl_context); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clReleaseContext)(cl_context); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetContextInfo)(cl_context, cl_context_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_command_queue (CL_API_CALL*clCreateCommandQueue)(cl_context, cl_device_id, cl_command_queue_properties, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clRetainCommandQueue)(cl_command_queue); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clReleaseCommandQueue)(cl_command_queue); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetCommandQueueInfo)(cl_command_queue, cl_command_queue_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clSetCommandQueueProperty)(cl_command_queue, cl_command_queue_properties, cl_bool, cl_command_queue_properties*); |
||||
extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateBuffer)(cl_context, cl_mem_flags, size_t, void*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateSubBuffer)(cl_mem, cl_mem_flags, cl_buffer_create_type, const void*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateImage2D)(cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, void*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateImage3D)(cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, size_t, size_t, void*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clRetainMemObject)(cl_mem); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clReleaseMemObject)(cl_mem); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetSupportedImageFormats)(cl_context, cl_mem_flags, cl_mem_object_type, cl_uint, cl_image_format*, cl_uint*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetMemObjectInfo)(cl_mem, cl_mem_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetImageInfo)(cl_mem, cl_image_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clSetMemObjectDestructorCallback)(cl_mem, void (CL_CALLBACK*) (cl_mem, void*), void*); |
||||
extern CL_RUNTIME_EXPORT cl_sampler (CL_API_CALL*clCreateSampler)(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clRetainSampler)(cl_sampler); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clReleaseSampler)(cl_sampler); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetSamplerInfo)(cl_sampler, cl_sampler_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_program (CL_API_CALL*clCreateProgramWithSource)(cl_context, cl_uint, const char**, const size_t*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_program (CL_API_CALL*clCreateProgramWithBinary)(cl_context, cl_uint, const cl_device_id*, const size_t*, const unsigned char**, cl_int*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clRetainProgram)(cl_program); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clReleaseProgram)(cl_program); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clBuildProgram)(cl_program, cl_uint, const cl_device_id*, const char*, void (CL_CALLBACK*) (cl_program, void*), void*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clUnloadCompiler)(); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetProgramInfo)(cl_program, cl_program_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetProgramBuildInfo)(cl_program, cl_device_id, cl_program_build_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_kernel (CL_API_CALL*clCreateKernel)(cl_program, const char*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clCreateKernelsInProgram)(cl_program, cl_uint, cl_kernel*, cl_uint*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clRetainKernel)(cl_kernel); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clReleaseKernel)(cl_kernel); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clSetKernelArg)(cl_kernel, cl_uint, size_t, const void*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetKernelInfo)(cl_kernel, cl_kernel_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetKernelWorkGroupInfo)(cl_kernel, cl_device_id, cl_kernel_work_group_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clWaitForEvents)(cl_uint, const cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetEventInfo)(cl_event, cl_event_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_event (CL_API_CALL*clCreateUserEvent)(cl_context, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clRetainEvent)(cl_event); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clReleaseEvent)(cl_event); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clSetUserEventStatus)(cl_event, cl_int); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clSetEventCallback)(cl_event, cl_int, void (CL_CALLBACK*) (cl_event, cl_int, void*), void*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetEventProfilingInfo)(cl_event, cl_profiling_info, size_t, void*, size_t*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clFlush)(cl_command_queue); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clFinish)(cl_command_queue); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueReadBuffer)(cl_command_queue, cl_mem, cl_bool, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueReadBufferRect)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueWriteBuffer)(cl_command_queue, cl_mem, cl_bool, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueWriteBufferRect)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueCopyBuffer)(cl_command_queue, cl_mem, cl_mem, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueCopyBufferRect)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueReadImage)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueWriteImage)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueCopyImage)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueCopyImageToBuffer)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, size_t, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueCopyBufferToImage)(cl_command_queue, cl_mem, cl_mem, size_t, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT void* (CL_API_CALL*clEnqueueMapBuffer)(cl_command_queue, cl_mem, cl_bool, cl_map_flags, size_t, size_t, cl_uint, const cl_event*, cl_event*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT void* (CL_API_CALL*clEnqueueMapImage)(cl_command_queue, cl_mem, cl_bool, cl_map_flags, const size_t*, const size_t*, size_t*, size_t*, cl_uint, const cl_event*, cl_event*, cl_int*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueUnmapMemObject)(cl_command_queue, cl_mem, void*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueNDRangeKernel)(cl_command_queue, cl_kernel, cl_uint, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueTask)(cl_command_queue, cl_kernel, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueNativeKernel)(cl_command_queue, void (CL_CALLBACK* user_func) (void*), void*, size_t, cl_uint, const cl_mem*, const void**, cl_uint, const cl_event*, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueMarker)(cl_command_queue, cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueWaitForEvents)(cl_command_queue, cl_uint, const cl_event*); |
||||
extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueBarrier)(cl_command_queue); |
||||
extern CL_RUNTIME_EXPORT void* (CL_API_CALL*clGetExtensionFunctionAddress)(const char*); |
||||
|
||||
#endif |
||||
|
||||
#endif |
||||
|
||||
#endif // __OPENCV_OCL_CL_RUNTIME_OPENCL_HPP__
|
@ -1,231 +0,0 @@ |
||||
//
|
||||
// AUTOGENERATED, DO NOT EDIT
|
||||
//
|
||||
#ifndef __OPENCV_OCL_CL_RUNTIME_OPENCL_WRAPPERS_HPP__ |
||||
#define __OPENCV_OCL_CL_RUNTIME_OPENCL_WRAPPERS_HPP__ |
||||
|
||||
// generated by parser_cl.py
|
||||
#undef clGetPlatformIDs |
||||
#define clGetPlatformIDs clGetPlatformIDs_fn |
||||
inline cl_int clGetPlatformIDs(cl_uint p0, cl_platform_id* p1, cl_uint* p2) { return clGetPlatformIDs_pfn(p0, p1, p2); } |
||||
#undef clGetPlatformInfo |
||||
#define clGetPlatformInfo clGetPlatformInfo_fn |
||||
inline cl_int clGetPlatformInfo(cl_platform_id p0, cl_platform_info p1, size_t p2, void* p3, size_t* p4) { return clGetPlatformInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clGetDeviceIDs |
||||
#define clGetDeviceIDs clGetDeviceIDs_fn |
||||
inline cl_int clGetDeviceIDs(cl_platform_id p0, cl_device_type p1, cl_uint p2, cl_device_id* p3, cl_uint* p4) { return clGetDeviceIDs_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clGetDeviceInfo |
||||
#define clGetDeviceInfo clGetDeviceInfo_fn |
||||
inline cl_int clGetDeviceInfo(cl_device_id p0, cl_device_info p1, size_t p2, void* p3, size_t* p4) { return clGetDeviceInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clCreateContext |
||||
#define clCreateContext clCreateContext_fn |
||||
inline cl_context clCreateContext(const cl_context_properties* p0, cl_uint p1, const cl_device_id* p2, void (CL_CALLBACK*p3) (const char*, const void*, size_t, void*), void* p4, cl_int* p5) { return clCreateContext_pfn(p0, p1, p2, p3, p4, p5); } |
||||
#undef clCreateContextFromType |
||||
#define clCreateContextFromType clCreateContextFromType_fn |
||||
inline cl_context clCreateContextFromType(const cl_context_properties* p0, cl_device_type p1, void (CL_CALLBACK*p2) (const char*, const void*, size_t, void*), void* p3, cl_int* p4) { return clCreateContextFromType_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clRetainContext |
||||
#define clRetainContext clRetainContext_fn |
||||
inline cl_int clRetainContext(cl_context p0) { return clRetainContext_pfn(p0); } |
||||
#undef clReleaseContext |
||||
#define clReleaseContext clReleaseContext_fn |
||||
inline cl_int clReleaseContext(cl_context p0) { return clReleaseContext_pfn(p0); } |
||||
#undef clGetContextInfo |
||||
#define clGetContextInfo clGetContextInfo_fn |
||||
inline cl_int clGetContextInfo(cl_context p0, cl_context_info p1, size_t p2, void* p3, size_t* p4) { return clGetContextInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clCreateCommandQueue |
||||
#define clCreateCommandQueue clCreateCommandQueue_fn |
||||
inline cl_command_queue clCreateCommandQueue(cl_context p0, cl_device_id p1, cl_command_queue_properties p2, cl_int* p3) { return clCreateCommandQueue_pfn(p0, p1, p2, p3); } |
||||
#undef clRetainCommandQueue |
||||
#define clRetainCommandQueue clRetainCommandQueue_fn |
||||
inline cl_int clRetainCommandQueue(cl_command_queue p0) { return clRetainCommandQueue_pfn(p0); } |
||||
#undef clReleaseCommandQueue |
||||
#define clReleaseCommandQueue clReleaseCommandQueue_fn |
||||
inline cl_int clReleaseCommandQueue(cl_command_queue p0) { return clReleaseCommandQueue_pfn(p0); } |
||||
#undef clGetCommandQueueInfo |
||||
#define clGetCommandQueueInfo clGetCommandQueueInfo_fn |
||||
inline cl_int clGetCommandQueueInfo(cl_command_queue p0, cl_command_queue_info p1, size_t p2, void* p3, size_t* p4) { return clGetCommandQueueInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clSetCommandQueueProperty |
||||
#define clSetCommandQueueProperty clSetCommandQueueProperty_fn |
||||
inline cl_int clSetCommandQueueProperty(cl_command_queue p0, cl_command_queue_properties p1, cl_bool p2, cl_command_queue_properties* p3) { return clSetCommandQueueProperty_pfn(p0, p1, p2, p3); } |
||||
#undef clCreateBuffer |
||||
#define clCreateBuffer clCreateBuffer_fn |
||||
inline cl_mem clCreateBuffer(cl_context p0, cl_mem_flags p1, size_t p2, void* p3, cl_int* p4) { return clCreateBuffer_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clCreateSubBuffer |
||||
#define clCreateSubBuffer clCreateSubBuffer_fn |
||||
inline cl_mem clCreateSubBuffer(cl_mem p0, cl_mem_flags p1, cl_buffer_create_type p2, const void* p3, cl_int* p4) { return clCreateSubBuffer_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clCreateImage2D |
||||
#define clCreateImage2D clCreateImage2D_fn |
||||
inline cl_mem clCreateImage2D(cl_context p0, cl_mem_flags p1, const cl_image_format* p2, size_t p3, size_t p4, size_t p5, void* p6, cl_int* p7) { return clCreateImage2D_pfn(p0, p1, p2, p3, p4, p5, p6, p7); } |
||||
#undef clCreateImage3D |
||||
#define clCreateImage3D clCreateImage3D_fn |
||||
inline cl_mem clCreateImage3D(cl_context p0, cl_mem_flags p1, const cl_image_format* p2, size_t p3, size_t p4, size_t p5, size_t p6, size_t p7, void* p8, cl_int* p9) { return clCreateImage3D_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); } |
||||
#undef clRetainMemObject |
||||
#define clRetainMemObject clRetainMemObject_fn |
||||
inline cl_int clRetainMemObject(cl_mem p0) { return clRetainMemObject_pfn(p0); } |
||||
#undef clReleaseMemObject |
||||
#define clReleaseMemObject clReleaseMemObject_fn |
||||
inline cl_int clReleaseMemObject(cl_mem p0) { return clReleaseMemObject_pfn(p0); } |
||||
#undef clGetSupportedImageFormats |
||||
#define clGetSupportedImageFormats clGetSupportedImageFormats_fn |
||||
inline cl_int clGetSupportedImageFormats(cl_context p0, cl_mem_flags p1, cl_mem_object_type p2, cl_uint p3, cl_image_format* p4, cl_uint* p5) { return clGetSupportedImageFormats_pfn(p0, p1, p2, p3, p4, p5); } |
||||
#undef clGetMemObjectInfo |
||||
#define clGetMemObjectInfo clGetMemObjectInfo_fn |
||||
inline cl_int clGetMemObjectInfo(cl_mem p0, cl_mem_info p1, size_t p2, void* p3, size_t* p4) { return clGetMemObjectInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clGetImageInfo |
||||
#define clGetImageInfo clGetImageInfo_fn |
||||
inline cl_int clGetImageInfo(cl_mem p0, cl_image_info p1, size_t p2, void* p3, size_t* p4) { return clGetImageInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clSetMemObjectDestructorCallback |
||||
#define clSetMemObjectDestructorCallback clSetMemObjectDestructorCallback_fn |
||||
inline cl_int clSetMemObjectDestructorCallback(cl_mem p0, void (CL_CALLBACK*p1) (cl_mem, void*), void* p2) { return clSetMemObjectDestructorCallback_pfn(p0, p1, p2); } |
||||
#undef clCreateSampler |
||||
#define clCreateSampler clCreateSampler_fn |
||||
inline cl_sampler clCreateSampler(cl_context p0, cl_bool p1, cl_addressing_mode p2, cl_filter_mode p3, cl_int* p4) { return clCreateSampler_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clRetainSampler |
||||
#define clRetainSampler clRetainSampler_fn |
||||
inline cl_int clRetainSampler(cl_sampler p0) { return clRetainSampler_pfn(p0); } |
||||
#undef clReleaseSampler |
||||
#define clReleaseSampler clReleaseSampler_fn |
||||
inline cl_int clReleaseSampler(cl_sampler p0) { return clReleaseSampler_pfn(p0); } |
||||
#undef clGetSamplerInfo |
||||
#define clGetSamplerInfo clGetSamplerInfo_fn |
||||
inline cl_int clGetSamplerInfo(cl_sampler p0, cl_sampler_info p1, size_t p2, void* p3, size_t* p4) { return clGetSamplerInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clCreateProgramWithSource |
||||
#define clCreateProgramWithSource clCreateProgramWithSource_fn |
||||
inline cl_program clCreateProgramWithSource(cl_context p0, cl_uint p1, const char** p2, const size_t* p3, cl_int* p4) { return clCreateProgramWithSource_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clCreateProgramWithBinary |
||||
#define clCreateProgramWithBinary clCreateProgramWithBinary_fn |
||||
inline cl_program clCreateProgramWithBinary(cl_context p0, cl_uint p1, const cl_device_id* p2, const size_t* p3, const unsigned char** p4, cl_int* p5, cl_int* p6) { return clCreateProgramWithBinary_pfn(p0, p1, p2, p3, p4, p5, p6); } |
||||
#undef clRetainProgram |
||||
#define clRetainProgram clRetainProgram_fn |
||||
inline cl_int clRetainProgram(cl_program p0) { return clRetainProgram_pfn(p0); } |
||||
#undef clReleaseProgram |
||||
#define clReleaseProgram clReleaseProgram_fn |
||||
inline cl_int clReleaseProgram(cl_program p0) { return clReleaseProgram_pfn(p0); } |
||||
#undef clBuildProgram |
||||
#define clBuildProgram clBuildProgram_fn |
||||
inline cl_int clBuildProgram(cl_program p0, cl_uint p1, const cl_device_id* p2, const char* p3, void (CL_CALLBACK*p4) (cl_program, void*), void* p5) { return clBuildProgram_pfn(p0, p1, p2, p3, p4, p5); } |
||||
#undef clUnloadCompiler |
||||
#define clUnloadCompiler clUnloadCompiler_fn |
||||
inline cl_int clUnloadCompiler() { return clUnloadCompiler_pfn(); } |
||||
#undef clGetProgramInfo |
||||
#define clGetProgramInfo clGetProgramInfo_fn |
||||
inline cl_int clGetProgramInfo(cl_program p0, cl_program_info p1, size_t p2, void* p3, size_t* p4) { return clGetProgramInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clGetProgramBuildInfo |
||||
#define clGetProgramBuildInfo clGetProgramBuildInfo_fn |
||||
inline cl_int clGetProgramBuildInfo(cl_program p0, cl_device_id p1, cl_program_build_info p2, size_t p3, void* p4, size_t* p5) { return clGetProgramBuildInfo_pfn(p0, p1, p2, p3, p4, p5); } |
||||
#undef clCreateKernel |
||||
#define clCreateKernel clCreateKernel_fn |
||||
inline cl_kernel clCreateKernel(cl_program p0, const char* p1, cl_int* p2) { return clCreateKernel_pfn(p0, p1, p2); } |
||||
#undef clCreateKernelsInProgram |
||||
#define clCreateKernelsInProgram clCreateKernelsInProgram_fn |
||||
inline cl_int clCreateKernelsInProgram(cl_program p0, cl_uint p1, cl_kernel* p2, cl_uint* p3) { return clCreateKernelsInProgram_pfn(p0, p1, p2, p3); } |
||||
#undef clRetainKernel |
||||
#define clRetainKernel clRetainKernel_fn |
||||
inline cl_int clRetainKernel(cl_kernel p0) { return clRetainKernel_pfn(p0); } |
||||
#undef clReleaseKernel |
||||
#define clReleaseKernel clReleaseKernel_fn |
||||
inline cl_int clReleaseKernel(cl_kernel p0) { return clReleaseKernel_pfn(p0); } |
||||
#undef clSetKernelArg |
||||
#define clSetKernelArg clSetKernelArg_fn |
||||
inline cl_int clSetKernelArg(cl_kernel p0, cl_uint p1, size_t p2, const void* p3) { return clSetKernelArg_pfn(p0, p1, p2, p3); } |
||||
#undef clGetKernelInfo |
||||
#define clGetKernelInfo clGetKernelInfo_fn |
||||
inline cl_int clGetKernelInfo(cl_kernel p0, cl_kernel_info p1, size_t p2, void* p3, size_t* p4) { return clGetKernelInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clGetKernelWorkGroupInfo |
||||
#define clGetKernelWorkGroupInfo clGetKernelWorkGroupInfo_fn |
||||
inline cl_int clGetKernelWorkGroupInfo(cl_kernel p0, cl_device_id p1, cl_kernel_work_group_info p2, size_t p3, void* p4, size_t* p5) { return clGetKernelWorkGroupInfo_pfn(p0, p1, p2, p3, p4, p5); } |
||||
#undef clWaitForEvents |
||||
#define clWaitForEvents clWaitForEvents_fn |
||||
inline cl_int clWaitForEvents(cl_uint p0, const cl_event* p1) { return clWaitForEvents_pfn(p0, p1); } |
||||
#undef clGetEventInfo |
||||
#define clGetEventInfo clGetEventInfo_fn |
||||
inline cl_int clGetEventInfo(cl_event p0, cl_event_info p1, size_t p2, void* p3, size_t* p4) { return clGetEventInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clCreateUserEvent |
||||
#define clCreateUserEvent clCreateUserEvent_fn |
||||
inline cl_event clCreateUserEvent(cl_context p0, cl_int* p1) { return clCreateUserEvent_pfn(p0, p1); } |
||||
#undef clRetainEvent |
||||
#define clRetainEvent clRetainEvent_fn |
||||
inline cl_int clRetainEvent(cl_event p0) { return clRetainEvent_pfn(p0); } |
||||
#undef clReleaseEvent |
||||
#define clReleaseEvent clReleaseEvent_fn |
||||
inline cl_int clReleaseEvent(cl_event p0) { return clReleaseEvent_pfn(p0); } |
||||
#undef clSetUserEventStatus |
||||
#define clSetUserEventStatus clSetUserEventStatus_fn |
||||
inline cl_int clSetUserEventStatus(cl_event p0, cl_int p1) { return clSetUserEventStatus_pfn(p0, p1); } |
||||
#undef clSetEventCallback |
||||
#define clSetEventCallback clSetEventCallback_fn |
||||
inline cl_int clSetEventCallback(cl_event p0, cl_int p1, void (CL_CALLBACK*p2) (cl_event, cl_int, void*), void* p3) { return clSetEventCallback_pfn(p0, p1, p2, p3); } |
||||
#undef clGetEventProfilingInfo |
||||
#define clGetEventProfilingInfo clGetEventProfilingInfo_fn |
||||
inline cl_int clGetEventProfilingInfo(cl_event p0, cl_profiling_info p1, size_t p2, void* p3, size_t* p4) { return clGetEventProfilingInfo_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clFlush |
||||
#define clFlush clFlush_fn |
||||
inline cl_int clFlush(cl_command_queue p0) { return clFlush_pfn(p0); } |
||||
#undef clFinish |
||||
#define clFinish clFinish_fn |
||||
inline cl_int clFinish(cl_command_queue p0) { return clFinish_pfn(p0); } |
||||
#undef clEnqueueReadBuffer |
||||
#define clEnqueueReadBuffer clEnqueueReadBuffer_fn |
||||
inline cl_int clEnqueueReadBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2, size_t p3, size_t p4, void* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueReadBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); } |
||||
#undef clEnqueueReadBufferRect |
||||
#define clEnqueueReadBufferRect clEnqueueReadBufferRect_fn |
||||
inline cl_int clEnqueueReadBufferRect(cl_command_queue p0, cl_mem p1, cl_bool p2, const size_t* p3, const size_t* p4, const size_t* p5, size_t p6, size_t p7, size_t p8, size_t p9, void* p10, cl_uint p11, const cl_event* p12, cl_event* p13) { return clEnqueueReadBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); } |
||||
#undef clEnqueueWriteBuffer |
||||
#define clEnqueueWriteBuffer clEnqueueWriteBuffer_fn |
||||
inline cl_int clEnqueueWriteBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2, size_t p3, size_t p4, const void* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueWriteBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); } |
||||
#undef clEnqueueWriteBufferRect |
||||
#define clEnqueueWriteBufferRect clEnqueueWriteBufferRect_fn |
||||
inline cl_int clEnqueueWriteBufferRect(cl_command_queue p0, cl_mem p1, cl_bool p2, const size_t* p3, const size_t* p4, const size_t* p5, size_t p6, size_t p7, size_t p8, size_t p9, const void* p10, cl_uint p11, const cl_event* p12, cl_event* p13) { return clEnqueueWriteBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); } |
||||
#undef clEnqueueCopyBuffer |
||||
#define clEnqueueCopyBuffer clEnqueueCopyBuffer_fn |
||||
inline cl_int clEnqueueCopyBuffer(cl_command_queue p0, cl_mem p1, cl_mem p2, size_t p3, size_t p4, size_t p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueCopyBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); } |
||||
#undef clEnqueueCopyBufferRect |
||||
#define clEnqueueCopyBufferRect clEnqueueCopyBufferRect_fn |
||||
inline cl_int clEnqueueCopyBufferRect(cl_command_queue p0, cl_mem p1, cl_mem p2, const size_t* p3, const size_t* p4, const size_t* p5, size_t p6, size_t p7, size_t p8, size_t p9, cl_uint p10, const cl_event* p11, cl_event* p12) { return clEnqueueCopyBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12); } |
||||
#undef clEnqueueReadImage |
||||
#define clEnqueueReadImage clEnqueueReadImage_fn |
||||
inline cl_int clEnqueueReadImage(cl_command_queue p0, cl_mem p1, cl_bool p2, const size_t* p3, const size_t* p4, size_t p5, size_t p6, void* p7, cl_uint p8, const cl_event* p9, cl_event* p10) { return clEnqueueReadImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); } |
||||
#undef clEnqueueWriteImage |
||||
#define clEnqueueWriteImage clEnqueueWriteImage_fn |
||||
inline cl_int clEnqueueWriteImage(cl_command_queue p0, cl_mem p1, cl_bool p2, const size_t* p3, const size_t* p4, size_t p5, size_t p6, const void* p7, cl_uint p8, const cl_event* p9, cl_event* p10) { return clEnqueueWriteImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); } |
||||
#undef clEnqueueCopyImage |
||||
#define clEnqueueCopyImage clEnqueueCopyImage_fn |
||||
inline cl_int clEnqueueCopyImage(cl_command_queue p0, cl_mem p1, cl_mem p2, const size_t* p3, const size_t* p4, const size_t* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueCopyImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); } |
||||
#undef clEnqueueCopyImageToBuffer |
||||
#define clEnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer_fn |
||||
inline cl_int clEnqueueCopyImageToBuffer(cl_command_queue p0, cl_mem p1, cl_mem p2, const size_t* p3, const size_t* p4, size_t p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueCopyImageToBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); } |
||||
#undef clEnqueueCopyBufferToImage |
||||
#define clEnqueueCopyBufferToImage clEnqueueCopyBufferToImage_fn |
||||
inline cl_int clEnqueueCopyBufferToImage(cl_command_queue p0, cl_mem p1, cl_mem p2, size_t p3, const size_t* p4, const size_t* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueCopyBufferToImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); } |
||||
#undef clEnqueueMapBuffer |
||||
#define clEnqueueMapBuffer clEnqueueMapBuffer_fn |
||||
inline void* clEnqueueMapBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2, cl_map_flags p3, size_t p4, size_t p5, cl_uint p6, const cl_event* p7, cl_event* p8, cl_int* p9) { return clEnqueueMapBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); } |
||||
#undef clEnqueueMapImage |
||||
#define clEnqueueMapImage clEnqueueMapImage_fn |
||||
inline void* clEnqueueMapImage(cl_command_queue p0, cl_mem p1, cl_bool p2, cl_map_flags p3, const size_t* p4, const size_t* p5, size_t* p6, size_t* p7, cl_uint p8, const cl_event* p9, cl_event* p10, cl_int* p11) { return clEnqueueMapImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); } |
||||
#undef clEnqueueUnmapMemObject |
||||
#define clEnqueueUnmapMemObject clEnqueueUnmapMemObject_fn |
||||
inline cl_int clEnqueueUnmapMemObject(cl_command_queue p0, cl_mem p1, void* p2, cl_uint p3, const cl_event* p4, cl_event* p5) { return clEnqueueUnmapMemObject_pfn(p0, p1, p2, p3, p4, p5); } |
||||
#undef clEnqueueNDRangeKernel |
||||
#define clEnqueueNDRangeKernel clEnqueueNDRangeKernel_fn |
||||
inline cl_int clEnqueueNDRangeKernel(cl_command_queue p0, cl_kernel p1, cl_uint p2, const size_t* p3, const size_t* p4, const size_t* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueNDRangeKernel_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); } |
||||
#undef clEnqueueTask |
||||
#define clEnqueueTask clEnqueueTask_fn |
||||
inline cl_int clEnqueueTask(cl_command_queue p0, cl_kernel p1, cl_uint p2, const cl_event* p3, cl_event* p4) { return clEnqueueTask_pfn(p0, p1, p2, p3, p4); } |
||||
#undef clEnqueueNativeKernel |
||||
#define clEnqueueNativeKernel clEnqueueNativeKernel_fn |
||||
inline cl_int clEnqueueNativeKernel(cl_command_queue p0, void (CL_CALLBACK*p1) (void*), void* p2, size_t p3, cl_uint p4, const cl_mem* p5, const void** p6, cl_uint p7, const cl_event* p8, cl_event* p9) { return clEnqueueNativeKernel_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); } |
||||
#undef clEnqueueMarker |
||||
#define clEnqueueMarker clEnqueueMarker_fn |
||||
inline cl_int clEnqueueMarker(cl_command_queue p0, cl_event* p1) { return clEnqueueMarker_pfn(p0, p1); } |
||||
#undef clEnqueueWaitForEvents |
||||
#define clEnqueueWaitForEvents clEnqueueWaitForEvents_fn |
||||
inline cl_int clEnqueueWaitForEvents(cl_command_queue p0, cl_uint p1, const cl_event* p2) { return clEnqueueWaitForEvents_pfn(p0, p1, p2); } |
||||
#undef clEnqueueBarrier |
||||
#define clEnqueueBarrier clEnqueueBarrier_fn |
||||
inline cl_int clEnqueueBarrier(cl_command_queue p0) { return clEnqueueBarrier_pfn(p0); } |
||||
#undef clGetExtensionFunctionAddress |
||||
#define clGetExtensionFunctionAddress clGetExtensionFunctionAddress_fn |
||||
inline void* clGetExtensionFunctionAddress(const char* p0) { return clGetExtensionFunctionAddress_pfn(p0); } |
||||
|
||||
#endif // __OPENCV_OCL_CL_RUNTIME_OPENCL_WRAPPERS_HPP__
|
@ -1,435 +0,0 @@ |
||||
//
|
||||
// AUTOGENERATED, DO NOT EDIT
|
||||
//
|
||||
// generated by parser_cl.py
|
||||
enum OPENCL_FN_ID { |
||||
OPENCL_FN_clGetPlatformIDs = 0, |
||||
OPENCL_FN_clGetPlatformInfo, |
||||
OPENCL_FN_clGetDeviceIDs, |
||||
OPENCL_FN_clGetDeviceInfo, |
||||
OPENCL_FN_clCreateContext, |
||||
OPENCL_FN_clCreateContextFromType, |
||||
OPENCL_FN_clRetainContext, |
||||
OPENCL_FN_clReleaseContext, |
||||
OPENCL_FN_clGetContextInfo, |
||||
OPENCL_FN_clCreateCommandQueue, |
||||
OPENCL_FN_clRetainCommandQueue, |
||||
OPENCL_FN_clReleaseCommandQueue, |
||||
OPENCL_FN_clGetCommandQueueInfo, |
||||
OPENCL_FN_clSetCommandQueueProperty, |
||||
OPENCL_FN_clCreateBuffer, |
||||
OPENCL_FN_clCreateSubBuffer, |
||||
OPENCL_FN_clCreateImage2D, |
||||
OPENCL_FN_clCreateImage3D, |
||||
OPENCL_FN_clRetainMemObject, |
||||
OPENCL_FN_clReleaseMemObject, |
||||
OPENCL_FN_clGetSupportedImageFormats, |
||||
OPENCL_FN_clGetMemObjectInfo, |
||||
OPENCL_FN_clGetImageInfo, |
||||
OPENCL_FN_clSetMemObjectDestructorCallback, |
||||
OPENCL_FN_clCreateSampler, |
||||
OPENCL_FN_clRetainSampler, |
||||
OPENCL_FN_clReleaseSampler, |
||||
OPENCL_FN_clGetSamplerInfo, |
||||
OPENCL_FN_clCreateProgramWithSource, |
||||
OPENCL_FN_clCreateProgramWithBinary, |
||||
OPENCL_FN_clRetainProgram, |
||||
OPENCL_FN_clReleaseProgram, |
||||
OPENCL_FN_clBuildProgram, |
||||
OPENCL_FN_clUnloadCompiler, |
||||
OPENCL_FN_clGetProgramInfo, |
||||
OPENCL_FN_clGetProgramBuildInfo, |
||||
OPENCL_FN_clCreateKernel, |
||||
OPENCL_FN_clCreateKernelsInProgram, |
||||
OPENCL_FN_clRetainKernel, |
||||
OPENCL_FN_clReleaseKernel, |
||||
OPENCL_FN_clSetKernelArg, |
||||
OPENCL_FN_clGetKernelInfo, |
||||
OPENCL_FN_clGetKernelWorkGroupInfo, |
||||
OPENCL_FN_clWaitForEvents, |
||||
OPENCL_FN_clGetEventInfo, |
||||
OPENCL_FN_clCreateUserEvent, |
||||
OPENCL_FN_clRetainEvent, |
||||
OPENCL_FN_clReleaseEvent, |
||||
OPENCL_FN_clSetUserEventStatus, |
||||
OPENCL_FN_clSetEventCallback, |
||||
OPENCL_FN_clGetEventProfilingInfo, |
||||
OPENCL_FN_clFlush, |
||||
OPENCL_FN_clFinish, |
||||
OPENCL_FN_clEnqueueReadBuffer, |
||||
OPENCL_FN_clEnqueueReadBufferRect, |
||||
OPENCL_FN_clEnqueueWriteBuffer, |
||||
OPENCL_FN_clEnqueueWriteBufferRect, |
||||
OPENCL_FN_clEnqueueCopyBuffer, |
||||
OPENCL_FN_clEnqueueCopyBufferRect, |
||||
OPENCL_FN_clEnqueueReadImage, |
||||
OPENCL_FN_clEnqueueWriteImage, |
||||
OPENCL_FN_clEnqueueCopyImage, |
||||
OPENCL_FN_clEnqueueCopyImageToBuffer, |
||||
OPENCL_FN_clEnqueueCopyBufferToImage, |
||||
OPENCL_FN_clEnqueueMapBuffer, |
||||
OPENCL_FN_clEnqueueMapImage, |
||||
OPENCL_FN_clEnqueueUnmapMemObject, |
||||
OPENCL_FN_clEnqueueNDRangeKernel, |
||||
OPENCL_FN_clEnqueueTask, |
||||
OPENCL_FN_clEnqueueNativeKernel, |
||||
OPENCL_FN_clEnqueueMarker, |
||||
OPENCL_FN_clEnqueueWaitForEvents, |
||||
OPENCL_FN_clEnqueueBarrier, |
||||
OPENCL_FN_clGetExtensionFunctionAddress, |
||||
}; |
||||
// generated by parser_cl.py
|
||||
const char* opencl_fn_names[] = { |
||||
"clGetPlatformIDs", |
||||
"clGetPlatformInfo", |
||||
"clGetDeviceIDs", |
||||
"clGetDeviceInfo", |
||||
"clCreateContext", |
||||
"clCreateContextFromType", |
||||
"clRetainContext", |
||||
"clReleaseContext", |
||||
"clGetContextInfo", |
||||
"clCreateCommandQueue", |
||||
"clRetainCommandQueue", |
||||
"clReleaseCommandQueue", |
||||
"clGetCommandQueueInfo", |
||||
"clSetCommandQueueProperty", |
||||
"clCreateBuffer", |
||||
"clCreateSubBuffer", |
||||
"clCreateImage2D", |
||||
"clCreateImage3D", |
||||
"clRetainMemObject", |
||||
"clReleaseMemObject", |
||||
"clGetSupportedImageFormats", |
||||
"clGetMemObjectInfo", |
||||
"clGetImageInfo", |
||||
"clSetMemObjectDestructorCallback", |
||||
"clCreateSampler", |
||||
"clRetainSampler", |
||||
"clReleaseSampler", |
||||
"clGetSamplerInfo", |
||||
"clCreateProgramWithSource", |
||||
"clCreateProgramWithBinary", |
||||
"clRetainProgram", |
||||
"clReleaseProgram", |
||||
"clBuildProgram", |
||||
"clUnloadCompiler", |
||||
"clGetProgramInfo", |
||||
"clGetProgramBuildInfo", |
||||
"clCreateKernel", |
||||
"clCreateKernelsInProgram", |
||||
"clRetainKernel", |
||||
"clReleaseKernel", |
||||
"clSetKernelArg", |
||||
"clGetKernelInfo", |
||||
"clGetKernelWorkGroupInfo", |
||||
"clWaitForEvents", |
||||
"clGetEventInfo", |
||||
"clCreateUserEvent", |
||||
"clRetainEvent", |
||||
"clReleaseEvent", |
||||
"clSetUserEventStatus", |
||||
"clSetEventCallback", |
||||
"clGetEventProfilingInfo", |
||||
"clFlush", |
||||
"clFinish", |
||||
"clEnqueueReadBuffer", |
||||
"clEnqueueReadBufferRect", |
||||
"clEnqueueWriteBuffer", |
||||
"clEnqueueWriteBufferRect", |
||||
"clEnqueueCopyBuffer", |
||||
"clEnqueueCopyBufferRect", |
||||
"clEnqueueReadImage", |
||||
"clEnqueueWriteImage", |
||||
"clEnqueueCopyImage", |
||||
"clEnqueueCopyImageToBuffer", |
||||
"clEnqueueCopyBufferToImage", |
||||
"clEnqueueMapBuffer", |
||||
"clEnqueueMapImage", |
||||
"clEnqueueUnmapMemObject", |
||||
"clEnqueueNDRangeKernel", |
||||
"clEnqueueTask", |
||||
"clEnqueueNativeKernel", |
||||
"clEnqueueMarker", |
||||
"clEnqueueWaitForEvents", |
||||
"clEnqueueBarrier", |
||||
"clGetExtensionFunctionAddress", |
||||
}; |
||||
|
||||
namespace { |
||||
// generated by parser_cl.py
|
||||
template <int ID, typename _R> |
||||
struct opencl_fn0 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(); |
||||
static _R CL_API_CALL switch_fn() |
||||
{ return ((FN)opencl_check_fn(ID))(); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1> |
||||
struct opencl_fn1 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1); |
||||
static _R CL_API_CALL switch_fn(_T1 p1) |
||||
{ return ((FN)opencl_check_fn(ID))(p1); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2> |
||||
struct opencl_fn2 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3> |
||||
struct opencl_fn3 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4> |
||||
struct opencl_fn4 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5> |
||||
struct opencl_fn5 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6> |
||||
struct opencl_fn6 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7> |
||||
struct opencl_fn7 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8> |
||||
struct opencl_fn8 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9> |
||||
struct opencl_fn9 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10> |
||||
struct opencl_fn10 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10, typename _T11> |
||||
struct opencl_fn11 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10, _T11 p11) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10, typename _T11, typename _T12> |
||||
struct opencl_fn12 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10, _T11 p11, _T12 p12) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10, typename _T11, typename _T12, typename _T13> |
||||
struct opencl_fn13 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10, _T11 p11, _T12 p12, _T13 p13) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); } |
||||
}; |
||||
|
||||
template <int ID, typename _R, typename _T1, typename _T2, typename _T3, typename _T4, typename _T5, typename _T6, typename _T7, typename _T8, typename _T9, typename _T10, typename _T11, typename _T12, typename _T13, typename _T14> |
||||
struct opencl_fn14 |
||||
{ |
||||
typedef _R (CL_API_CALL*FN)(_T1, _T2, _T3, _T4, _T5, _T6, _T7, _T8, _T9, _T10, _T11, _T12, _T13, _T14); |
||||
static _R CL_API_CALL switch_fn(_T1 p1, _T2 p2, _T3 p3, _T4 p4, _T5 p5, _T6 p6, _T7 p7, _T8 p8, _T9 p9, _T10 p10, _T11 p11, _T12 p12, _T13 p13, _T14 p14) |
||||
{ return ((FN)opencl_check_fn(ID))(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14); } |
||||
}; |
||||
|
||||
} |
||||
|
||||
// generated by parser_cl.py
|
||||
cl_int (CL_API_CALL*clGetPlatformIDs)(cl_uint, cl_platform_id*, cl_uint*) = opencl_fn3<OPENCL_FN_clGetPlatformIDs, cl_int, cl_uint, cl_platform_id*, cl_uint*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetPlatformInfo)(cl_platform_id, cl_platform_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetPlatformInfo, cl_int, cl_platform_id, cl_platform_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetDeviceIDs)(cl_platform_id, cl_device_type, cl_uint, cl_device_id*, cl_uint*) = opencl_fn5<OPENCL_FN_clGetDeviceIDs, cl_int, cl_platform_id, cl_device_type, cl_uint, cl_device_id*, cl_uint*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetDeviceInfo)(cl_device_id, cl_device_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetDeviceInfo, cl_int, cl_device_id, cl_device_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_context (CL_API_CALL*clCreateContext)(const cl_context_properties*, cl_uint, const cl_device_id*, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*) = opencl_fn6<OPENCL_FN_clCreateContext, cl_context, const cl_context_properties*, cl_uint, const cl_device_id*, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*>::switch_fn; |
||||
cl_context (CL_API_CALL*clCreateContextFromType)(const cl_context_properties*, cl_device_type, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*) = opencl_fn5<OPENCL_FN_clCreateContextFromType, cl_context, const cl_context_properties*, cl_device_type, void (CL_CALLBACK*) (const char*, const void*, size_t, void*), void*, cl_int*>::switch_fn; |
||||
cl_int (CL_API_CALL*clRetainContext)(cl_context) = opencl_fn1<OPENCL_FN_clRetainContext, cl_int, cl_context>::switch_fn; |
||||
cl_int (CL_API_CALL*clReleaseContext)(cl_context) = opencl_fn1<OPENCL_FN_clReleaseContext, cl_int, cl_context>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetContextInfo)(cl_context, cl_context_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetContextInfo, cl_int, cl_context, cl_context_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_command_queue (CL_API_CALL*clCreateCommandQueue)(cl_context, cl_device_id, cl_command_queue_properties, cl_int*) = opencl_fn4<OPENCL_FN_clCreateCommandQueue, cl_command_queue, cl_context, cl_device_id, cl_command_queue_properties, cl_int*>::switch_fn; |
||||
cl_int (CL_API_CALL*clRetainCommandQueue)(cl_command_queue) = opencl_fn1<OPENCL_FN_clRetainCommandQueue, cl_int, cl_command_queue>::switch_fn; |
||||
cl_int (CL_API_CALL*clReleaseCommandQueue)(cl_command_queue) = opencl_fn1<OPENCL_FN_clReleaseCommandQueue, cl_int, cl_command_queue>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetCommandQueueInfo)(cl_command_queue, cl_command_queue_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetCommandQueueInfo, cl_int, cl_command_queue, cl_command_queue_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_int (CL_API_CALL*clSetCommandQueueProperty)(cl_command_queue, cl_command_queue_properties, cl_bool, cl_command_queue_properties*) = opencl_fn4<OPENCL_FN_clSetCommandQueueProperty, cl_int, cl_command_queue, cl_command_queue_properties, cl_bool, cl_command_queue_properties*>::switch_fn; |
||||
cl_mem (CL_API_CALL*clCreateBuffer)(cl_context, cl_mem_flags, size_t, void*, cl_int*) = opencl_fn5<OPENCL_FN_clCreateBuffer, cl_mem, cl_context, cl_mem_flags, size_t, void*, cl_int*>::switch_fn; |
||||
cl_mem (CL_API_CALL*clCreateSubBuffer)(cl_mem, cl_mem_flags, cl_buffer_create_type, const void*, cl_int*) = opencl_fn5<OPENCL_FN_clCreateSubBuffer, cl_mem, cl_mem, cl_mem_flags, cl_buffer_create_type, const void*, cl_int*>::switch_fn; |
||||
cl_mem (CL_API_CALL*clCreateImage2D)(cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, void*, cl_int*) = opencl_fn8<OPENCL_FN_clCreateImage2D, cl_mem, cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, void*, cl_int*>::switch_fn; |
||||
cl_mem (CL_API_CALL*clCreateImage3D)(cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, size_t, size_t, void*, cl_int*) = opencl_fn10<OPENCL_FN_clCreateImage3D, cl_mem, cl_context, cl_mem_flags, const cl_image_format*, size_t, size_t, size_t, size_t, size_t, void*, cl_int*>::switch_fn; |
||||
cl_int (CL_API_CALL*clRetainMemObject)(cl_mem) = opencl_fn1<OPENCL_FN_clRetainMemObject, cl_int, cl_mem>::switch_fn; |
||||
cl_int (CL_API_CALL*clReleaseMemObject)(cl_mem) = opencl_fn1<OPENCL_FN_clReleaseMemObject, cl_int, cl_mem>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetSupportedImageFormats)(cl_context, cl_mem_flags, cl_mem_object_type, cl_uint, cl_image_format*, cl_uint*) = opencl_fn6<OPENCL_FN_clGetSupportedImageFormats, cl_int, cl_context, cl_mem_flags, cl_mem_object_type, cl_uint, cl_image_format*, cl_uint*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetMemObjectInfo)(cl_mem, cl_mem_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetMemObjectInfo, cl_int, cl_mem, cl_mem_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetImageInfo)(cl_mem, cl_image_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetImageInfo, cl_int, cl_mem, cl_image_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_int (CL_API_CALL*clSetMemObjectDestructorCallback)(cl_mem, void (CL_CALLBACK*) (cl_mem, void*), void*) = opencl_fn3<OPENCL_FN_clSetMemObjectDestructorCallback, cl_int, cl_mem, void (CL_CALLBACK*) (cl_mem, void*), void*>::switch_fn; |
||||
cl_sampler (CL_API_CALL*clCreateSampler)(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*) = opencl_fn5<OPENCL_FN_clCreateSampler, cl_sampler, cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*>::switch_fn; |
||||
cl_int (CL_API_CALL*clRetainSampler)(cl_sampler) = opencl_fn1<OPENCL_FN_clRetainSampler, cl_int, cl_sampler>::switch_fn; |
||||
cl_int (CL_API_CALL*clReleaseSampler)(cl_sampler) = opencl_fn1<OPENCL_FN_clReleaseSampler, cl_int, cl_sampler>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetSamplerInfo)(cl_sampler, cl_sampler_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetSamplerInfo, cl_int, cl_sampler, cl_sampler_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_program (CL_API_CALL*clCreateProgramWithSource)(cl_context, cl_uint, const char**, const size_t*, cl_int*) = opencl_fn5<OPENCL_FN_clCreateProgramWithSource, cl_program, cl_context, cl_uint, const char**, const size_t*, cl_int*>::switch_fn; |
||||
cl_program (CL_API_CALL*clCreateProgramWithBinary)(cl_context, cl_uint, const cl_device_id*, const size_t*, const unsigned char**, cl_int*, cl_int*) = opencl_fn7<OPENCL_FN_clCreateProgramWithBinary, cl_program, cl_context, cl_uint, const cl_device_id*, const size_t*, const unsigned char**, cl_int*, cl_int*>::switch_fn; |
||||
cl_int (CL_API_CALL*clRetainProgram)(cl_program) = opencl_fn1<OPENCL_FN_clRetainProgram, cl_int, cl_program>::switch_fn; |
||||
cl_int (CL_API_CALL*clReleaseProgram)(cl_program) = opencl_fn1<OPENCL_FN_clReleaseProgram, cl_int, cl_program>::switch_fn; |
||||
cl_int (CL_API_CALL*clBuildProgram)(cl_program, cl_uint, const cl_device_id*, const char*, void (CL_CALLBACK*) (cl_program, void*), void*) = opencl_fn6<OPENCL_FN_clBuildProgram, cl_int, cl_program, cl_uint, const cl_device_id*, const char*, void (CL_CALLBACK*) (cl_program, void*), void*>::switch_fn; |
||||
cl_int (CL_API_CALL*clUnloadCompiler)() = opencl_fn0<OPENCL_FN_clUnloadCompiler, cl_int>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetProgramInfo)(cl_program, cl_program_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetProgramInfo, cl_int, cl_program, cl_program_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetProgramBuildInfo)(cl_program, cl_device_id, cl_program_build_info, size_t, void*, size_t*) = opencl_fn6<OPENCL_FN_clGetProgramBuildInfo, cl_int, cl_program, cl_device_id, cl_program_build_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_kernel (CL_API_CALL*clCreateKernel)(cl_program, const char*, cl_int*) = opencl_fn3<OPENCL_FN_clCreateKernel, cl_kernel, cl_program, const char*, cl_int*>::switch_fn; |
||||
cl_int (CL_API_CALL*clCreateKernelsInProgram)(cl_program, cl_uint, cl_kernel*, cl_uint*) = opencl_fn4<OPENCL_FN_clCreateKernelsInProgram, cl_int, cl_program, cl_uint, cl_kernel*, cl_uint*>::switch_fn; |
||||
cl_int (CL_API_CALL*clRetainKernel)(cl_kernel) = opencl_fn1<OPENCL_FN_clRetainKernel, cl_int, cl_kernel>::switch_fn; |
||||
cl_int (CL_API_CALL*clReleaseKernel)(cl_kernel) = opencl_fn1<OPENCL_FN_clReleaseKernel, cl_int, cl_kernel>::switch_fn; |
||||
cl_int (CL_API_CALL*clSetKernelArg)(cl_kernel, cl_uint, size_t, const void*) = opencl_fn4<OPENCL_FN_clSetKernelArg, cl_int, cl_kernel, cl_uint, size_t, const void*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetKernelInfo)(cl_kernel, cl_kernel_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetKernelInfo, cl_int, cl_kernel, cl_kernel_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetKernelWorkGroupInfo)(cl_kernel, cl_device_id, cl_kernel_work_group_info, size_t, void*, size_t*) = opencl_fn6<OPENCL_FN_clGetKernelWorkGroupInfo, cl_int, cl_kernel, cl_device_id, cl_kernel_work_group_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_int (CL_API_CALL*clWaitForEvents)(cl_uint, const cl_event*) = opencl_fn2<OPENCL_FN_clWaitForEvents, cl_int, cl_uint, const cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetEventInfo)(cl_event, cl_event_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetEventInfo, cl_int, cl_event, cl_event_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_event (CL_API_CALL*clCreateUserEvent)(cl_context, cl_int*) = opencl_fn2<OPENCL_FN_clCreateUserEvent, cl_event, cl_context, cl_int*>::switch_fn; |
||||
cl_int (CL_API_CALL*clRetainEvent)(cl_event) = opencl_fn1<OPENCL_FN_clRetainEvent, cl_int, cl_event>::switch_fn; |
||||
cl_int (CL_API_CALL*clReleaseEvent)(cl_event) = opencl_fn1<OPENCL_FN_clReleaseEvent, cl_int, cl_event>::switch_fn; |
||||
cl_int (CL_API_CALL*clSetUserEventStatus)(cl_event, cl_int) = opencl_fn2<OPENCL_FN_clSetUserEventStatus, cl_int, cl_event, cl_int>::switch_fn; |
||||
cl_int (CL_API_CALL*clSetEventCallback)(cl_event, cl_int, void (CL_CALLBACK*) (cl_event, cl_int, void*), void*) = opencl_fn4<OPENCL_FN_clSetEventCallback, cl_int, cl_event, cl_int, void (CL_CALLBACK*) (cl_event, cl_int, void*), void*>::switch_fn; |
||||
cl_int (CL_API_CALL*clGetEventProfilingInfo)(cl_event, cl_profiling_info, size_t, void*, size_t*) = opencl_fn5<OPENCL_FN_clGetEventProfilingInfo, cl_int, cl_event, cl_profiling_info, size_t, void*, size_t*>::switch_fn; |
||||
cl_int (CL_API_CALL*clFlush)(cl_command_queue) = opencl_fn1<OPENCL_FN_clFlush, cl_int, cl_command_queue>::switch_fn; |
||||
cl_int (CL_API_CALL*clFinish)(cl_command_queue) = opencl_fn1<OPENCL_FN_clFinish, cl_int, cl_command_queue>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueReadBuffer)(cl_command_queue, cl_mem, cl_bool, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueReadBuffer, cl_int, cl_command_queue, cl_mem, cl_bool, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueReadBufferRect)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*) = opencl_fn14<OPENCL_FN_clEnqueueReadBufferRect, cl_int, cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueWriteBuffer)(cl_command_queue, cl_mem, cl_bool, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueWriteBuffer, cl_int, cl_command_queue, cl_mem, cl_bool, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueWriteBufferRect)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*) = opencl_fn14<OPENCL_FN_clEnqueueWriteBufferRect, cl_int, cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueCopyBuffer)(cl_command_queue, cl_mem, cl_mem, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueCopyBuffer, cl_int, cl_command_queue, cl_mem, cl_mem, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueCopyBufferRect)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*) = opencl_fn13<OPENCL_FN_clEnqueueCopyBufferRect, cl_int, cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, size_t, size_t, size_t, size_t, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueReadImage)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*) = opencl_fn11<OPENCL_FN_clEnqueueReadImage, cl_int, cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, void*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueWriteImage)(cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*) = opencl_fn11<OPENCL_FN_clEnqueueWriteImage, cl_int, cl_command_queue, cl_mem, cl_bool, const size_t*, const size_t*, size_t, size_t, const void*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueCopyImage)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueCopyImage, cl_int, cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueCopyImageToBuffer)(cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, size_t, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueCopyImageToBuffer, cl_int, cl_command_queue, cl_mem, cl_mem, const size_t*, const size_t*, size_t, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueCopyBufferToImage)(cl_command_queue, cl_mem, cl_mem, size_t, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueCopyBufferToImage, cl_int, cl_command_queue, cl_mem, cl_mem, size_t, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
void* (CL_API_CALL*clEnqueueMapBuffer)(cl_command_queue, cl_mem, cl_bool, cl_map_flags, size_t, size_t, cl_uint, const cl_event*, cl_event*, cl_int*) = opencl_fn10<OPENCL_FN_clEnqueueMapBuffer, void*, cl_command_queue, cl_mem, cl_bool, cl_map_flags, size_t, size_t, cl_uint, const cl_event*, cl_event*, cl_int*>::switch_fn; |
||||
void* (CL_API_CALL*clEnqueueMapImage)(cl_command_queue, cl_mem, cl_bool, cl_map_flags, const size_t*, const size_t*, size_t*, size_t*, cl_uint, const cl_event*, cl_event*, cl_int*) = opencl_fn12<OPENCL_FN_clEnqueueMapImage, void*, cl_command_queue, cl_mem, cl_bool, cl_map_flags, const size_t*, const size_t*, size_t*, size_t*, cl_uint, const cl_event*, cl_event*, cl_int*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueUnmapMemObject)(cl_command_queue, cl_mem, void*, cl_uint, const cl_event*, cl_event*) = opencl_fn6<OPENCL_FN_clEnqueueUnmapMemObject, cl_int, cl_command_queue, cl_mem, void*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueNDRangeKernel)(cl_command_queue, cl_kernel, cl_uint, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*) = opencl_fn9<OPENCL_FN_clEnqueueNDRangeKernel, cl_int, cl_command_queue, cl_kernel, cl_uint, const size_t*, const size_t*, const size_t*, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueTask)(cl_command_queue, cl_kernel, cl_uint, const cl_event*, cl_event*) = opencl_fn5<OPENCL_FN_clEnqueueTask, cl_int, cl_command_queue, cl_kernel, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueNativeKernel)(cl_command_queue, void (CL_CALLBACK*) (void*), void*, size_t, cl_uint, const cl_mem*, const void**, cl_uint, const cl_event*, cl_event*) = opencl_fn10<OPENCL_FN_clEnqueueNativeKernel, cl_int, cl_command_queue, void (CL_CALLBACK*) (void*), void*, size_t, cl_uint, const cl_mem*, const void**, cl_uint, const cl_event*, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueMarker)(cl_command_queue, cl_event*) = opencl_fn2<OPENCL_FN_clEnqueueMarker, cl_int, cl_command_queue, cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueWaitForEvents)(cl_command_queue, cl_uint, const cl_event*) = opencl_fn3<OPENCL_FN_clEnqueueWaitForEvents, cl_int, cl_command_queue, cl_uint, const cl_event*>::switch_fn; |
||||
cl_int (CL_API_CALL*clEnqueueBarrier)(cl_command_queue) = opencl_fn1<OPENCL_FN_clEnqueueBarrier, cl_int, cl_command_queue>::switch_fn; |
||||
void* (CL_API_CALL*clGetExtensionFunctionAddress)(const char*) = opencl_fn1<OPENCL_FN_clGetExtensionFunctionAddress, void*, const char*>::switch_fn; |
||||
|
||||
// generated by parser_cl.py
|
||||
void* opencl_fn_ptrs[] = { |
||||
&clGetPlatformIDs, |
||||
&clGetPlatformInfo, |
||||
&clGetDeviceIDs, |
||||
&clGetDeviceInfo, |
||||
&clCreateContext, |
||||
&clCreateContextFromType, |
||||
&clRetainContext, |
||||
&clReleaseContext, |
||||
&clGetContextInfo, |
||||
&clCreateCommandQueue, |
||||
&clRetainCommandQueue, |
||||
&clReleaseCommandQueue, |
||||
&clGetCommandQueueInfo, |
||||
&clSetCommandQueueProperty, |
||||
&clCreateBuffer, |
||||
&clCreateSubBuffer, |
||||
&clCreateImage2D, |
||||
&clCreateImage3D, |
||||
&clRetainMemObject, |
||||
&clReleaseMemObject, |
||||
&clGetSupportedImageFormats, |
||||
&clGetMemObjectInfo, |
||||
&clGetImageInfo, |
||||
&clSetMemObjectDestructorCallback, |
||||
&clCreateSampler, |
||||
&clRetainSampler, |
||||
&clReleaseSampler, |
||||
&clGetSamplerInfo, |
||||
&clCreateProgramWithSource, |
||||
&clCreateProgramWithBinary, |
||||
&clRetainProgram, |
||||
&clReleaseProgram, |
||||
&clBuildProgram, |
||||
&clUnloadCompiler, |
||||
&clGetProgramInfo, |
||||
&clGetProgramBuildInfo, |
||||
&clCreateKernel, |
||||
&clCreateKernelsInProgram, |
||||
&clRetainKernel, |
||||
&clReleaseKernel, |
||||
&clSetKernelArg, |
||||
&clGetKernelInfo, |
||||
&clGetKernelWorkGroupInfo, |
||||
&clWaitForEvents, |
||||
&clGetEventInfo, |
||||
&clCreateUserEvent, |
||||
&clRetainEvent, |
||||
&clReleaseEvent, |
||||
&clSetUserEventStatus, |
||||
&clSetEventCallback, |
||||
&clGetEventProfilingInfo, |
||||
&clFlush, |
||||
&clFinish, |
||||
&clEnqueueReadBuffer, |
||||
&clEnqueueReadBufferRect, |
||||
&clEnqueueWriteBuffer, |
||||
&clEnqueueWriteBufferRect, |
||||
&clEnqueueCopyBuffer, |
||||
&clEnqueueCopyBufferRect, |
||||
&clEnqueueReadImage, |
||||
&clEnqueueWriteImage, |
||||
&clEnqueueCopyImage, |
||||
&clEnqueueCopyImageToBuffer, |
||||
&clEnqueueCopyBufferToImage, |
||||
&clEnqueueMapBuffer, |
||||
&clEnqueueMapImage, |
||||
&clEnqueueUnmapMemObject, |
||||
&clEnqueueNDRangeKernel, |
||||
&clEnqueueTask, |
||||
&clEnqueueNativeKernel, |
||||
&clEnqueueMarker, |
||||
&clEnqueueWaitForEvents, |
||||
&clEnqueueBarrier, |
||||
&clGetExtensionFunctionAddress, |
||||
}; |
@ -1,7 +1,6 @@ |
||||
#!/bin/bash -e |
||||
echo "Generate files for CL runtime..." |
||||
cat sources/opencl11/cl.h | python parser_cl.py cl_runtime_opencl11 |
||||
cat sources/opencl12/cl.h | python parser_cl.py cl_runtime_opencl12 |
||||
cat sources/cl.h | python parser_cl.py cl_runtime_opencl |
||||
cat sources/clAmdBlas.h | python parser_clamdblas.py |
||||
cat sources/clAmdFft.h | python parser_clamdfft.py |
||||
echo "Generate files for CL runtime... Done" |
||||
|
Loading…
Reference in new issue