1 /* Automatically generated from OpenCL registry files; DO NOT EDIT! */
8 #include "unix_private.h"
10 static cl_mem WINAPI
wrap_clCreateBuffer( cl_context context
, cl_mem_flags flags
, size_t size
, void* host_ptr
, cl_int
* errcode_ret
)
12 return clCreateBuffer( context
, flags
, size
, host_ptr
, errcode_ret
);
15 static cl_command_queue WINAPI
wrap_clCreateCommandQueue( cl_context context
, cl_device_id device
, cl_command_queue_properties properties
, cl_int
* errcode_ret
)
17 return clCreateCommandQueue( context
, device
, properties
, errcode_ret
);
20 static cl_mem WINAPI
wrap_clCreateImage( cl_context context
, cl_mem_flags flags
, const cl_image_format
* image_format
, const cl_image_desc
* image_desc
, void* host_ptr
, cl_int
* errcode_ret
)
22 return clCreateImage( context
, flags
, image_format
, image_desc
, host_ptr
, errcode_ret
);
25 static cl_mem WINAPI
wrap_clCreateImage2D( cl_context context
, cl_mem_flags flags
, const cl_image_format
* image_format
, size_t image_width
, size_t image_height
, size_t image_row_pitch
, void* host_ptr
, cl_int
* errcode_ret
)
27 return clCreateImage2D( context
, flags
, image_format
, image_width
, image_height
, image_row_pitch
, host_ptr
, errcode_ret
);
30 static cl_mem WINAPI
wrap_clCreateImage3D( cl_context context
, cl_mem_flags flags
, const cl_image_format
* image_format
, size_t image_width
, size_t image_height
, size_t image_depth
, size_t image_row_pitch
, size_t image_slice_pitch
, void* host_ptr
, cl_int
* errcode_ret
)
32 return clCreateImage3D( context
, flags
, image_format
, image_width
, image_height
, image_depth
, image_row_pitch
, image_slice_pitch
, host_ptr
, errcode_ret
);
35 static cl_kernel WINAPI
wrap_clCreateKernel( cl_program program
, const char* kernel_name
, cl_int
* errcode_ret
)
37 return clCreateKernel( program
, kernel_name
, errcode_ret
);
40 static cl_int WINAPI
wrap_clCreateKernelsInProgram( cl_program program
, cl_uint num_kernels
, cl_kernel
* kernels
, cl_uint
* num_kernels_ret
)
42 return clCreateKernelsInProgram( program
, num_kernels
, kernels
, num_kernels_ret
);
45 static cl_program WINAPI
wrap_clCreateProgramWithBinary( cl_context context
, cl_uint num_devices
, const cl_device_id
* device_list
, const size_t* lengths
, const unsigned char** binaries
, cl_int
* binary_status
, cl_int
* errcode_ret
)
47 return clCreateProgramWithBinary( context
, num_devices
, device_list
, lengths
, binaries
, binary_status
, errcode_ret
);
50 static cl_program WINAPI
wrap_clCreateProgramWithBuiltInKernels( cl_context context
, cl_uint num_devices
, const cl_device_id
* device_list
, const char* kernel_names
, cl_int
* errcode_ret
)
52 return clCreateProgramWithBuiltInKernels( context
, num_devices
, device_list
, kernel_names
, errcode_ret
);
55 static cl_program WINAPI
wrap_clCreateProgramWithSource( cl_context context
, cl_uint count
, const char** strings
, const size_t* lengths
, cl_int
* errcode_ret
)
57 return clCreateProgramWithSource( context
, count
, strings
, lengths
, errcode_ret
);
60 static cl_sampler WINAPI
wrap_clCreateSampler( cl_context context
, cl_bool normalized_coords
, cl_addressing_mode addressing_mode
, cl_filter_mode filter_mode
, cl_int
* errcode_ret
)
62 return clCreateSampler( context
, normalized_coords
, addressing_mode
, filter_mode
, errcode_ret
);
65 static cl_mem WINAPI
wrap_clCreateSubBuffer( cl_mem buffer
, cl_mem_flags flags
, cl_buffer_create_type buffer_create_type
, const void* buffer_create_info
, cl_int
* errcode_ret
)
67 return clCreateSubBuffer( buffer
, flags
, buffer_create_type
, buffer_create_info
, errcode_ret
);
70 static cl_int WINAPI
wrap_clCreateSubDevices( cl_device_id in_device
, const cl_device_partition_property
* properties
, cl_uint num_devices
, cl_device_id
* out_devices
, cl_uint
* num_devices_ret
)
72 return clCreateSubDevices( in_device
, properties
, num_devices
, out_devices
, num_devices_ret
);
75 static cl_event WINAPI
wrap_clCreateUserEvent( cl_context context
, cl_int
* errcode_ret
)
77 return clCreateUserEvent( context
, errcode_ret
);
80 static cl_int WINAPI
wrap_clEnqueueBarrier( cl_command_queue command_queue
)
82 return clEnqueueBarrier( command_queue
);
85 static cl_int WINAPI
wrap_clEnqueueBarrierWithWaitList( cl_command_queue command_queue
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
87 return clEnqueueBarrierWithWaitList( command_queue
, num_events_in_wait_list
, event_wait_list
, event
);
90 static cl_int WINAPI
wrap_clEnqueueCopyBuffer( cl_command_queue command_queue
, cl_mem src_buffer
, cl_mem dst_buffer
, size_t src_offset
, size_t dst_offset
, size_t size
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
92 return clEnqueueCopyBuffer( command_queue
, src_buffer
, dst_buffer
, src_offset
, dst_offset
, size
, num_events_in_wait_list
, event_wait_list
, event
);
95 static cl_int WINAPI
wrap_clEnqueueCopyBufferRect( cl_command_queue command_queue
, cl_mem src_buffer
, cl_mem dst_buffer
, const size_t* src_origin
, const size_t* dst_origin
, const size_t* region
, size_t src_row_pitch
, size_t src_slice_pitch
, size_t dst_row_pitch
, size_t dst_slice_pitch
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
97 return clEnqueueCopyBufferRect( command_queue
, src_buffer
, dst_buffer
, src_origin
, dst_origin
, region
, src_row_pitch
, src_slice_pitch
, dst_row_pitch
, dst_slice_pitch
, num_events_in_wait_list
, event_wait_list
, event
);
100 static cl_int WINAPI
wrap_clEnqueueCopyBufferToImage( cl_command_queue command_queue
, cl_mem src_buffer
, cl_mem dst_image
, size_t src_offset
, const size_t* dst_origin
, const size_t* region
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
102 return clEnqueueCopyBufferToImage( command_queue
, src_buffer
, dst_image
, src_offset
, dst_origin
, region
, num_events_in_wait_list
, event_wait_list
, event
);
105 static cl_int WINAPI
wrap_clEnqueueCopyImage( cl_command_queue command_queue
, cl_mem src_image
, cl_mem dst_image
, const size_t* src_origin
, const size_t* dst_origin
, const size_t* region
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
107 return clEnqueueCopyImage( command_queue
, src_image
, dst_image
, src_origin
, dst_origin
, region
, num_events_in_wait_list
, event_wait_list
, event
);
110 static cl_int WINAPI
wrap_clEnqueueCopyImageToBuffer( cl_command_queue command_queue
, cl_mem src_image
, cl_mem dst_buffer
, const size_t* src_origin
, const size_t* region
, size_t dst_offset
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
112 return clEnqueueCopyImageToBuffer( command_queue
, src_image
, dst_buffer
, src_origin
, region
, dst_offset
, num_events_in_wait_list
, event_wait_list
, event
);
115 static cl_int WINAPI
wrap_clEnqueueFillBuffer( cl_command_queue command_queue
, cl_mem buffer
, const void* pattern
, size_t pattern_size
, size_t offset
, size_t size
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
117 return clEnqueueFillBuffer( command_queue
, buffer
, pattern
, pattern_size
, offset
, size
, num_events_in_wait_list
, event_wait_list
, event
);
120 static cl_int WINAPI
wrap_clEnqueueFillImage( cl_command_queue command_queue
, cl_mem image
, const void* fill_color
, const size_t* origin
, const size_t* region
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
122 return clEnqueueFillImage( command_queue
, image
, fill_color
, origin
, region
, num_events_in_wait_list
, event_wait_list
, event
);
125 static void* WINAPI
wrap_clEnqueueMapBuffer( cl_command_queue command_queue
, cl_mem buffer
, cl_bool blocking_map
, cl_map_flags map_flags
, size_t offset
, size_t size
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
, cl_int
* errcode_ret
)
127 return clEnqueueMapBuffer( command_queue
, buffer
, blocking_map
, map_flags
, offset
, size
, num_events_in_wait_list
, event_wait_list
, event
, errcode_ret
);
130 static void* WINAPI
wrap_clEnqueueMapImage( cl_command_queue command_queue
, cl_mem image
, cl_bool blocking_map
, cl_map_flags map_flags
, const size_t* origin
, const size_t* region
, size_t* image_row_pitch
, size_t* image_slice_pitch
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
, cl_int
* errcode_ret
)
132 return clEnqueueMapImage( command_queue
, image
, blocking_map
, map_flags
, origin
, region
, image_row_pitch
, image_slice_pitch
, num_events_in_wait_list
, event_wait_list
, event
, errcode_ret
);
135 static cl_int WINAPI
wrap_clEnqueueMarker( cl_command_queue command_queue
, cl_event
* event
)
137 return clEnqueueMarker( command_queue
, event
);
140 static cl_int WINAPI
wrap_clEnqueueMarkerWithWaitList( cl_command_queue command_queue
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
142 return clEnqueueMarkerWithWaitList( command_queue
, num_events_in_wait_list
, event_wait_list
, event
);
145 static cl_int WINAPI
wrap_clEnqueueMigrateMemObjects( cl_command_queue command_queue
, cl_uint num_mem_objects
, const cl_mem
* mem_objects
, cl_mem_migration_flags flags
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
147 return clEnqueueMigrateMemObjects( command_queue
, num_mem_objects
, mem_objects
, flags
, num_events_in_wait_list
, event_wait_list
, event
);
150 static cl_int WINAPI
wrap_clEnqueueNDRangeKernel( cl_command_queue command_queue
, cl_kernel kernel
, cl_uint work_dim
, const size_t* global_work_offset
, const size_t* global_work_size
, const size_t* local_work_size
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
152 return clEnqueueNDRangeKernel( command_queue
, kernel
, work_dim
, global_work_offset
, global_work_size
, local_work_size
, num_events_in_wait_list
, event_wait_list
, event
);
155 static cl_int WINAPI
wrap_clEnqueueReadBuffer( cl_command_queue command_queue
, cl_mem buffer
, cl_bool blocking_read
, size_t offset
, size_t size
, void* ptr
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
157 return clEnqueueReadBuffer( command_queue
, buffer
, blocking_read
, offset
, size
, ptr
, num_events_in_wait_list
, event_wait_list
, event
);
160 static cl_int WINAPI
wrap_clEnqueueReadBufferRect( cl_command_queue command_queue
, cl_mem buffer
, cl_bool blocking_read
, const size_t* buffer_origin
, const size_t* host_origin
, const size_t* region
, size_t buffer_row_pitch
, size_t buffer_slice_pitch
, size_t host_row_pitch
, size_t host_slice_pitch
, void* ptr
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
162 return clEnqueueReadBufferRect( command_queue
, buffer
, blocking_read
, buffer_origin
, host_origin
, region
, buffer_row_pitch
, buffer_slice_pitch
, host_row_pitch
, host_slice_pitch
, ptr
, num_events_in_wait_list
, event_wait_list
, event
);
165 static cl_int WINAPI
wrap_clEnqueueReadImage( cl_command_queue command_queue
, cl_mem image
, cl_bool blocking_read
, const size_t* origin
, const size_t* region
, size_t row_pitch
, size_t slice_pitch
, void* ptr
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
167 return clEnqueueReadImage( command_queue
, image
, blocking_read
, origin
, region
, row_pitch
, slice_pitch
, ptr
, num_events_in_wait_list
, event_wait_list
, event
);
170 static cl_int WINAPI
wrap_clEnqueueTask( cl_command_queue command_queue
, cl_kernel kernel
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
172 return clEnqueueTask( command_queue
, kernel
, num_events_in_wait_list
, event_wait_list
, event
);
175 static cl_int WINAPI
wrap_clEnqueueUnmapMemObject( cl_command_queue command_queue
, cl_mem memobj
, void* mapped_ptr
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
177 return clEnqueueUnmapMemObject( command_queue
, memobj
, mapped_ptr
, num_events_in_wait_list
, event_wait_list
, event
);
180 static cl_int WINAPI
wrap_clEnqueueWaitForEvents( cl_command_queue command_queue
, cl_uint num_events
, const cl_event
* event_list
)
182 return clEnqueueWaitForEvents( command_queue
, num_events
, event_list
);
185 static cl_int WINAPI
wrap_clEnqueueWriteBuffer( cl_command_queue command_queue
, cl_mem buffer
, cl_bool blocking_write
, size_t offset
, size_t size
, const void* ptr
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
187 return clEnqueueWriteBuffer( command_queue
, buffer
, blocking_write
, offset
, size
, ptr
, num_events_in_wait_list
, event_wait_list
, event
);
190 static cl_int WINAPI
wrap_clEnqueueWriteBufferRect( cl_command_queue command_queue
, cl_mem buffer
, cl_bool blocking_write
, const size_t* buffer_origin
, const size_t* host_origin
, const size_t* region
, size_t buffer_row_pitch
, size_t buffer_slice_pitch
, size_t host_row_pitch
, size_t host_slice_pitch
, const void* ptr
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
192 return clEnqueueWriteBufferRect( command_queue
, buffer
, blocking_write
, buffer_origin
, host_origin
, region
, buffer_row_pitch
, buffer_slice_pitch
, host_row_pitch
, host_slice_pitch
, ptr
, num_events_in_wait_list
, event_wait_list
, event
);
195 static cl_int WINAPI
wrap_clEnqueueWriteImage( cl_command_queue command_queue
, cl_mem image
, cl_bool blocking_write
, const size_t* origin
, const size_t* region
, size_t input_row_pitch
, size_t input_slice_pitch
, const void* ptr
, cl_uint num_events_in_wait_list
, const cl_event
* event_wait_list
, cl_event
* event
)
197 return clEnqueueWriteImage( command_queue
, image
, blocking_write
, origin
, region
, input_row_pitch
, input_slice_pitch
, ptr
, num_events_in_wait_list
, event_wait_list
, event
);
200 static cl_int WINAPI
wrap_clFinish( cl_command_queue command_queue
)
202 return clFinish( command_queue
);
205 static cl_int WINAPI
wrap_clFlush( cl_command_queue command_queue
)
207 return clFlush( command_queue
);
210 static cl_int WINAPI
wrap_clGetCommandQueueInfo( cl_command_queue command_queue
, cl_command_queue_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
212 return clGetCommandQueueInfo( command_queue
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
215 static cl_int WINAPI
wrap_clGetContextInfo( cl_context context
, cl_context_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
217 return clGetContextInfo( context
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
220 static cl_int WINAPI
wrap_clGetDeviceIDs( cl_platform_id platform
, cl_device_type device_type
, cl_uint num_entries
, cl_device_id
* devices
, cl_uint
* num_devices
)
222 return clGetDeviceIDs( platform
, device_type
, num_entries
, devices
, num_devices
);
225 static cl_int WINAPI
wrap_clGetDeviceInfo( cl_device_id device
, cl_device_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
227 return clGetDeviceInfo( device
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
230 static cl_int WINAPI
wrap_clGetEventInfo( cl_event event
, cl_event_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
232 return clGetEventInfo( event
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
235 static cl_int WINAPI
wrap_clGetEventProfilingInfo( cl_event event
, cl_profiling_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
237 return clGetEventProfilingInfo( event
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
240 static cl_int WINAPI
wrap_clGetImageInfo( cl_mem image
, cl_image_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
242 return clGetImageInfo( image
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
245 static cl_int WINAPI
wrap_clGetKernelArgInfo( cl_kernel kernel
, cl_uint arg_index
, cl_kernel_arg_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
247 return clGetKernelArgInfo( kernel
, arg_index
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
250 static cl_int WINAPI
wrap_clGetKernelInfo( cl_kernel kernel
, cl_kernel_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
252 return clGetKernelInfo( kernel
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
255 static cl_int WINAPI
wrap_clGetKernelWorkGroupInfo( cl_kernel kernel
, cl_device_id device
, cl_kernel_work_group_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
257 return clGetKernelWorkGroupInfo( kernel
, device
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
260 static cl_int WINAPI
wrap_clGetMemObjectInfo( cl_mem memobj
, cl_mem_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
262 return clGetMemObjectInfo( memobj
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
265 static cl_int WINAPI
wrap_clGetPlatformIDs( cl_uint num_entries
, cl_platform_id
* platforms
, cl_uint
* num_platforms
)
267 return clGetPlatformIDs( num_entries
, platforms
, num_platforms
);
270 static cl_int WINAPI
wrap_clGetPlatformInfo( cl_platform_id platform
, cl_platform_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
272 return clGetPlatformInfo( platform
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
275 static cl_int WINAPI
wrap_clGetProgramBuildInfo( cl_program program
, cl_device_id device
, cl_program_build_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
277 return clGetProgramBuildInfo( program
, device
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
280 static cl_int WINAPI
wrap_clGetProgramInfo( cl_program program
, cl_program_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
282 return clGetProgramInfo( program
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
285 static cl_int WINAPI
wrap_clGetSamplerInfo( cl_sampler sampler
, cl_sampler_info param_name
, size_t param_value_size
, void* param_value
, size_t* param_value_size_ret
)
287 return clGetSamplerInfo( sampler
, param_name
, param_value_size
, param_value
, param_value_size_ret
);
290 static cl_int WINAPI
wrap_clGetSupportedImageFormats( cl_context context
, cl_mem_flags flags
, cl_mem_object_type image_type
, cl_uint num_entries
, cl_image_format
* image_formats
, cl_uint
* num_image_formats
)
292 return clGetSupportedImageFormats( context
, flags
, image_type
, num_entries
, image_formats
, num_image_formats
);
295 static cl_int WINAPI
wrap_clReleaseCommandQueue( cl_command_queue command_queue
)
297 return clReleaseCommandQueue( command_queue
);
300 static cl_int WINAPI
wrap_clReleaseContext( cl_context context
)
302 return clReleaseContext( context
);
305 static cl_int WINAPI
wrap_clReleaseDevice( cl_device_id device
)
307 return clReleaseDevice( device
);
310 static cl_int WINAPI
wrap_clReleaseEvent( cl_event event
)
312 return clReleaseEvent( event
);
315 static cl_int WINAPI
wrap_clReleaseKernel( cl_kernel kernel
)
317 return clReleaseKernel( kernel
);
320 static cl_int WINAPI
wrap_clReleaseMemObject( cl_mem memobj
)
322 return clReleaseMemObject( memobj
);
325 static cl_int WINAPI
wrap_clReleaseProgram( cl_program program
)
327 return clReleaseProgram( program
);
330 static cl_int WINAPI
wrap_clReleaseSampler( cl_sampler sampler
)
332 return clReleaseSampler( sampler
);
335 static cl_int WINAPI
wrap_clRetainCommandQueue( cl_command_queue command_queue
)
337 return clRetainCommandQueue( command_queue
);
340 static cl_int WINAPI
wrap_clRetainContext( cl_context context
)
342 return clRetainContext( context
);
345 static cl_int WINAPI
wrap_clRetainDevice( cl_device_id device
)
347 return clRetainDevice( device
);
350 static cl_int WINAPI
wrap_clRetainEvent( cl_event event
)
352 return clRetainEvent( event
);
355 static cl_int WINAPI
wrap_clRetainKernel( cl_kernel kernel
)
357 return clRetainKernel( kernel
);
360 static cl_int WINAPI
wrap_clRetainMemObject( cl_mem memobj
)
362 return clRetainMemObject( memobj
);
365 static cl_int WINAPI
wrap_clRetainProgram( cl_program program
)
367 return clRetainProgram( program
);
370 static cl_int WINAPI
wrap_clRetainSampler( cl_sampler sampler
)
372 return clRetainSampler( sampler
);
375 static cl_int WINAPI
wrap_clSetKernelArg( cl_kernel kernel
, cl_uint arg_index
, size_t arg_size
, const void* arg_value
)
377 return clSetKernelArg( kernel
, arg_index
, arg_size
, arg_value
);
380 static cl_int WINAPI
wrap_clSetUserEventStatus( cl_event event
, cl_int execution_status
)
382 return clSetUserEventStatus( event
, execution_status
);
385 static cl_int WINAPI
wrap_clUnloadCompiler( void )
387 return clUnloadCompiler();
390 static cl_int WINAPI
wrap_clUnloadPlatformCompiler( cl_platform_id platform
)
392 return clUnloadPlatformCompiler( platform
);
395 static cl_int WINAPI
wrap_clWaitForEvents( cl_uint num_events
, const cl_event
* event_list
)
397 return clWaitForEvents( num_events
, event_list
);
400 const struct opencl_funcs funcs
=
403 wrap_clCompileProgram
,
405 wrap_clCreateCommandQueue
,
406 wrap_clCreateContext
,
407 wrap_clCreateContextFromType
,
409 wrap_clCreateImage2D
,
410 wrap_clCreateImage3D
,
412 wrap_clCreateKernelsInProgram
,
413 wrap_clCreateProgramWithBinary
,
414 wrap_clCreateProgramWithBuiltInKernels
,
415 wrap_clCreateProgramWithSource
,
416 wrap_clCreateSampler
,
417 wrap_clCreateSubBuffer
,
418 wrap_clCreateSubDevices
,
419 wrap_clCreateUserEvent
,
420 wrap_clEnqueueBarrier
,
421 wrap_clEnqueueBarrierWithWaitList
,
422 wrap_clEnqueueCopyBuffer
,
423 wrap_clEnqueueCopyBufferRect
,
424 wrap_clEnqueueCopyBufferToImage
,
425 wrap_clEnqueueCopyImage
,
426 wrap_clEnqueueCopyImageToBuffer
,
427 wrap_clEnqueueFillBuffer
,
428 wrap_clEnqueueFillImage
,
429 wrap_clEnqueueMapBuffer
,
430 wrap_clEnqueueMapImage
,
431 wrap_clEnqueueMarker
,
432 wrap_clEnqueueMarkerWithWaitList
,
433 wrap_clEnqueueMigrateMemObjects
,
434 wrap_clEnqueueNDRangeKernel
,
435 wrap_clEnqueueNativeKernel
,
436 wrap_clEnqueueReadBuffer
,
437 wrap_clEnqueueReadBufferRect
,
438 wrap_clEnqueueReadImage
,
440 wrap_clEnqueueUnmapMemObject
,
441 wrap_clEnqueueWaitForEvents
,
442 wrap_clEnqueueWriteBuffer
,
443 wrap_clEnqueueWriteBufferRect
,
444 wrap_clEnqueueWriteImage
,
447 wrap_clGetCommandQueueInfo
,
448 wrap_clGetContextInfo
,
450 wrap_clGetDeviceInfo
,
452 wrap_clGetEventProfilingInfo
,
454 wrap_clGetKernelArgInfo
,
455 wrap_clGetKernelInfo
,
456 wrap_clGetKernelWorkGroupInfo
,
457 wrap_clGetMemObjectInfo
,
458 wrap_clGetPlatformIDs
,
459 wrap_clGetPlatformInfo
,
460 wrap_clGetProgramBuildInfo
,
461 wrap_clGetProgramInfo
,
462 wrap_clGetSamplerInfo
,
463 wrap_clGetSupportedImageFormats
,
465 wrap_clReleaseCommandQueue
,
466 wrap_clReleaseContext
,
467 wrap_clReleaseDevice
,
469 wrap_clReleaseKernel
,
470 wrap_clReleaseMemObject
,
471 wrap_clReleaseProgram
,
472 wrap_clReleaseSampler
,
473 wrap_clRetainCommandQueue
,
474 wrap_clRetainContext
,
478 wrap_clRetainMemObject
,
479 wrap_clRetainProgram
,
480 wrap_clRetainSampler
,
481 wrap_clSetEventCallback
,
483 wrap_clSetMemObjectDestructorCallback
,
484 wrap_clSetUserEventStatus
,
485 wrap_clUnloadCompiler
,
486 wrap_clUnloadPlatformCompiler
,
487 wrap_clWaitForEvents
,