TOpenCLKernel Class

Source: clMtxVec.cs · Assembly: Dew.Math

public class TOpenCLKernel

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

Properties

NameTypeDescription
ArgCountInt32Returns the number of arguments of the Kernel (function parameter count).
CLProgramTOpenCLProgramReturns the Program for which the kernel was created.
KernelIntPtrReturns the Open CL kernel object.
LocalMemorySizeInt32Returns the amount of local memory in bytes being used by a kernel.
NameStringReturns the Open CL kernel object.
WorkGroupSizeInt32Returns 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 Dew.Math.TOpenCLKernel.LocalMemorySize to reflect changes caused with calls to clSetKernelArg.