TOpenCLKernel Class

Header: Dew.Math/clMtxVec.h · Cross-compiler
tObjectTOpenCLKernel

class TOpenCLKernel : public tObject;

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

Constructors

NameDescription
TOpenCLKernel (3)

Destructors

NameDescription
~TOpenCLKernel

Properties

NameTypeDescription
ArgCountintReturns the number of arguments of the Kernel (function parameter count).
CLProgramTOpenCLProgram*Returns the Program for which the kernel was created.
KernelintPtrReturns the Open CL kernel object.
LocalMemorySizeintReturns the amount of local memory in bytes being used by a kernel.
NameDewStringReturns the Open CL kernel object.
WorkGroupSizeintReturns the maximum size of the Work Group for this Kernel.

Methods

NameDescription
Enqueue (3)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.