[][src]Module opencl3::kernel

Structs

ExecuteKernel

A struct that implements the builder pattern to simplify setting up Kernel arguments and the NDRange when enqueueing a Kernel on a CommandQueue.

Kernel

An OpenCL kernel object.
It stores the number of arguments required by the kernel for the ExecuteKernel builder to verify kernel execution.
Implements the Drop trait to call release_kernel when the object is dropped.

Enums

KernelArgInfo
KernelInfo
KernelSubGroupInfo
KernelWorkGroupInfo

Constants

CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM
CL_KERNEL_EXEC_INFO_SVM_PTRS

Functions

create_kernel

Create an OpenCL kernel object for a program with a successfully built executable.
Calls clCreateKernel to create an OpenCL kernel object.

create_kernels_in_program

Create OpenCL kernel objects for all kernel functions in a program.
Calls clCreateKernelsInProgram to create OpenCL kernel objects.

get_kernel_arg_info

Get specific information about arguments of an OpenCL kernel.
Calls clGetKernelArgInfo to get the desired information about the kernel.

get_kernel_info

Get specific information about an OpenCL kernel.
Calls clGetKernelInfo to get the desired information about the kernel.

get_kernel_work_group_info

Get specific information about work groups of an OpenCL kernel.
Calls clGetKernelWorkGroupInfo to get the desired information about the kernel.

release_kernel

Release an OpenCL kernel.
Calls clReleaseKernel to decrement the kernel reference count.

retain_kernel

Retain an OpenCL kernel.
Calls clRetainKernel to increment the kernel reference count.

set_kernel_arg

Set the argument value for a specific argument of a kernel.
Calls clSetKernelArg.

set_kernel_arg_svm_pointer

Set set a SVM pointer as the argument value for a specific argument of a kernel.
Calls clSetKernelArgSVMPointer.

set_kernel_exec_info

Pass additional information other than argument values to a kernel.
Calls clSetKernelExecInfo.