TOpenCLKernel::SetArgLocalMem Method

Overload List

#SignatureDescription
1void SetArgLocalMem(int argIndex, TOpenCLCommandQueue *CmdQueue);Sets the Kernel (Open CL function) parameter at argIndex to local memory size associated with the queue.
2void SetArgLocalMem(int argIndex, TOpenCLCommandQueue *CmdQueue, int SamplesLength, int aElemSize);Sets the Kernel (Open CL function) parameter at argIndex to local memory size associated with the queue.

Overload 1: void SetArgLocalMem(int argIndex, TOpenCLCommandQueue *CmdQueue);

Sets the Kernel (Open CL function) parameter at argIndex to local memory size associated with the queue.

#NameTypeDescription
1argIndexint
2CmdQueueTOpenCLCommandQueue *
Remarks:

The amount of local memory associated with the queue is specified by the TOpenCLcommandQueue property. The total amount of local memory allocated across all queues running on the same device may not exceed total available local memory as reported by TOpenCLDevice.LocalMemSize. The guaranteed minimum available memory for LocalMemSize is 32kBytes. The reported memory is in Bytes. The amount of local memory associated with the queue also may not be less than the minimum required by the kernel (if specified).

Declared in Dew::Math::TOpenCLKernel · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: void SetArgLocalMem(int argIndex, TOpenCLCommandQueue *CmdQueue, int SamplesLength, int aElemSize);

Sets the Kernel (Open CL function) parameter at argIndex to local memory size associated with the queue.

#NameTypeDescription
1argIndexint
2CmdQueueTOpenCLCommandQueue *
3SamplesLengthint
4aElemSizeint
Remarks:

The memory size assigned is equal to SamplesLength*ElemSize.

Declared in Dew::Math::TOpenCLKernel · Dew.Math/clMtxVec.h · Cross-compiler