Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
fd4e705b
Commit
fd4e705b
authored
Oct 11, 2013
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocl: update autogenerated code
parent
6344da9a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
1010 deletions
+0
-1010
cl_runtime_opencl.hpp
.../ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl.hpp
+0
-10
cl_runtime_opencl11.hpp
...cl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl11.hpp
+0
-333
cl_runtime_opencl11_wrappers.hpp
...e/opencv2/ocl/cl_runtime/cl_runtime_opencl11_wrappers.hpp
+0
-232
cl_runtime_opencl_wrappers.hpp
...ude/opencv2/ocl/cl_runtime/cl_runtime_opencl_wrappers.hpp
+0
-0
cl_runtime_opencl11_impl.hpp
modules/ocl/src/cl_runtime/cl_runtime_opencl11_impl.hpp
+0
-435
cl_runtime_opencl_impl.hpp
modules/ocl/src/cl_runtime/cl_runtime_opencl_impl.hpp
+0
-0
No files found.
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl
12
.hpp
→
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl.hpp
View file @
fd4e705b
...
...
@@ -4,12 +4,6 @@
#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_
...
...
@@ -382,8 +376,4 @@ extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueBarrier)(cl_command_queue)
extern
CL_RUNTIME_EXPORT
cl_int
(
CL_API_CALL
*
clUnloadCompiler
)();
extern
CL_RUNTIME_EXPORT
void
*
(
CL_API_CALL
*
clGetExtensionFunctionAddress
)(
const
char
*
);
#endif
#endif
#endif // __OPENCV_OCL_CL_RUNTIME_OPENCL_HPP__
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl11.hpp
deleted
100644 → 0
View file @
6344da9a
//
// 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__
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl11_wrappers.hpp
deleted
100644 → 0
View file @
6344da9a
//
// 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__
\ No newline at end of file
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl
12
_wrappers.hpp
→
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl_wrappers.hpp
View file @
fd4e705b
File moved
modules/ocl/src/cl_runtime/cl_runtime_opencl11_impl.hpp
deleted
100644 → 0
View file @
6344da9a
//
// 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
,
};
modules/ocl/src/cl_runtime/cl_runtime_opencl
12
_impl.hpp
→
modules/ocl/src/cl_runtime/cl_runtime_opencl_impl.hpp
View file @
fd4e705b
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment