OpenCl

Struct OpenCl 

Source
pub struct OpenCl { /* private fields */ }
Expand description

Wrapper for the OpenCL API functions. These functions are marked as optional to avoid library load failure if a function is not present in the library.

Implementations§

Source§

impl OpenCl

Source

pub fn clGetPlatformIDs( &self, num_entries: cl_uint, platforms: *mut cl_platform_id, num_platforms: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clGetPlatformIDs(&self) -> bool

Source

pub fn clGetPlatformInfo( &self, platform: cl_platform_id, param_name: cl_platform_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetPlatformInfo(&self) -> bool

Source

pub fn clGetDeviceIDs( &self, platform: cl_platform_id, device_type: cl_device_type, num_entries: cl_uint, devices: *mut cl_device_id, num_devices: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clGetDeviceIDs(&self) -> bool

Source

pub fn clGetDeviceInfo( &self, device: cl_device_id, param_name: cl_device_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetDeviceInfo(&self) -> bool

Source

pub fn clCreateSubDevices( &self, in_device: cl_device_id, properties: *const cl_device_partition_property, num_devices: cl_uint, out_devices: *mut cl_device_id, num_devices_ret: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clCreateSubDevices(&self) -> bool

Source

pub fn clRetainDevice(&self, device: cl_device_id) -> Option<cl_int>

Source

pub fn has_clRetainDevice(&self) -> bool

Source

pub fn clReleaseDevice(&self, device: cl_device_id) -> Option<cl_int>

Source

pub fn has_clReleaseDevice(&self) -> bool

Source

pub fn clSetDefaultDeviceCommandQueue( &self, context: cl_context, device: cl_device_id, command_queue: cl_command_queue, ) -> Option<cl_int>

Source

pub fn has_clSetDefaultDeviceCommandQueue(&self) -> bool

Source

pub fn clGetDeviceAndHostTimer( &self, device: cl_device_id, device_timestamp: *mut cl_ulong, host_timestamp: *mut cl_ulong, ) -> Option<cl_int>

Source

pub fn has_clGetDeviceAndHostTimer(&self) -> bool

Source

pub fn clGetHostTimer( &self, device: cl_device_id, host_timestamp: *mut cl_ulong, ) -> Option<cl_int>

Source

pub fn has_clGetHostTimer(&self) -> bool

Source

pub fn clCreateContext( &self, properties: *const cl_context_properties, num_devices: cl_uint, devices: *const cl_device_id, pfn_notify: Option<unsafe extern "C" fn(errinfo: *const c_char, private_info: *const c_void, cb: size_t, user_data: *mut c_void)>, user_data: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_context>

Source

pub fn has_clCreateContext(&self) -> bool

Source

pub fn clCreateContextFromType( &self, properties: *const cl_context_properties, device_type: cl_device_type, pfn_notify: Option<unsafe extern "C" fn(errinfo: *const c_char, private_info: *const c_void, cb: size_t, user_data: *mut c_void)>, user_data: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_context>

Source

pub fn has_clCreateContextFromType(&self) -> bool

Source

pub fn clRetainContext(&self, context: cl_context) -> Option<cl_int>

Source

pub fn has_clRetainContext(&self) -> bool

Source

pub fn clReleaseContext(&self, context: cl_context) -> Option<cl_int>

Source

pub fn has_clReleaseContext(&self) -> bool

Source

pub fn clGetContextInfo( &self, context: cl_context, param_name: cl_context_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetContextInfo(&self) -> bool

Source

pub fn clSetContextDestructorCallback( &self, context: cl_context, pfn_notify: Option<unsafe extern "C" fn(context: cl_context, user_data: *mut c_void)>, user_data: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clSetContextDestructorCallback(&self) -> bool

Source

pub fn clCreateCommandQueueWithProperties( &self, context: cl_context, device: cl_device_id, properties: *const cl_queue_properties, errcode_ret: *mut cl_int, ) -> Option<cl_command_queue>

Source

pub fn has_clCreateCommandQueueWithProperties(&self) -> bool

Source

pub fn clRetainCommandQueue( &self, command_queue: cl_command_queue, ) -> Option<cl_int>

Source

pub fn has_clRetainCommandQueue(&self) -> bool

Source

pub fn clReleaseCommandQueue( &self, command_queue: cl_command_queue, ) -> Option<cl_int>

Source

pub fn has_clReleaseCommandQueue(&self) -> bool

Source

pub fn clGetCommandQueueInfo( &self, command_queue: cl_command_queue, param_name: cl_command_queue_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetCommandQueueInfo(&self) -> bool

Source

pub fn clCreateBuffer( &self, context: cl_context, flags: cl_mem_flags, size: size_t, host_ptr: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateBuffer(&self) -> bool

Source

pub fn clCreateSubBuffer( &self, buffer: cl_mem, flags: cl_mem_flags, buffer_create_type: cl_buffer_create_type, buffer_create_info: *const c_void, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateSubBuffer(&self) -> bool

Source

pub fn clCreateImage( &self, context: cl_context, flags: cl_mem_flags, image_format: *const cl_image_format, image_desc: *const cl_image_desc, host_ptr: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateImage(&self) -> bool

Source

pub fn clCreatePipe( &self, context: cl_context, flags: cl_mem_flags, pipe_packet_size: cl_uint, pipe_max_packets: cl_uint, properties: *const cl_pipe_properties, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreatePipe(&self) -> bool

Source

pub fn clCreateBufferWithProperties( &self, context: cl_context, properties: *const cl_mem_properties, flags: cl_mem_flags, size: size_t, host_ptr: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateBufferWithProperties(&self) -> bool

Source

pub fn clCreateImageWithProperties( &self, context: cl_context, properties: *const cl_mem_properties, flags: cl_mem_flags, image_format: *const cl_image_format, image_desc: *const cl_image_desc, host_ptr: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateImageWithProperties(&self) -> bool

Source

pub fn clRetainMemObject(&self, memobj: cl_mem) -> Option<cl_int>

Source

pub fn has_clRetainMemObject(&self) -> bool

Source

pub fn clReleaseMemObject(&self, memobj: cl_mem) -> Option<cl_int>

Source

pub fn has_clReleaseMemObject(&self) -> bool

Source

pub fn clGetSupportedImageFormats( &self, context: cl_context, flags: cl_mem_flags, image_type: cl_mem_object_type, num_entries: cl_uint, image_formats: *mut cl_image_format, num_image_formats: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clGetSupportedImageFormats(&self) -> bool

Source

pub fn clGetMemObjectInfo( &self, memobj: cl_mem, param_name: cl_mem_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetMemObjectInfo(&self) -> bool

Source

pub fn clGetImageInfo( &self, image: cl_mem, param_name: cl_image_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetImageInfo(&self) -> bool

Source

pub fn clGetPipeInfo( &self, pipe: cl_mem, param_name: cl_pipe_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetPipeInfo(&self) -> bool

Source

pub fn clSetMemObjectDestructorCallback( &self, memobj: cl_mem, pfn_notify: Option<unsafe extern "C" fn(memobj: cl_mem, user_data: *mut c_void)>, user_data: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clSetMemObjectDestructorCallback(&self) -> bool

Source

pub fn clSVMAlloc( &self, context: cl_context, flags: cl_svm_mem_flags, size: size_t, alignment: cl_uint, ) -> Option<*mut c_void>

Source

pub fn has_clSVMAlloc(&self) -> bool

Source

pub fn clSVMFree( &self, context: cl_context, svm_pointer: *mut c_void, ) -> Option<()>

Source

pub fn has_clSVMFree(&self) -> bool

Source

pub fn clCreateSamplerWithProperties( &self, context: cl_context, normalized_coords: *const cl_sampler_properties, errcode_ret: *mut cl_int, ) -> Option<cl_sampler>

Source

pub fn has_clCreateSamplerWithProperties(&self) -> bool

Source

pub fn clRetainSampler(&self, sampler: cl_sampler) -> Option<cl_int>

Source

pub fn has_clRetainSampler(&self) -> bool

Source

pub fn clReleaseSampler(&self, sampler: cl_sampler) -> Option<cl_int>

Source

pub fn has_clReleaseSampler(&self) -> bool

Source

pub fn clGetSamplerInfo( &self, sampler: cl_sampler, param_name: cl_sampler_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetSamplerInfo(&self) -> bool

Source

pub fn clCreateProgramWithSource( &self, context: cl_context, count: cl_uint, strings: *const *const c_char, lengths: *const size_t, errcode_ret: *mut cl_int, ) -> Option<cl_program>

Source

pub fn has_clCreateProgramWithSource(&self) -> bool

Source

pub fn clCreateProgramWithBinary( &self, context: cl_context, num_devices: cl_uint, device_list: *const cl_device_id, lengths: *const size_t, binaries: *const *const c_uchar, binary_status: *mut cl_int, errcode_ret: *mut cl_int, ) -> Option<cl_program>

Source

pub fn has_clCreateProgramWithBinary(&self) -> bool

Source

pub fn clCreateProgramWithBuiltInKernels( &self, context: cl_context, num_devices: cl_uint, device_list: *const cl_device_id, kernel_names: *const c_char, errcode_ret: *mut cl_int, ) -> Option<cl_program>

Source

pub fn has_clCreateProgramWithBuiltInKernels(&self) -> bool

Source

pub fn clCreateProgramWithIL( &self, context: cl_context, il: *const c_void, length: size_t, errcode_ret: *mut cl_int, ) -> Option<cl_program>

Source

pub fn has_clCreateProgramWithIL(&self) -> bool

Source

pub fn clRetainProgram(&self, program: cl_program) -> Option<cl_int>

Source

pub fn has_clRetainProgram(&self) -> bool

Source

pub fn clReleaseProgram(&self, program: cl_program) -> Option<cl_int>

Source

pub fn has_clReleaseProgram(&self) -> bool

Source

pub fn clBuildProgram( &self, program: cl_program, num_devices: cl_uint, device_list: *const cl_device_id, options: *const c_char, pfn_notify: Option<unsafe extern "C" fn(program: cl_program, user_data: *mut c_void)>, user_data: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clBuildProgram(&self) -> bool

Source

pub fn clCompileProgram( &self, program: cl_program, num_devices: cl_uint, device_list: *const cl_device_id, options: *const c_char, num_input_headers: cl_uint, input_headers: *const cl_program, header_include_names: *const *const c_char, pfn_notify: Option<unsafe extern "C" fn(program: cl_program, user_data: *mut c_void)>, user_data: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clCompileProgram(&self) -> bool

Source

pub fn clLinkProgram( &self, context: cl_context, num_devices: cl_uint, device_list: *const cl_device_id, options: *const c_char, num_input_programs: cl_uint, input_programs: *const cl_program, pfn_notify: Option<unsafe extern "C" fn(program: cl_program, user_data: *mut c_void)>, user_data: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_program>

Source

pub fn has_clLinkProgram(&self) -> bool

Source

pub fn clSetProgramReleaseCallback( &self, program: cl_program, pfn_notify: Option<unsafe extern "C" fn(program: cl_program, user_data: *mut c_void)>, user_data: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clSetProgramReleaseCallback(&self) -> bool

Source

pub fn clSetProgramSpecializationConstant( &self, program: cl_program, spec_id: cl_uint, spec_size: size_t, spec_value: *const c_void, ) -> Option<cl_int>

Source

pub fn has_clSetProgramSpecializationConstant(&self) -> bool

Source

pub fn clUnloadPlatformCompiler( &self, platform: cl_platform_id, ) -> Option<cl_int>

Source

pub fn has_clUnloadPlatformCompiler(&self) -> bool

Source

pub fn clGetProgramInfo( &self, program: cl_program, param_name: cl_program_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetProgramInfo(&self) -> bool

Source

pub fn clGetProgramBuildInfo( &self, program: cl_program, device: cl_device_id, param_name: cl_program_build_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetProgramBuildInfo(&self) -> bool

Source

pub fn clCreateKernel( &self, program: cl_program, kernel_name: *const c_char, errcode_ret: *mut cl_int, ) -> Option<cl_kernel>

Source

pub fn has_clCreateKernel(&self) -> bool

Source

pub fn clCreateKernelsInProgram( &self, program: cl_program, num_kernels: cl_uint, kernels: *mut cl_kernel, num_kernels_ret: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clCreateKernelsInProgram(&self) -> bool

Source

pub fn clCloneKernel( &self, source_kernel: cl_kernel, errcode_ret: *mut cl_int, ) -> Option<cl_kernel>

Source

pub fn has_clCloneKernel(&self) -> bool

Source

pub fn clRetainKernel(&self, kernel: cl_kernel) -> Option<cl_int>

Source

pub fn has_clRetainKernel(&self) -> bool

Source

pub fn clReleaseKernel(&self, kernel: cl_kernel) -> Option<cl_int>

Source

pub fn has_clReleaseKernel(&self) -> bool

Source

pub fn clSetKernelArg( &self, kernel: cl_kernel, arg_index: cl_uint, arg_size: size_t, arg_value: *const c_void, ) -> Option<cl_int>

Source

pub fn has_clSetKernelArg(&self) -> bool

Source

pub fn clSetKernelArgSVMPointer( &self, kernel: cl_kernel, arg_index: cl_uint, arg_value: *const c_void, ) -> Option<cl_int>

Source

pub fn has_clSetKernelArgSVMPointer(&self) -> bool

Source

pub fn clSetKernelExecInfo( &self, kernel: cl_kernel, param_name: cl_kernel_exec_info, param_value_size: size_t, param_value: *const c_void, ) -> Option<cl_int>

Source

pub fn has_clSetKernelExecInfo(&self) -> bool

Source

pub fn clGetKernelInfo( &self, kernel: cl_kernel, param_name: cl_kernel_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetKernelInfo(&self) -> bool

Source

pub fn clGetKernelArgInfo( &self, kernel: cl_kernel, arg_indx: cl_uint, param_name: cl_kernel_arg_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetKernelArgInfo(&self) -> bool

Source

pub fn clGetKernelWorkGroupInfo( &self, kernel: cl_kernel, device: cl_device_id, param_name: cl_kernel_work_group_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetKernelWorkGroupInfo(&self) -> bool

Source

pub fn clGetKernelSubGroupInfo( &self, kernel: cl_kernel, device: cl_device_id, param_name: cl_kernel_sub_group_info, input_value_size: size_t, input_value: *const c_void, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetKernelSubGroupInfo(&self) -> bool

Source

pub fn clWaitForEvents( &self, num_events: cl_uint, event_list: *const cl_event, ) -> Option<cl_int>

Source

pub fn has_clWaitForEvents(&self) -> bool

Source

pub fn clGetEventInfo( &self, event: cl_event, param_name: cl_event_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetEventInfo(&self) -> bool

Source

pub fn clCreateUserEvent( &self, context: cl_context, errcode_ret: *mut cl_int, ) -> Option<cl_event>

Source

pub fn has_clCreateUserEvent(&self) -> bool

Source

pub fn clRetainEvent(&self, event: cl_event) -> Option<cl_int>

Source

pub fn has_clRetainEvent(&self) -> bool

Source

pub fn clReleaseEvent(&self, event: cl_event) -> Option<cl_int>

Source

pub fn has_clReleaseEvent(&self) -> bool

Source

pub fn clSetUserEventStatus( &self, event: cl_event, execution_status: cl_int, ) -> Option<cl_int>

Source

pub fn has_clSetUserEventStatus(&self) -> bool

Source

pub fn clSetEventCallback( &self, event: cl_event, command_exec_callback_type: cl_int, pfn_notify: Option<unsafe extern "C" fn(event: cl_event, event_command_status: cl_int, user_data: *mut c_void)>, user_data: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clSetEventCallback(&self) -> bool

Source

pub fn clGetEventProfilingInfo( &self, event: cl_event, param_name: cl_profiling_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetEventProfilingInfo(&self) -> bool

Source

pub fn clFlush(&self, command_queue: cl_command_queue) -> Option<cl_int>

Source

pub fn has_clFlush(&self) -> bool

Source

pub fn clFinish(&self, command_queue: cl_command_queue) -> Option<cl_int>

Source

pub fn has_clFinish(&self) -> bool

Source

pub fn clEnqueueReadBuffer( &self, command_queue: cl_command_queue, buffer: cl_mem, blocking_read: cl_bool, offset: size_t, cb: size_t, ptr: *mut c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReadBuffer(&self) -> bool

Source

pub fn clEnqueueReadBufferRect( &self, command_queue: cl_command_queue, buffer: cl_mem, blocking_read: cl_bool, buffer_origin: *const size_t, host_origin: *const size_t, region: *const size_t, buffer_row_pitch: size_t, buffer_slc_pitch: size_t, host_row_pitch: size_t, host_slc_pitch: size_t, ptr: *mut c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReadBufferRect(&self) -> bool

Source

pub fn clEnqueueWriteBuffer( &self, command_queue: cl_command_queue, buffer: cl_mem, blocking_write: cl_bool, offset: size_t, cb: size_t, ptr: *const c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueWriteBuffer(&self) -> bool

Source

pub fn clEnqueueWriteBufferRect( &self, command_queue: cl_command_queue, buffer: cl_mem, blocking_write: cl_bool, buffer_origin: *const size_t, host_origin: *const size_t, region: *const size_t, buffer_row_pitch: size_t, buffer_slc_pitch: size_t, host_row_pitch: size_t, host_slc_pitch: size_t, ptr: *const c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueWriteBufferRect(&self) -> bool

Source

pub fn clEnqueueFillBuffer( &self, command_queue: cl_command_queue, buffer: cl_mem, pattern: *const c_void, pattern_size: size_t, offset: size_t, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueFillBuffer(&self) -> bool

Source

pub fn clEnqueueCopyBuffer( &self, command_queue: cl_command_queue, src_buffer: cl_mem, dst_buffer: cl_mem, src_offset: size_t, dst_offset: size_t, cb: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueCopyBuffer(&self) -> bool

Source

pub fn clEnqueueCopyBufferRect( &self, command_queue: cl_command_queue, src_buffer: cl_mem, dst_buffer: cl_mem, src_origin: *const size_t, dst_origin: *const size_t, region: *const size_t, src_row_pitch: size_t, src_slice_pitch: size_t, dst_row_pitch: size_t, dst_slice_pitch: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueCopyBufferRect(&self) -> bool

Source

pub fn clEnqueueReadImage( &self, command_queue: cl_command_queue, image: cl_mem, blocking_read: cl_bool, origin: *const size_t, region: *const size_t, row_pitch: size_t, slice_pitch: size_t, ptr: *mut c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReadImage(&self) -> bool

Source

pub fn clEnqueueWriteImage( &self, command_queue: cl_command_queue, image: cl_mem, blocking_write: cl_bool, origin: *const size_t, region: *const size_t, input_row_pitch: size_t, input_slice_pitch: size_t, ptr: *const c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueWriteImage(&self) -> bool

Source

pub fn clEnqueueFillImage( &self, command_queue: cl_command_queue, image: cl_mem, fill_color: *const c_void, origin: *const size_t, region: *const size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueFillImage(&self) -> bool

Source

pub fn clEnqueueCopyImage( &self, command_queue: cl_command_queue, src_image: cl_mem, dst_image: cl_mem, src_origin: *const size_t, dst_origin: *const size_t, region: *const size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueCopyImage(&self) -> bool

Source

pub fn clEnqueueCopyImageToBuffer( &self, command_queue: cl_command_queue, src_image: cl_mem, dst_buffer: cl_mem, src_origin: *const size_t, region: *const size_t, dst_offset: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueCopyImageToBuffer(&self) -> bool

Source

pub fn clEnqueueCopyBufferToImage( &self, command_queue: cl_command_queue, src_buffer: cl_mem, dst_image: cl_mem, src_offset: size_t, dst_origin: *const size_t, region: *const size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueCopyBufferToImage(&self) -> bool

Source

pub fn clEnqueueMapBuffer( &self, command_queue: cl_command_queue, buffer: cl_mem, blocking_map: cl_bool, map_flags: cl_map_flags, offset: size_t, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, errcode_ret: *mut cl_int, ) -> Option<*mut c_void>

Source

pub fn has_clEnqueueMapBuffer(&self) -> bool

Source

pub fn clEnqueueMapImage( &self, command_queue: cl_command_queue, image: cl_mem, blocking_map: cl_bool, map_flags: cl_map_flags, origin: *const size_t, region: *const size_t, image_row_pitch: *mut size_t, image_slice_pitch: *mut size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, errcode_ret: *mut cl_int, ) -> Option<*mut c_void>

Source

pub fn has_clEnqueueMapImage(&self) -> bool

Source

pub fn clEnqueueUnmapMemObject( &self, command_queue: cl_command_queue, memobj: cl_mem, mapped_ptr: *mut c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueUnmapMemObject(&self) -> bool

Source

pub fn clEnqueueMigrateMemObjects( &self, command_queue: cl_command_queue, num_mem_objects: cl_uint, mem_objects: *const cl_mem, flags: cl_mem_migration_flags, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMigrateMemObjects(&self) -> bool

Source

pub fn clEnqueueNDRangeKernel( &self, command_queue: cl_command_queue, kernel: cl_kernel, work_dim: cl_uint, global_work_offset: *const size_t, global_work_dims: *const size_t, local_work_dims: *const size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueNDRangeKernel(&self) -> bool

Source

pub fn clEnqueueNativeKernel( &self, command_queue: cl_command_queue, user_func: Option<unsafe extern "C" fn(arg1: *mut c_void)>, args: *mut c_void, cb_args: size_t, num_mem_objects: cl_uint, mem_list: *const cl_mem, args_mem_loc: *const *const c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueNativeKernel(&self) -> bool

Source

pub fn clEnqueueMarkerWithWaitList( &self, command_queue: cl_command_queue, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMarkerWithWaitList(&self) -> bool

Source

pub fn clEnqueueBarrierWithWaitList( &self, command_queue: cl_command_queue, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueBarrierWithWaitList(&self) -> bool

Source

pub fn clEnqueueSVMFree( &self, command_queue: cl_command_queue, num_svm_pointers: cl_uint, svm_pointers: *const *const c_void, pfn_free_func: Option<unsafe extern "C" fn(queue: cl_command_queue, num_svm_pointers: cl_uint, svm_pointers: *mut *mut c_void, user_data: *mut c_void)>, user_data: *mut c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMFree(&self) -> bool

Source

pub fn clEnqueueSVMMemcpy( &self, command_queue: cl_command_queue, blocking_copy: cl_bool, dst_ptr: *mut c_void, src_ptr: *const c_void, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMMemcpy(&self) -> bool

Source

pub fn clEnqueueSVMMemFill( &self, command_queue: cl_command_queue, svm_ptr: *mut c_void, pattern: *const c_void, pattern_size: size_t, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMMemFill(&self) -> bool

Source

pub fn clEnqueueSVMMap( &self, command_queue: cl_command_queue, blocking_map: cl_bool, flags: cl_map_flags, svm_ptr: *mut c_void, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMMap(&self) -> bool

Source

pub fn clEnqueueSVMUnmap( &self, command_queue: cl_command_queue, svm_ptr: *mut c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMUnmap(&self) -> bool

Source

pub fn clEnqueueSVMMigrateMem( &self, command_queue: cl_command_queue, num_svm_pointers: cl_uint, svm_pointers: *const *const c_void, sizes: *const size_t, flags: cl_mem_migration_flags, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMMigrateMem(&self) -> bool

Source

pub fn clGetExtensionFunctionAddressForPlatform( &self, platform: cl_platform_id, func_name: *const c_char, ) -> Option<*mut c_void>

Source

pub fn has_clGetExtensionFunctionAddressForPlatform(&self) -> bool

Source

pub fn clCreateImage2D( &self, context: cl_context, flags: cl_mem_flags, image_format: *mut cl_image_format, image_width: size_t, image_depth: size_t, image_row_pitch: size_t, host_ptr: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateImage2D(&self) -> bool

Source

pub fn clCreateImage3D( &self, context: cl_context, flags: cl_mem_flags, image_format: *mut cl_image_format, image_width: size_t, image_height: size_t, image_depth: size_t, image_row_pitch: size_t, image_slice_pitch: size_t, host_ptr: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateImage3D(&self) -> bool

Source

pub fn clEnqueueMarker( &self, command_queue: cl_command_queue, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMarker(&self) -> bool

Source

pub fn clEnqueueWaitForEvents( &self, command_queue: cl_command_queue, num_events: cl_uint, event_list: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueWaitForEvents(&self) -> bool

Source

pub fn clEnqueueBarrier( &self, command_queue: cl_command_queue, ) -> Option<cl_int>

Source

pub fn has_clEnqueueBarrier(&self) -> bool

Source

pub fn clUnloadCompiler(&self) -> Option<cl_int>

Source

pub fn has_clUnloadCompiler(&self) -> bool

Source

pub fn clGetExtensionFunctionAddress( &self, func_name: *const c_char, ) -> Option<()>

Source

pub fn has_clGetExtensionFunctionAddress(&self) -> bool

Source

pub fn clCreateCommandQueue( &self, context: cl_context, device: cl_device_id, properties: cl_command_queue_properties, errcode_ret: *mut cl_int, ) -> Option<cl_command_queue>

Source

pub fn has_clCreateCommandQueue(&self) -> bool

Source

pub fn clCreateSampler( &self, context: cl_context, normalize_coords: cl_bool, addressing_mode: cl_addressing_mode, filter_mode: cl_filter_mode, errcode_ret: *mut cl_int, ) -> Option<cl_sampler>

Source

pub fn has_clCreateSampler(&self) -> bool

Source

pub fn clEnqueueTask( &self, command_queue: cl_command_queue, kernel: cl_kernel, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueTask(&self) -> bool

Source

pub fn clGetSupportedD3D10TextureFormatsINTEL( &self, context: cl_context, flags: cl_mem_flags, image_type: cl_mem_object_type, num_entries: cl_uint, d3d10_formats: *mut DXGI_FORMAT, num_surface_formats: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clGetSupportedD3D10TextureFormatsINTEL(&self) -> bool

Source

pub fn clGetSupportedD3D11TextureFormatsINTEL( &self, context: cl_context, flags: cl_mem_flags, image_type: cl_mem_object_type, plane: cl_uint, num_entries: cl_uint, d3d11_formats: *mut DXGI_FORMAT, num_surface_formats: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clGetSupportedD3D11TextureFormatsINTEL(&self) -> bool

Source

pub fn clGetDeviceIDsFromDX9INTEL( &self, platform: cl_platform_id, dx9_device_source: cl_dx9_device_source_intel, dx9_object: *mut c_void, dx9_device_set: cl_dx9_device_set_intel, num_entries: cl_uint, devices: *mut cl_device_id, num_devices: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clGetDeviceIDsFromDX9INTEL(&self) -> bool

Source

pub fn clCreateFromDX9MediaSurfaceINTEL( &self, context: cl_context, flags: cl_mem_flags, resource: IDirect3DSurface9_ptr, sharedHandle: HANDLE, plane: cl_uint, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateFromDX9MediaSurfaceINTEL(&self) -> bool

Source

pub fn clEnqueueAcquireDX9ObjectsINTEL( &self, command_queue: cl_command_queue, num_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueAcquireDX9ObjectsINTEL(&self) -> bool

Source

pub fn clEnqueueReleaseDX9ObjectsINTEL( &self, command_queue: cl_command_queue, num_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReleaseDX9ObjectsINTEL(&self) -> bool

Source

pub fn clGetSupportedDX9MediaSurfaceFormatsINTEL( &self, context: cl_context, flags: cl_mem_flags, image_type: cl_mem_object_type, plane: cl_uint, num_entries: cl_uint, dx9_formats: *mut D3DFORMAT, num_surface_formats: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clGetSupportedDX9MediaSurfaceFormatsINTEL(&self) -> bool

Source

pub fn clCreateFromEGLImageKHR( &self, context: cl_context, display: CLeglDisplayKHR, image: CLeglImageKHR, flags: cl_mem_flags, properties: *const cl_egl_image_properties_khr, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateFromEGLImageKHR(&self) -> bool

Source

pub fn clEnqueueAcquireEGLObjectsKHR( &self, command_queue: cl_command_queue, num_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueAcquireEGLObjectsKHR(&self) -> bool

Source

pub fn clEnqueueReleaseEGLObjectsKHR( &self, command_queue: cl_command_queue, num_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReleaseEGLObjectsKHR(&self) -> bool

Source

pub fn clCreateEventFromEGLSyncKHR( &self, context: cl_context, sync: CLeglSyncKHR, display: CLeglDisplayKHR, errcode_ret: *mut cl_int, ) -> Option<cl_event>

Source

pub fn has_clCreateEventFromEGLSyncKHR(&self) -> bool

Source

pub fn clCreateCommandBufferKHR( &self, num_queues: cl_uint, queues: *const cl_command_queue, properties: *const cl_command_buffer_properties_khr, errcode_ret: *mut cl_int, ) -> Option<cl_command_buffer_khr>

Source

pub fn has_clCreateCommandBufferKHR(&self) -> bool

Source

pub fn clFinalizeCommandBufferKHR( &self, command_buffer: cl_command_buffer_khr, ) -> Option<cl_int>

Source

pub fn has_clFinalizeCommandBufferKHR(&self) -> bool

Source

pub fn clRetainCommandBufferKHR( &self, command_buffer: cl_command_buffer_khr, ) -> Option<cl_int>

Source

pub fn has_clRetainCommandBufferKHR(&self) -> bool

Source

pub fn clReleaseCommandBufferKHR( &self, command_buffer: cl_command_buffer_khr, ) -> Option<cl_int>

Source

pub fn has_clReleaseCommandBufferKHR(&self) -> bool

Source

pub fn clEnqueueCommandBufferKHR( &self, num_queues: cl_uint, queues: *mut cl_command_queue, command_buffer: cl_command_buffer_khr, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueCommandBufferKHR(&self) -> bool

Source

pub fn clCommandBarrierWithWaitListKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandBarrierWithWaitListKHR(&self) -> bool

Source

pub fn clCommandCopyBufferKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, src_buffer: cl_mem, dst_buffer: cl_mem, src_offset: size_t, dst_offset: size_t, size: size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandCopyBufferKHR(&self) -> bool

Source

pub fn clCommandCopyBufferRectKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, src_buffer: cl_mem, dst_buffer: cl_mem, src_origin: *const size_t, dst_origin: *const size_t, region: *const size_t, src_row_pitch: size_t, src_slice_pitch: size_t, dst_row_pitch: size_t, dst_slice_pitch: size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandCopyBufferRectKHR(&self) -> bool

Source

pub fn clCommandCopyBufferToImageKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, src_buffer: cl_mem, dst_image: cl_mem, src_offset: size_t, dst_origin: *const size_t, region: *const size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandCopyBufferToImageKHR(&self) -> bool

Source

pub fn clCommandCopyImageKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, src_image: cl_mem, dst_image: cl_mem, src_origin: *const size_t, dst_origin: *const size_t, region: *const size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandCopyImageKHR(&self) -> bool

Source

pub fn clCommandCopyImageToBufferKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, src_image: cl_mem, dst_buffer: cl_mem, src_origin: *const size_t, region: *const size_t, dst_offset: size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandCopyImageToBufferKHR(&self) -> bool

Source

pub fn clCommandFillBufferKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, buffer: cl_mem, pattern: *const c_void, pattern_size: size_t, offset: size_t, size: size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandFillBufferKHR(&self) -> bool

Source

pub fn clCommandFillImageKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, image: cl_mem, fill_color: *const c_void, origin: *const size_t, region: *const size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandFillImageKHR(&self) -> bool

Source

pub fn clCommandNDRangeKernelKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, properties: *const cl_ndrange_kernel_command_properties_khr, kernel: cl_kernel, work_dim: cl_uint, global_work_offset: *const size_t, global_work_size: *const size_t, local_work_size: *const size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandNDRangeKernelKHR(&self) -> bool

Source

pub fn clCommandSVMMemcpyKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, dst_ptr: *mut c_void, src_ptr: *const c_void, size: size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandSVMMemcpyKHR(&self) -> bool

Source

pub fn clCommandSVMMemFillKHR( &self, command_buffer: cl_command_buffer_khr, command_queue: cl_command_queue, svm_ptr: *mut c_void, pattern: *const c_void, pattern_size: size_t, size: size_t, num_sync_points_in_wait_list: cl_uint, sync_point_wait_list: *const cl_sync_point_khr, sync_point: *mut cl_sync_point_khr, mutable_handle: *mut cl_mutable_command_khr, ) -> Option<cl_int>

Source

pub fn has_clCommandSVMMemFillKHR(&self) -> bool

Source

pub fn clGetCommandBufferInfoKHR( &self, command_buffer: cl_command_buffer_khr, param_name: cl_command_buffer_info_khr, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetCommandBufferInfoKHR(&self) -> bool

Source

pub fn clRemapCommandBufferKHR( &self, command_buffer: cl_command_buffer_khr, automatic: cl_bool, num_queues: cl_uint, queues: *const cl_command_queue, num_handles: cl_uint, handles: *const cl_mutable_command_khr, handles_ret: *mut cl_mutable_command_khr, errcode_ret: *mut cl_int, ) -> Option<cl_command_buffer_khr>

Source

pub fn has_clRemapCommandBufferKHR(&self) -> bool

Source

pub fn clUpdateMutableCommandsKHR( &self, command_buffer: cl_command_buffer_khr, mutable_config: *const cl_mutable_base_config_khr, ) -> Option<cl_int>

Source

pub fn has_clUpdateMutableCommandsKHR(&self) -> bool

Source

pub fn clGetMutableCommandInfoKHR( &self, command: cl_mutable_command_khr, param_name: cl_mutable_command_info_khr, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetMutableCommandInfoKHR(&self) -> bool

Source

pub fn clSetMemObjectDestructorAPPLE( &self, memobj: cl_mem, pfn_notify: Option<unsafe extern "C" fn(memobj: cl_mem, user_data: *mut c_void)>, user_data: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clSetMemObjectDestructorAPPLE(&self) -> bool

Source

pub fn clLogMessagesToSystemLogAPPLE( &self, errstr: *const c_char, private_info: *const c_void, cb: size_t, user_data: *mut c_void, ) -> Option<()>

Source

pub fn has_clLogMessagesToSystemLogAPPLE(&self) -> bool

Source

pub fn clLogMessagesToStdoutAPPLE( &self, errstr: *const c_char, private_info: *const c_void, cb: size_t, user_data: *mut c_void, ) -> Option<()>

Source

pub fn has_clLogMessagesToStdoutAPPLE(&self) -> bool

Source

pub fn clLogMessagesToStderrAPPLE( &self, errstr: *const c_char, private_info: *const c_void, cb: size_t, user_data: *mut c_void, ) -> Option<()>

Source

pub fn has_clLogMessagesToStderrAPPLE(&self) -> bool

Source

pub fn clIcdGetPlatformIDsKHR( &self, num_entries: cl_uint, platforms: *mut cl_platform_id, num_platforms: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clIcdGetPlatformIDsKHR(&self) -> bool

Source

pub fn clCreateProgramWithILKHR( &self, context: cl_context, il: *const c_void, length: size_t, errcode_ret: *mut cl_int, ) -> Option<cl_program>

Source

pub fn has_clCreateProgramWithILKHR(&self) -> bool

Source

pub fn clTerminateContextKHR(&self, context: cl_context) -> Option<cl_int>

Source

pub fn has_clTerminateContextKHR(&self) -> bool

Source

pub fn clCreateCommandQueueWithPropertiesKHR( &self, context: cl_context, device: cl_device_id, properties: *const cl_queue_properties_khr, errcode_ret: *mut cl_int, ) -> Option<cl_command_queue>

Source

pub fn has_clCreateCommandQueueWithPropertiesKHR(&self) -> bool

Source

pub fn clReleaseDeviceEXT(&self, device: cl_device_id) -> Option<cl_int>

Source

pub fn has_clReleaseDeviceEXT(&self) -> bool

Source

pub fn clRetainDeviceEXT(&self, device: cl_device_id) -> Option<cl_int>

Source

pub fn has_clRetainDeviceEXT(&self) -> bool

Source

pub fn clCreateSubDevicesEXT( &self, in_device: cl_device_id, properties: *const cl_device_partition_property_ext, num_entries: cl_uint, out_devices: *mut cl_device_id, num_devices: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clCreateSubDevicesEXT(&self) -> bool

Source

pub fn clEnqueueMigrateMemObjectEXT( &self, command_queue: cl_command_queue, num_mem_objects: cl_uint, mem_objects: *const cl_mem, flags: cl_mem_migration_flags_ext, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMigrateMemObjectEXT(&self) -> bool

Source

pub fn clGetDeviceImageInfoQCOM( &self, device: cl_device_id, image_width: size_t, image_height: size_t, image_format: *const cl_image_format, param_name: cl_image_pitch_info_qcom, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetDeviceImageInfoQCOM(&self) -> bool

Source

pub fn clEnqueueAcquireGrallocObjectsIMG( &self, command_queue: cl_command_queue, num_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueAcquireGrallocObjectsIMG(&self) -> bool

Source

pub fn clEnqueueReleaseGrallocObjectsIMG( &self, command_queue: cl_command_queue, num_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReleaseGrallocObjectsIMG(&self) -> bool

Source

pub fn clEnqueueGenerateMipmapIMG( &self, command_queue: cl_command_queue, src_image: cl_mem, dst_image: cl_mem, mipmap_filter_mode: cl_mipmap_filter_mode_img, array_region: *const size_t, mip_region: *const size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueGenerateMipmapIMG(&self) -> bool

Source

pub fn clGetKernelSubGroupInfoKHR( &self, in_kernel: cl_kernel, in_device: cl_device_id, param_name: cl_kernel_sub_group_info, input_value_size: size_t, input_value: *const c_void, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetKernelSubGroupInfoKHR(&self) -> bool

Source

pub fn clGetKernelSuggestedLocalWorkSizeKHR( &self, command_queue: cl_command_queue, kernel: cl_kernel, work_dim: cl_uint, global_work_offset: *const size_t, global_work_size: *const size_t, suggested_local_work_size: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetKernelSuggestedLocalWorkSizeKHR(&self) -> bool

Source

pub fn clEnqueueAcquireExternalMemObjectsKHR( &self, command_queue: cl_command_queue, num_mem_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueAcquireExternalMemObjectsKHR(&self) -> bool

Source

pub fn clEnqueueReleaseExternalMemObjectsKHR( &self, command_queue: cl_command_queue, num_mem_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReleaseExternalMemObjectsKHR(&self) -> bool

Source

pub fn clGetSemaphoreHandleForTypeKHR( &self, sema_object: cl_semaphore_khr, device: cl_device_id, handle_type: cl_external_semaphore_handle_type_khr, handle_size: size_t, handle_ptr: *mut c_void, handle_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetSemaphoreHandleForTypeKHR(&self) -> bool

Source

pub fn clReImportSemaphoreSyncFdKHR( &self, sema_object: cl_semaphore_khr, reimport_props: *mut cl_semaphore_reimport_properties_khr, fd: c_int, ) -> Option<cl_int>

Source

pub fn has_clReImportSemaphoreSyncFdKHR(&self) -> bool

Source

pub fn clCreateSemaphoreWithPropertiesKHR( &self, context: cl_context, sema_props: *const cl_semaphore_properties_khr, errcode_ret: *mut cl_int, ) -> Option<cl_semaphore_khr>

Source

pub fn has_clCreateSemaphoreWithPropertiesKHR(&self) -> bool

Source

pub fn clEnqueueWaitSemaphoresKHR( &self, command_queue: cl_command_queue, num_sema_objects: cl_uint, sema_objects: *const cl_semaphore_khr, sema_payload_list: *const cl_semaphore_payload_khr, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueWaitSemaphoresKHR(&self) -> bool

Source

pub fn clEnqueueSignalSemaphoresKHR( &self, command_queue: cl_command_queue, num_sema_objects: cl_uint, sema_objects: *const cl_semaphore_khr, sema_payload_list: *const cl_semaphore_payload_khr, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSignalSemaphoresKHR(&self) -> bool

Source

pub fn clGetSemaphoreInfoKHR( &self, sema_object: cl_semaphore_khr, param_name: cl_semaphore_info_khr, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetSemaphoreInfoKHR(&self) -> bool

Source

pub fn clReleaseSemaphoreKHR( &self, sema_object: cl_semaphore_khr, ) -> Option<cl_int>

Source

pub fn has_clReleaseSemaphoreKHR(&self) -> bool

Source

pub fn clRetainSemaphoreKHR( &self, sema_object: cl_semaphore_khr, ) -> Option<cl_int>

Source

pub fn has_clRetainSemaphoreKHR(&self) -> bool

Source

pub fn clImportMemoryARM( &self, context: cl_context, flags: cl_mem_flags, properties: *const cl_import_properties_arm, memory: *mut c_void, size: size_t, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clImportMemoryARM(&self) -> bool

Source

pub fn clSVMAllocARM( &self, context: cl_context, flags: cl_svm_mem_flags_arm, size: size_t, alignment: cl_uint, ) -> Option<*mut c_void>

Source

pub fn has_clSVMAllocARM(&self) -> bool

Source

pub fn clSVMFreeARM( &self, context: cl_context, svm_pointer: *mut c_void, ) -> Option<()>

Source

pub fn has_clSVMFreeARM(&self) -> bool

Source

pub fn clEnqueueSVMFreeARM( &self, command_queue: cl_command_queue, num_svm_pointers: cl_uint, svm_pointers: *mut *mut c_void, pfn_free_func: Option<unsafe extern "C" fn(queue: cl_command_queue, num_svm_pointers: cl_uint, svm_pointers: *mut *mut c_void, user_data: *mut c_void)>, user_data: *mut c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMFreeARM(&self) -> bool

Source

pub fn clEnqueueSVMMemcpyARM( &self, command_queue: cl_command_queue, blocking_copy: cl_bool, dst_ptr: *mut c_void, src_ptr: *const c_void, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMMemcpyARM(&self) -> bool

Source

pub fn clEnqueueSVMMemFillARM( &self, command_queue: cl_command_queue, svm_ptr: *mut c_void, pattern: *const c_void, pattern_size: size_t, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMMemFillARM(&self) -> bool

Source

pub fn clEnqueueSVMMapARM( &self, command_queue: cl_command_queue, blocking_map: cl_bool, flags: cl_map_flags, svm_ptr: *mut c_void, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMMapARM(&self) -> bool

Source

pub fn clEnqueueSVMUnmapARM( &self, command_queue: cl_command_queue, svm_ptr: *mut c_void, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueSVMUnmapARM(&self) -> bool

Source

pub fn clSetKernelArgSVMPointerARM( &self, kernel: cl_kernel, arg_index: cl_uint, arg_value: *const c_void, ) -> Option<cl_int>

Source

pub fn has_clSetKernelArgSVMPointerARM(&self) -> bool

Source

pub fn clSetKernelExecInfoARM( &self, kernel: cl_kernel, param_name: cl_kernel_exec_info_arm, param_value_size: size_t, param_value: *const c_void, ) -> Option<cl_int>

Source

pub fn has_clSetKernelExecInfoARM(&self) -> bool

Source

pub fn clCreateAcceleratorINTEL( &self, context: cl_context, accelerator_type: cl_accelerator_type_intel, descriptor_size: size_t, descriptor: *const c_void, errcode_ret: *mut cl_int, ) -> Option<cl_accelerator_intel>

Source

pub fn has_clCreateAcceleratorINTEL(&self) -> bool

Source

pub fn clGetAcceleratorInfoINTEL( &self, accelerator: cl_accelerator_intel, param_name: cl_accelerator_info_intel, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetAcceleratorInfoINTEL(&self) -> bool

Source

pub fn clRetainAcceleratorINTEL( &self, accelerator: cl_accelerator_intel, ) -> Option<cl_int>

Source

pub fn has_clRetainAcceleratorINTEL(&self) -> bool

Source

pub fn clReleaseAcceleratorINTEL( &self, accelerator: cl_accelerator_intel, ) -> Option<cl_int>

Source

pub fn has_clReleaseAcceleratorINTEL(&self) -> bool

Source

pub fn clHostMemAllocINTEL( &self, context: cl_context, properties: *const cl_mem_properties_intel, size: size_t, alignment: cl_uint, errcode_ret: *mut cl_int, ) -> Option<*mut c_void>

Source

pub fn has_clHostMemAllocINTEL(&self) -> bool

Source

pub fn clDeviceMemAllocINTEL( &self, context: cl_context, device: cl_device_id, properties: *const cl_mem_properties_intel, size: size_t, alignment: cl_uint, errcode_ret: *mut cl_int, ) -> Option<*mut c_void>

Source

pub fn has_clDeviceMemAllocINTEL(&self) -> bool

Source

pub fn clSharedMemAllocINTEL( &self, context: cl_context, device: cl_device_id, properties: *const cl_mem_properties_intel, size: size_t, alignment: cl_uint, errcode_ret: *mut cl_int, ) -> Option<*mut c_void>

Source

pub fn has_clSharedMemAllocINTEL(&self) -> bool

Source

pub fn clMemFreeINTEL( &self, context: cl_context, ptr: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clMemFreeINTEL(&self) -> bool

Source

pub fn clMemBlockingFreeINTEL( &self, context: cl_context, ptr: *mut c_void, ) -> Option<cl_int>

Source

pub fn has_clMemBlockingFreeINTEL(&self) -> bool

Source

pub fn clGetMemAllocInfoINTEL( &self, context: cl_context, ptr: *const c_void, param_name: cl_mem_info_intel, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetMemAllocInfoINTEL(&self) -> bool

Source

pub fn clSetKernelArgMemPointerINTEL( &self, kernel: cl_kernel, arg_index: cl_uint, arg_value: *const c_void, ) -> Option<cl_int>

Source

pub fn has_clSetKernelArgMemPointerINTEL(&self) -> bool

Source

pub fn clEnqueueMemFillINTEL( &self, command_queue: cl_command_queue, dst_ptr: *mut c_void, pattern: *const c_void, pattern_size: size_t, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMemFillINTEL(&self) -> bool

Source

pub fn clEnqueueMemcpyINTEL( &self, command_queue: cl_command_queue, blocking: cl_bool, dst_ptr: *mut c_void, src_ptr: *const c_void, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMemcpyINTEL(&self) -> bool

Source

pub fn clEnqueueMemAdviseINTEL( &self, command_queue: cl_command_queue, ptr: *const c_void, size: size_t, advice: cl_mem_advice_intel, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMemAdviseINTEL(&self) -> bool

Source

pub fn clEnqueueMigrateMemINTEL( &self, command_queue: cl_command_queue, ptr: *const c_void, size: size_t, flags: cl_mem_migration_flags, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMigrateMemINTEL(&self) -> bool

Source

pub fn clEnqueueMemsetINTEL( &self, command_queue: cl_command_queue, dst_ptr: *mut c_void, value: cl_int, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueMemsetINTEL(&self) -> bool

Source

pub fn clCreateBufferWithPropertiesINTEL( &self, context: cl_context, properties: *const cl_mem_properties_intel, flags: cl_mem_flags, size: size_t, host_ptr: *mut c_void, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateBufferWithPropertiesINTEL(&self) -> bool

Source

pub fn clEnqueueReadHostPipeINTEL( &self, queue: cl_command_queue, program: cl_program, pipe_symbol: *const c_char, blocking_read: cl_bool, ptr: *mut c_void, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReadHostPipeINTEL(&self) -> bool

Source

pub fn clEnqueueWriteHostPipeINTEL( &self, queue: cl_command_queue, program: cl_program, pipe_symbol: *const c_char, blocking_write: cl_bool, ptr: *const c_void, size: size_t, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueWriteHostPipeINTEL(&self) -> bool

Source

pub fn clGetImageRequirementsInfoEXT( &self, context: cl_context, properties: *const cl_mem_properties, flags: cl_mem_flags, image_format: *const cl_image_format, image_desc: *const cl_image_desc, param_name: cl_image_requirements_info_ext, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetImageRequirementsInfoEXT(&self) -> bool

Source

pub fn clGetICDLoaderInfoOCLICD( &self, param_name: cl_icdl_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetICDLoaderInfoOCLICD(&self) -> bool

Source

pub fn clSetContentSizeBufferPoCL( &self, buffer: cl_mem, content_size_buffer: cl_mem, ) -> Option<cl_int>

Source

pub fn has_clSetContentSizeBufferPoCL(&self) -> bool

Source

pub fn clCreateFromGLBuffer( &self, context: cl_context, flags: cl_mem_flags, bufobj: cl_GLuint, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateFromGLBuffer(&self) -> bool

Source

pub fn clCreateFromGLTexture( &self, context: cl_context, flags: cl_mem_flags, target: cl_GLenum, miplevel: cl_GLint, texture: cl_GLuint, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateFromGLTexture(&self) -> bool

Source

pub fn clCreateFromGLRenderbuffer( &self, context: cl_context, flags: cl_mem_flags, renderbuffer: cl_GLuint, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateFromGLRenderbuffer(&self) -> bool

Source

pub fn clGetGLObjectInfo( &self, memobj: cl_mem, gl_object_type: *mut cl_gl_object_type, gl_object_name: *mut cl_GLuint, ) -> Option<cl_int>

Source

pub fn has_clGetGLObjectInfo(&self) -> bool

Source

pub fn clGetGLTextureInfo( &self, memobj: cl_mem, param_name: cl_gl_texture_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetGLTextureInfo(&self) -> bool

Source

pub fn clEnqueueAcquireGLObjects( &self, command_queue: cl_command_queue, num_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueAcquireGLObjects(&self) -> bool

Source

pub fn clEnqueueReleaseGLObjects( &self, command_queue: cl_command_queue, num_objects: cl_uint, mem_objects: *const cl_mem, num_events_in_wait_list: cl_uint, event_wait_list: *const cl_event, event: *mut cl_event, ) -> Option<cl_int>

Source

pub fn has_clEnqueueReleaseGLObjects(&self) -> bool

Source

pub fn clCreateFromGLTexture2D( &self, context: cl_context, flags: cl_mem_flags, texture_target: cl_GLenum, miplevel: cl_GLint, texture: cl_GLuint, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateFromGLTexture2D(&self) -> bool

Source

pub fn clCreateFromGLTexture3D( &self, context: cl_context, flags: cl_mem_flags, texture_target: cl_GLenum, miplevel: cl_GLint, texture: cl_GLuint, errcode_ret: *mut cl_int, ) -> Option<cl_mem>

Source

pub fn has_clCreateFromGLTexture3D(&self) -> bool

Source

pub fn clGetGLContextInfoKHR( &self, properties: *const cl_context_properties, param_name: cl_gl_context_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetGLContextInfoKHR(&self) -> bool

Source

pub fn clCreateEventFromGLsyncKHR( &self, context: cl_context, sync: cl_GLsync, errcode_ret: *mut cl_int, ) -> Option<cl_event>

Source

pub fn has_clCreateEventFromGLsyncKHR(&self) -> bool

Source

pub fn clGetSupportedGLTextureFormatsINTEL( &self, context: cl_context, flags: cl_mem_flags, image_type: cl_mem_object_type, num_entries: cl_uint, gl_formats: *mut cl_GLenum, num_texture_formats: *mut cl_uint, ) -> Option<cl_int>

Source

pub fn has_clGetSupportedGLTextureFormatsINTEL(&self) -> bool

Source

pub fn clGetLayerInfo( &self, param_name: cl_layer_info, param_value_size: size_t, param_value: *mut c_void, param_value_size_ret: *mut size_t, ) -> Option<cl_int>

Source

pub fn has_clGetLayerInfo(&self) -> bool

Source

pub fn clInitLayer( &self, num_entries: cl_uint, target_dispatch: *const cl_icd_dispatch, num_entries_ret: *mut cl_uint, layer_dispatch_ret: *mut *const cl_icd_dispatch, ) -> Option<cl_int>

Source

pub fn has_clInitLayer(&self) -> bool

Trait Implementations§

Source§

impl WrapperApi for OpenCl

Source§

unsafe fn load(lib: &Library) -> Result<Self, Error>

Load symbols from provided library.

Auto Trait Implementations§

§

impl Freeze for OpenCl

§

impl RefUnwindSafe for OpenCl

§

impl Send for OpenCl

§

impl Sync for OpenCl

§

impl Unpin for OpenCl

§

impl UnwindSafe for OpenCl

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.