TOpenCLKernel Class

type TOpenCLKernel = class;

Open CL Kernels are added automatically to TOpenCLDevice.Kernels list when a program is loaded.

Properties

NameTypeDescription
ArgCountIntegerReturns the number of arguments of the Kernel (function parameter count).
CLProgramTOpenCLProgramReturns the Program for which the kernel was created.
KernelNativeIntReturns the Open CL kernel object.
LocalMemorySizeIntegerReturns the amount of local memory in bytes being used by a kernel.
NamestringReturns the Open CL kernel object.
WorkGroupSizeIntegerReturns the maximum size of the Work Group for this Kernel.

Methods

NameDescription
Enqueue (2)Submits the Kernel to cmdQueue for computation with specified WorkSize.
GetCompileWorkGroupSizeReturns the work-group size specified in the source code.
ResetArgsResets the kernel parameter setting process.
SetArgBufferSets the Kernel (Open CL function) parameter at argIndex to Value.
SetArgByteSets the Kernel (Open CL function) parameter at argIndex to Value.
SetArgDoubleSets the Kernel (Open CL function) parameter at argIndex to Value.
SetArgInt32Sets the Kernel (Open CL function) parameter at argIndex to Value.
SetArgLocalMem (2)Sets the Kernel (Open CL function) parameter at argIndex to local memory size associated with the queue.
SetArgSampleSets the Kernel (Open CL function) parameter at argIndex to Value.
SetArgSingleSets the Kernel (Open CL function) parameter at argIndex to Value.
SetArgSmallIntSets the Kernel (Open CL function) parameter at argIndex to Value.
UpdateLocalMemoryInfoUpdates the value of TOpenCLKernel.LocalMemorySize to reflect changes caused with calls to clSetKernelArg.