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
2d1a6687
Commit
2d1a6687
authored
Oct 03, 2013
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autogenerated code
parent
2fdfa37e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
384 additions
and
384 deletions
+384
-384
cl_runtime_opencl11.hpp
...cl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl11.hpp
+74
-74
cl_runtime_opencl12.hpp
...cl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl12.hpp
+88
-88
cl_runtime_opencl11_impl.hpp
modules/ocl/src/cl_runtime/cl_runtime_opencl11_impl.hpp
+104
-104
cl_runtime_opencl12_impl.hpp
modules/ocl/src/cl_runtime/cl_runtime_opencl12_impl.hpp
+118
-118
No files found.
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl11.hpp
View file @
2d1a6687
...
...
@@ -251,80 +251,80 @@
#endif
// generated by parser_cl.py
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetPlatformIDs
)(
cl_uint
,
cl_platform_id
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetPlatformInfo
)(
cl_platform_id
,
cl_platform_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetDeviceIDs
)(
cl_platform_id
,
cl_device_type
,
cl_uint
,
cl_device_id
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetDeviceInfo
)(
cl_device_id
,
cl_device_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_context
(
*
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
(
*
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
(
*
clRetainContext
)(
cl_context
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseContext
)(
cl_context
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetContextInfo
)(
cl_context
,
cl_context_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_command_queue
(
*
clCreateCommandQueue
)(
cl_context
,
cl_device_id
,
cl_command_queue_properties
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainCommandQueue
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseCommandQueue
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetCommandQueueInfo
)(
cl_command_queue
,
cl_command_queue_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetCommandQueueProperty
)(
cl_command_queue
,
cl_command_queue_properties
,
cl_bool
,
cl_command_queue_properties
*
);
extern
CL_RUNTIME_EXPORT
cl_mem
(
*
clCreateBuffer
)(
cl_context
,
cl_mem_flags
,
size_t
,
void
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_mem
(
*
clCreateSubBuffer
)(
cl_mem
,
cl_mem_flags
,
cl_buffer_create_type
,
const
void
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_mem
(
*
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
(
*
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
(
*
clRetainMemObject
)(
cl_mem
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseMemObject
)(
cl_mem
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetSupportedImageFormats
)(
cl_context
,
cl_mem_flags
,
cl_mem_object_type
,
cl_uint
,
cl_image_format
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetMemObjectInfo
)(
cl_mem
,
cl_mem_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetImageInfo
)(
cl_mem
,
cl_image_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetMemObjectDestructorCallback
)(
cl_mem
,
void
(
CL_CALLBACK
*
)
(
cl_mem
,
void
*
),
void
*
);
extern
CL_RUNTIME_EXPORT
cl_sampler
(
*
clCreateSampler
)(
cl_context
,
cl_bool
,
cl_addressing_mode
,
cl_filter_mode
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainSampler
)(
cl_sampler
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseSampler
)(
cl_sampler
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetSamplerInfo
)(
cl_sampler
,
cl_sampler_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_program
(
*
clCreateProgramWithSource
)(
cl_context
,
cl_uint
,
const
char
**
,
const
size_t
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_program
(
*
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
(
*
clRetainProgram
)(
cl_program
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseProgram
)(
cl_program
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clBuildProgram
)(
cl_program
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clUnloadCompiler
)();
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetProgramInfo
)(
cl_program
,
cl_program_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetProgramBuildInfo
)(
cl_program
,
cl_device_id
,
cl_program_build_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_kernel
(
*
clCreateKernel
)(
cl_program
,
const
char
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clCreateKernelsInProgram
)(
cl_program
,
cl_uint
,
cl_kernel
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainKernel
)(
cl_kernel
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseKernel
)(
cl_kernel
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetKernelArg
)(
cl_kernel
,
cl_uint
,
size_t
,
const
void
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetKernelInfo
)(
cl_kernel
,
cl_kernel_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetKernelWorkGroupInfo
)(
cl_kernel
,
cl_device_id
,
cl_kernel_work_group_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clWaitForEvents
)(
cl_uint
,
const
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetEventInfo
)(
cl_event
,
cl_event_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_event
(
*
clCreateUserEvent
)(
cl_context
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainEvent
)(
cl_event
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseEvent
)(
cl_event
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetUserEventStatus
)(
cl_event
,
cl_int
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetEventCallback
)(
cl_event
,
cl_int
,
void
(
CL_CALLBACK
*
)
(
cl_event
,
cl_int
,
void
*
),
void
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetEventProfilingInfo
)(
cl_event
,
cl_profiling_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clFlush
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clFinish
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
*
(
*
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
*
(
*
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
(
*
clEnqueueUnmapMemObject
)(
cl_command_queue
,
cl_mem
,
void
*
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
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
(
*
clEnqueueTask
)(
cl_command_queue
,
cl_kernel
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
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
(
*
clEnqueueMarker
)(
cl_command_queue
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clEnqueueWaitForEvents
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clEnqueueBarrier
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
void
*
(
*
clGetExtensionFunctionAddress
)(
const
char
*
);
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
...
...
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime_opencl12.hpp
View file @
2d1a6687
...
...
@@ -293,94 +293,94 @@
#endif
// generated by parser_cl.py
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetPlatformIDs
)(
cl_uint
,
cl_platform_id
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetPlatformInfo
)(
cl_platform_id
,
cl_platform_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetDeviceIDs
)(
cl_platform_id
,
cl_device_type
,
cl_uint
,
cl_device_id
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetDeviceInfo
)(
cl_device_id
,
cl_device_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clCreateSubDevices
)(
cl_device_id
,
const
cl_device_partition_property
*
,
cl_uint
,
cl_device_id
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainDevice
)(
cl_device_id
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseDevice
)(
cl_device_id
);
extern
CL_RUNTIME_EXPORT
cl_context
(
*
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
(
*
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
(
*
clRetainContext
)(
cl_context
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseContext
)(
cl_context
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetContextInfo
)(
cl_context
,
cl_context_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_command_queue
(
*
clCreateCommandQueue
)(
cl_context
,
cl_device_id
,
cl_command_queue_properties
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainCommandQueue
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseCommandQueue
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetCommandQueueInfo
)(
cl_command_queue
,
cl_command_queue_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_mem
(
*
clCreateBuffer
)(
cl_context
,
cl_mem_flags
,
size_t
,
void
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_mem
(
*
clCreateSubBuffer
)(
cl_mem
,
cl_mem_flags
,
cl_buffer_create_type
,
const
void
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_mem
(
*
clCreateImage
)(
cl_context
,
cl_mem_flags
,
const
cl_image_format
*
,
const
cl_image_desc
*
,
void
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainMemObject
)(
cl_mem
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseMemObject
)(
cl_mem
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetSupportedImageFormats
)(
cl_context
,
cl_mem_flags
,
cl_mem_object_type
,
cl_uint
,
cl_image_format
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetMemObjectInfo
)(
cl_mem
,
cl_mem_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetImageInfo
)(
cl_mem
,
cl_image_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetMemObjectDestructorCallback
)(
cl_mem
,
void
(
CL_CALLBACK
*
)
(
cl_mem
,
void
*
),
void
*
);
extern
CL_RUNTIME_EXPORT
cl_sampler
(
*
clCreateSampler
)(
cl_context
,
cl_bool
,
cl_addressing_mode
,
cl_filter_mode
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainSampler
)(
cl_sampler
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseSampler
)(
cl_sampler
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetSamplerInfo
)(
cl_sampler
,
cl_sampler_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_program
(
*
clCreateProgramWithSource
)(
cl_context
,
cl_uint
,
const
char
**
,
const
size_t
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_program
(
*
clCreateProgramWithBinary
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
size_t
*
,
const
unsigned
char
**
,
cl_int
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_program
(
*
clCreateProgramWithBuiltInKernels
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainProgram
)(
cl_program
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseProgram
)(
cl_program
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clBuildProgram
)(
cl_program
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clCompileProgram
)(
cl_program
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
const
char
**
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
);
extern
CL_RUNTIME_EXPORT
cl_program
(
*
clLinkProgram
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clUnloadPlatformCompiler
)(
cl_platform_id
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetProgramInfo
)(
cl_program
,
cl_program_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetProgramBuildInfo
)(
cl_program
,
cl_device_id
,
cl_program_build_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_kernel
(
*
clCreateKernel
)(
cl_program
,
const
char
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clCreateKernelsInProgram
)(
cl_program
,
cl_uint
,
cl_kernel
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainKernel
)(
cl_kernel
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseKernel
)(
cl_kernel
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetKernelArg
)(
cl_kernel
,
cl_uint
,
size_t
,
const
void
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetKernelInfo
)(
cl_kernel
,
cl_kernel_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetKernelArgInfo
)(
cl_kernel
,
cl_uint
,
cl_kernel_arg_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetKernelWorkGroupInfo
)(
cl_kernel
,
cl_device_id
,
cl_kernel_work_group_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clWaitForEvents
)(
cl_uint
,
const
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetEventInfo
)(
cl_event
,
cl_event_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_event
(
*
clCreateUserEvent
)(
cl_context
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clRetainEvent
)(
cl_event
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clReleaseEvent
)(
cl_event
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetUserEventStatus
)(
cl_event
,
cl_int
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clSetEventCallback
)(
cl_event
,
cl_int
,
void
(
CL_CALLBACK
*
)
(
cl_event
,
cl_int
,
void
*
),
void
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clGetEventProfilingInfo
)(
cl_event
,
cl_profiling_info
,
size_t
,
void
*
,
size_t
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clFlush
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clFinish
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clEnqueueFillBuffer
)(
cl_command_queue
,
cl_mem
,
const
void
*
,
size_t
,
size_t
,
size_t
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clEnqueueFillImage
)(
cl_command_queue
,
cl_mem
,
const
void
*
,
const
size_t
*
,
const
size_t
*
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
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
(
*
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
(
*
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
*
(
*
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
*
(
*
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
(
*
clEnqueueUnmapMemObject
)(
cl_command_queue
,
cl_mem
,
void
*
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clEnqueueMigrateMemObjects
)(
cl_command_queue
,
cl_uint
,
const
cl_mem
*
,
cl_mem_migration_flags
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
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
(
*
clEnqueueTask
)(
cl_command_queue
,
cl_kernel
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
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
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clEnqueueMarkerWithWaitList
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clEnqueueBarrierWithWaitList
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
void
*
(
*
clGetExtensionFunctionAddressForPlatform
)(
cl_platform_id
,
const
char
*
);
extern
CL_RUNTIME_EXPORT
cl_mem
(
*
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
(
*
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
(
*
clEnqueueMarker
)(
cl_command_queue
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clEnqueueWaitForEvents
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clEnqueueBarrier
)(
cl_command_queue
);
extern
CL_RUNTIME_EXPORT
cl_int
(
*
clUnloadCompiler
)();
extern
CL_RUNTIME_EXPORT
void
*
(
*
clGetExtensionFunctionAddress
)(
const
char
*
);
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_int
(
CL_API_CALL
*
clCreateSubDevices
)(
cl_device_id
,
const
cl_device_partition_property
*
,
cl_uint
,
cl_device_id
*
,
cl_uint
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
CL_API_CALL
*
clRetainDevice
)(
cl_device_id
);
extern
CL_RUNTIME_EXPORT
cl_int
(
CL_API_CALL
*
clReleaseDevice
)(
cl_device_id
);
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_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
*
clCreateImage
)(
cl_context
,
cl_mem_flags
,
const
cl_image_format
*
,
const
cl_image_desc
*
,
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_program
(
CL_API_CALL
*
clCreateProgramWithBuiltInKernels
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
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
*
clCompileProgram
)(
cl_program
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
const
char
**
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
);
extern
CL_RUNTIME_EXPORT
cl_program
(
CL_API_CALL
*
clLinkProgram
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
,
cl_int
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
CL_API_CALL
*
clUnloadPlatformCompiler
)(
cl_platform_id
);
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
*
clGetKernelArgInfo
)(
cl_kernel
,
cl_uint
,
cl_kernel_arg_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
*
clEnqueueFillBuffer
)(
cl_command_queue
,
cl_mem
,
const
void
*
,
size_t
,
size_t
,
size_t
,
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
*
clEnqueueFillImage
)(
cl_command_queue
,
cl_mem
,
const
void
*
,
const
size_t
*
,
const
size_t
*
,
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
*
clEnqueueMigrateMemObjects
)(
cl_command_queue
,
cl_uint
,
const
cl_mem
*
,
cl_mem_migration_flags
,
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
*
)
(
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
*
clEnqueueMarkerWithWaitList
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
cl_int
(
CL_API_CALL
*
clEnqueueBarrierWithWaitList
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*
);
extern
CL_RUNTIME_EXPORT
void
*
(
CL_API_CALL
*
clGetExtensionFunctionAddressForPlatform
)(
cl_platform_id
,
const
char
*
);
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
*
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
cl_int
(
CL_API_CALL
*
clUnloadCompiler
)();
extern
CL_RUNTIME_EXPORT
void
*
(
CL_API_CALL
*
clGetExtensionFunctionAddress
)(
const
char
*
);
#endif
...
...
modules/ocl/src/cl_runtime/cl_runtime_opencl11_impl.hpp
View file @
2d1a6687
...
...
@@ -161,200 +161,200 @@ namespace {
template
<
int
ID
,
typename
_R
>
struct
opencl_fn0
{
typedef
_R
(
*
FN
)();
static
_R
switch_fn
()
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
(
*
FN
)(
_T1
);
static
_R
switch_fn
(
_T1
p1
)
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
(
*
FN
)(
_T1
,
_T2
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
,
_T8
p8
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
,
_T8
p8
,
_T9
p9
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
,
_T8
p8
,
_T9
p9
,
_T10
p10
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
,
_T11
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
,
_T8
p8
,
_T9
p9
,
_T10
p10
,
_T11
p11
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
,
_T11
,
_T12
);
static
_R
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
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
,
_T11
,
_T12
,
_T13
);
static
_R
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
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
,
_T11
,
_T12
,
_T13
,
_T14
);
static
_R
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
)
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clRetainContext
)(
cl_context
)
=
opencl_fn1
<
OPENCL_FN_clRetainContext
,
cl_int
,
cl_context
>::
switch_fn
;
cl_int
(
*
clReleaseContext
)(
cl_context
)
=
opencl_fn1
<
OPENCL_FN_clReleaseContext
,
cl_int
,
cl_context
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
clRetainCommandQueue
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clRetainCommandQueue
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
clReleaseCommandQueue
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clReleaseCommandQueue
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clRetainMemObject
)(
cl_mem
)
=
opencl_fn1
<
OPENCL_FN_clRetainMemObject
,
cl_int
,
cl_mem
>::
switch_fn
;
cl_int
(
*
clReleaseMemObject
)(
cl_mem
)
=
opencl_fn1
<
OPENCL_FN_clReleaseMemObject
,
cl_int
,
cl_mem
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clRetainSampler
)(
cl_sampler
)
=
opencl_fn1
<
OPENCL_FN_clRetainSampler
,
cl_int
,
cl_sampler
>::
switch_fn
;
cl_int
(
*
clReleaseSampler
)(
cl_sampler
)
=
opencl_fn1
<
OPENCL_FN_clReleaseSampler
,
cl_int
,
cl_sampler
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
clRetainProgram
)(
cl_program
)
=
opencl_fn1
<
OPENCL_FN_clRetainProgram
,
cl_int
,
cl_program
>::
switch_fn
;
cl_int
(
*
clReleaseProgram
)(
cl_program
)
=
opencl_fn1
<
OPENCL_FN_clReleaseProgram
,
cl_int
,
cl_program
>::
switch_fn
;
cl_int
(
*
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
(
*
clUnloadCompiler
)()
=
opencl_fn0
<
OPENCL_FN_clUnloadCompiler
,
cl_int
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
clCreateKernel
)(
cl_program
,
const
char
*
,
cl_int
*
)
=
opencl_fn3
<
OPENCL_FN_clCreateKernel
,
cl_kernel
,
cl_program
,
const
char
*
,
cl_int
*>::
switch_fn
;
cl_int
(
*
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
(
*
clRetainKernel
)(
cl_kernel
)
=
opencl_fn1
<
OPENCL_FN_clRetainKernel
,
cl_int
,
cl_kernel
>::
switch_fn
;
cl_int
(
*
clReleaseKernel
)(
cl_kernel
)
=
opencl_fn1
<
OPENCL_FN_clReleaseKernel
,
cl_int
,
cl_kernel
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
clWaitForEvents
)(
cl_uint
,
const
cl_event
*
)
=
opencl_fn2
<
OPENCL_FN_clWaitForEvents
,
cl_int
,
cl_uint
,
const
cl_event
*>::
switch_fn
;
cl_int
(
*
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
(
*
clCreateUserEvent
)(
cl_context
,
cl_int
*
)
=
opencl_fn2
<
OPENCL_FN_clCreateUserEvent
,
cl_event
,
cl_context
,
cl_int
*>::
switch_fn
;
cl_int
(
*
clRetainEvent
)(
cl_event
)
=
opencl_fn1
<
OPENCL_FN_clRetainEvent
,
cl_int
,
cl_event
>::
switch_fn
;
cl_int
(
*
clReleaseEvent
)(
cl_event
)
=
opencl_fn1
<
OPENCL_FN_clReleaseEvent
,
cl_int
,
cl_event
>::
switch_fn
;
cl_int
(
*
clSetUserEventStatus
)(
cl_event
,
cl_int
)
=
opencl_fn2
<
OPENCL_FN_clSetUserEventStatus
,
cl_int
,
cl_event
,
cl_int
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
clFlush
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clFlush
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
clFinish
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clFinish
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
*
(
*
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
*
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clEnqueueMarker
)(
cl_command_queue
,
cl_event
*
)
=
opencl_fn2
<
OPENCL_FN_clEnqueueMarker
,
cl_int
,
cl_command_queue
,
cl_event
*>::
switch_fn
;
cl_int
(
*
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
(
*
clEnqueueBarrier
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clEnqueueBarrier
,
cl_int
,
cl_command_queue
>::
switch_fn
;
void
*
(
*
clGetExtensionFunctionAddress
)(
const
char
*
)
=
opencl_fn1
<
OPENCL_FN_clGetExtensionFunctionAddress
,
void
*
,
const
char
*>::
switch_fn
;
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
[]
=
{
...
...
modules/ocl/src/cl_runtime/cl_runtime_opencl12_impl.hpp
View file @
2d1a6687
...
...
@@ -189,214 +189,214 @@ namespace {
template
<
int
ID
,
typename
_R
>
struct
opencl_fn0
{
typedef
_R
(
*
FN
)();
static
_R
switch_fn
()
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
(
*
FN
)(
_T1
);
static
_R
switch_fn
(
_T1
p1
)
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
(
*
FN
)(
_T1
,
_T2
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
,
_T8
p8
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
,
_T8
p8
,
_T9
p9
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
,
_T8
p8
,
_T9
p9
,
_T10
p10
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
,
_T11
);
static
_R
switch_fn
(
_T1
p1
,
_T2
p2
,
_T3
p3
,
_T4
p4
,
_T5
p5
,
_T6
p6
,
_T7
p7
,
_T8
p8
,
_T9
p9
,
_T10
p10
,
_T11
p11
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
,
_T11
,
_T12
);
static
_R
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
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
,
_T11
,
_T12
,
_T13
);
static
_R
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
)
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
(
*
FN
)(
_T1
,
_T2
,
_T3
,
_T4
,
_T5
,
_T6
,
_T7
,
_T8
,
_T9
,
_T10
,
_T11
,
_T12
,
_T13
,
_T14
);
static
_R
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
)
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
(
*
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
(
*
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
(
*
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
(
*
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_int
(
*
clCreateSubDevices
)(
cl_device_id
,
const
cl_device_partition_property
*
,
cl_uint
,
cl_device_id
*
,
cl_uint
*
)
=
opencl_fn5
<
OPENCL_FN_clCreateSubDevices
,
cl_int
,
cl_device_id
,
const
cl_device_partition_property
*
,
cl_uint
,
cl_device_id
*
,
cl_uint
*>::
switch_fn
;
cl_int
(
*
clRetainDevice
)(
cl_device_id
)
=
opencl_fn1
<
OPENCL_FN_clRetainDevice
,
cl_int
,
cl_device_id
>::
switch_fn
;
cl_int
(
*
clReleaseDevice
)(
cl_device_id
)
=
opencl_fn1
<
OPENCL_FN_clReleaseDevice
,
cl_int
,
cl_device_id
>::
switch_fn
;
cl_context
(
*
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
(
*
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
(
*
clRetainContext
)(
cl_context
)
=
opencl_fn1
<
OPENCL_FN_clRetainContext
,
cl_int
,
cl_context
>::
switch_fn
;
cl_int
(
*
clReleaseContext
)(
cl_context
)
=
opencl_fn1
<
OPENCL_FN_clReleaseContext
,
cl_int
,
cl_context
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
clRetainCommandQueue
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clRetainCommandQueue
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
clReleaseCommandQueue
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clReleaseCommandQueue
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
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_mem
(
*
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
(
*
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
(
*
clCreateImage
)(
cl_context
,
cl_mem_flags
,
const
cl_image_format
*
,
const
cl_image_desc
*
,
void
*
,
cl_int
*
)
=
opencl_fn6
<
OPENCL_FN_clCreateImage
,
cl_mem
,
cl_context
,
cl_mem_flags
,
const
cl_image_format
*
,
const
cl_image_desc
*
,
void
*
,
cl_int
*>::
switch_fn
;
cl_int
(
*
clRetainMemObject
)(
cl_mem
)
=
opencl_fn1
<
OPENCL_FN_clRetainMemObject
,
cl_int
,
cl_mem
>::
switch_fn
;
cl_int
(
*
clReleaseMemObject
)(
cl_mem
)
=
opencl_fn1
<
OPENCL_FN_clReleaseMemObject
,
cl_int
,
cl_mem
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clRetainSampler
)(
cl_sampler
)
=
opencl_fn1
<
OPENCL_FN_clRetainSampler
,
cl_int
,
cl_sampler
>::
switch_fn
;
cl_int
(
*
clReleaseSampler
)(
cl_sampler
)
=
opencl_fn1
<
OPENCL_FN_clReleaseSampler
,
cl_int
,
cl_sampler
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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_program
(
*
clCreateProgramWithBuiltInKernels
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_int
*
)
=
opencl_fn5
<
OPENCL_FN_clCreateProgramWithBuiltInKernels
,
cl_program
,
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_int
*>::
switch_fn
;
cl_int
(
*
clRetainProgram
)(
cl_program
)
=
opencl_fn1
<
OPENCL_FN_clRetainProgram
,
cl_int
,
cl_program
>::
switch_fn
;
cl_int
(
*
clReleaseProgram
)(
cl_program
)
=
opencl_fn1
<
OPENCL_FN_clReleaseProgram
,
cl_int
,
cl_program
>::
switch_fn
;
cl_int
(
*
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
(
*
clCompileProgram
)(
cl_program
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
const
char
**
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
)
=
opencl_fn9
<
OPENCL_FN_clCompileProgram
,
cl_int
,
cl_program
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
const
char
**
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*>::
switch_fn
;
cl_program
(
*
clLinkProgram
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
,
cl_int
*
)
=
opencl_fn9
<
OPENCL_FN_clLinkProgram
,
cl_program
,
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
,
cl_int
*>::
switch_fn
;
cl_int
(
*
clUnloadPlatformCompiler
)(
cl_platform_id
)
=
opencl_fn1
<
OPENCL_FN_clUnloadPlatformCompiler
,
cl_int
,
cl_platform_id
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
clCreateKernel
)(
cl_program
,
const
char
*
,
cl_int
*
)
=
opencl_fn3
<
OPENCL_FN_clCreateKernel
,
cl_kernel
,
cl_program
,
const
char
*
,
cl_int
*>::
switch_fn
;
cl_int
(
*
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
(
*
clRetainKernel
)(
cl_kernel
)
=
opencl_fn1
<
OPENCL_FN_clRetainKernel
,
cl_int
,
cl_kernel
>::
switch_fn
;
cl_int
(
*
clReleaseKernel
)(
cl_kernel
)
=
opencl_fn1
<
OPENCL_FN_clReleaseKernel
,
cl_int
,
cl_kernel
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
clGetKernelArgInfo
)(
cl_kernel
,
cl_uint
,
cl_kernel_arg_info
,
size_t
,
void
*
,
size_t
*
)
=
opencl_fn6
<
OPENCL_FN_clGetKernelArgInfo
,
cl_int
,
cl_kernel
,
cl_uint
,
cl_kernel_arg_info
,
size_t
,
void
*
,
size_t
*>::
switch_fn
;
cl_int
(
*
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
(
*
clWaitForEvents
)(
cl_uint
,
const
cl_event
*
)
=
opencl_fn2
<
OPENCL_FN_clWaitForEvents
,
cl_int
,
cl_uint
,
const
cl_event
*>::
switch_fn
;
cl_int
(
*
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
(
*
clCreateUserEvent
)(
cl_context
,
cl_int
*
)
=
opencl_fn2
<
OPENCL_FN_clCreateUserEvent
,
cl_event
,
cl_context
,
cl_int
*>::
switch_fn
;
cl_int
(
*
clRetainEvent
)(
cl_event
)
=
opencl_fn1
<
OPENCL_FN_clRetainEvent
,
cl_int
,
cl_event
>::
switch_fn
;
cl_int
(
*
clReleaseEvent
)(
cl_event
)
=
opencl_fn1
<
OPENCL_FN_clReleaseEvent
,
cl_int
,
cl_event
>::
switch_fn
;
cl_int
(
*
clSetUserEventStatus
)(
cl_event
,
cl_int
)
=
opencl_fn2
<
OPENCL_FN_clSetUserEventStatus
,
cl_int
,
cl_event
,
cl_int
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
clFlush
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clFlush
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
clFinish
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clFinish
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clEnqueueFillBuffer
)(
cl_command_queue
,
cl_mem
,
const
void
*
,
size_t
,
size_t
,
size_t
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn9
<
OPENCL_FN_clEnqueueFillBuffer
,
cl_int
,
cl_command_queue
,
cl_mem
,
const
void
*
,
size_t
,
size_t
,
size_t
,
cl_uint
,
const
cl_event
*
,
cl_event
*>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
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
(
*
clEnqueueFillImage
)(
cl_command_queue
,
cl_mem
,
const
void
*
,
const
size_t
*
,
const
size_t
*
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn8
<
OPENCL_FN_clEnqueueFillImage
,
cl_int
,
cl_command_queue
,
cl_mem
,
const
void
*
,
const
size_t
*
,
const
size_t
*
,
cl_uint
,
const
cl_event
*
,
cl_event
*>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
*
(
*
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
*
(
*
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
(
*
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
(
*
clEnqueueMigrateMemObjects
)(
cl_command_queue
,
cl_uint
,
const
cl_mem
*
,
cl_mem_migration_flags
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn7
<
OPENCL_FN_clEnqueueMigrateMemObjects
,
cl_int
,
cl_command_queue
,
cl_uint
,
const
cl_mem
*
,
cl_mem_migration_flags
,
cl_uint
,
const
cl_event
*
,
cl_event
*>::
switch_fn
;
cl_int
(
*
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
(
*
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
(
*
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
(
*
clEnqueueMarkerWithWaitList
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn4
<
OPENCL_FN_clEnqueueMarkerWithWaitList
,
cl_int
,
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*>::
switch_fn
;
cl_int
(
*
clEnqueueBarrierWithWaitList
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn4
<
OPENCL_FN_clEnqueueBarrierWithWaitList
,
cl_int
,
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*>::
switch_fn
;
void
*
(
*
clGetExtensionFunctionAddressForPlatform
)(
cl_platform_id
,
const
char
*
)
=
opencl_fn2
<
OPENCL_FN_clGetExtensionFunctionAddressForPlatform
,
void
*
,
cl_platform_id
,
const
char
*>::
switch_fn
;
cl_mem
(
*
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
(
*
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
(
*
clEnqueueMarker
)(
cl_command_queue
,
cl_event
*
)
=
opencl_fn2
<
OPENCL_FN_clEnqueueMarker
,
cl_int
,
cl_command_queue
,
cl_event
*>::
switch_fn
;
cl_int
(
*
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
(
*
clEnqueueBarrier
)(
cl_command_queue
)
=
opencl_fn1
<
OPENCL_FN_clEnqueueBarrier
,
cl_int
,
cl_command_queue
>::
switch_fn
;
cl_int
(
*
clUnloadCompiler
)()
=
opencl_fn0
<
OPENCL_FN_clUnloadCompiler
,
cl_int
>::
switch_fn
;
void
*
(
*
clGetExtensionFunctionAddress
)(
const
char
*
)
=
opencl_fn1
<
OPENCL_FN_clGetExtensionFunctionAddress
,
void
*
,
const
char
*>::
switch_fn
;
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_int
(
CL_API_CALL
*
clCreateSubDevices
)(
cl_device_id
,
const
cl_device_partition_property
*
,
cl_uint
,
cl_device_id
*
,
cl_uint
*
)
=
opencl_fn5
<
OPENCL_FN_clCreateSubDevices
,
cl_int
,
cl_device_id
,
const
cl_device_partition_property
*
,
cl_uint
,
cl_device_id
*
,
cl_uint
*>::
switch_fn
;
cl_int
(
CL_API_CALL
*
clRetainDevice
)(
cl_device_id
)
=
opencl_fn1
<
OPENCL_FN_clRetainDevice
,
cl_int
,
cl_device_id
>::
switch_fn
;
cl_int
(
CL_API_CALL
*
clReleaseDevice
)(
cl_device_id
)
=
opencl_fn1
<
OPENCL_FN_clReleaseDevice
,
cl_int
,
cl_device_id
>::
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_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
*
clCreateImage
)(
cl_context
,
cl_mem_flags
,
const
cl_image_format
*
,
const
cl_image_desc
*
,
void
*
,
cl_int
*
)
=
opencl_fn6
<
OPENCL_FN_clCreateImage
,
cl_mem
,
cl_context
,
cl_mem_flags
,
const
cl_image_format
*
,
const
cl_image_desc
*
,
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_program
(
CL_API_CALL
*
clCreateProgramWithBuiltInKernels
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_int
*
)
=
opencl_fn5
<
OPENCL_FN_clCreateProgramWithBuiltInKernels
,
cl_program
,
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
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
*
clCompileProgram
)(
cl_program
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
const
char
**
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
)
=
opencl_fn9
<
OPENCL_FN_clCompileProgram
,
cl_int
,
cl_program
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
const
char
**
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*>::
switch_fn
;
cl_program
(
CL_API_CALL
*
clLinkProgram
)(
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
,
cl_int
*
)
=
opencl_fn9
<
OPENCL_FN_clLinkProgram
,
cl_program
,
cl_context
,
cl_uint
,
const
cl_device_id
*
,
const
char
*
,
cl_uint
,
const
cl_program
*
,
void
(
CL_CALLBACK
*
)
(
cl_program
,
void
*
),
void
*
,
cl_int
*>::
switch_fn
;
cl_int
(
CL_API_CALL
*
clUnloadPlatformCompiler
)(
cl_platform_id
)
=
opencl_fn1
<
OPENCL_FN_clUnloadPlatformCompiler
,
cl_int
,
cl_platform_id
>::
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
*
clGetKernelArgInfo
)(
cl_kernel
,
cl_uint
,
cl_kernel_arg_info
,
size_t
,
void
*
,
size_t
*
)
=
opencl_fn6
<
OPENCL_FN_clGetKernelArgInfo
,
cl_int
,
cl_kernel
,
cl_uint
,
cl_kernel_arg_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
*
clEnqueueFillBuffer
)(
cl_command_queue
,
cl_mem
,
const
void
*
,
size_t
,
size_t
,
size_t
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn9
<
OPENCL_FN_clEnqueueFillBuffer
,
cl_int
,
cl_command_queue
,
cl_mem
,
const
void
*
,
size_t
,
size_t
,
size_t
,
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
*
clEnqueueFillImage
)(
cl_command_queue
,
cl_mem
,
const
void
*
,
const
size_t
*
,
const
size_t
*
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn8
<
OPENCL_FN_clEnqueueFillImage
,
cl_int
,
cl_command_queue
,
cl_mem
,
const
void
*
,
const
size_t
*
,
const
size_t
*
,
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
*
clEnqueueMigrateMemObjects
)(
cl_command_queue
,
cl_uint
,
const
cl_mem
*
,
cl_mem_migration_flags
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn7
<
OPENCL_FN_clEnqueueMigrateMemObjects
,
cl_int
,
cl_command_queue
,
cl_uint
,
const
cl_mem
*
,
cl_mem_migration_flags
,
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
*
clEnqueueMarkerWithWaitList
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn4
<
OPENCL_FN_clEnqueueMarkerWithWaitList
,
cl_int
,
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*>::
switch_fn
;
cl_int
(
CL_API_CALL
*
clEnqueueBarrierWithWaitList
)(
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*
)
=
opencl_fn4
<
OPENCL_FN_clEnqueueBarrierWithWaitList
,
cl_int
,
cl_command_queue
,
cl_uint
,
const
cl_event
*
,
cl_event
*>::
switch_fn
;
void
*
(
CL_API_CALL
*
clGetExtensionFunctionAddressForPlatform
)(
cl_platform_id
,
const
char
*
)
=
opencl_fn2
<
OPENCL_FN_clGetExtensionFunctionAddressForPlatform
,
void
*
,
cl_platform_id
,
const
char
*>::
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
*
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
;
cl_int
(
CL_API_CALL
*
clUnloadCompiler
)()
=
opencl_fn0
<
OPENCL_FN_clUnloadCompiler
,
cl_int
>::
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
[]
=
{
...
...
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