TOpenCLKernel.SetArgLocalMem Method

Overload List

#SignatureDescription
1procedure SetArgLocalMem(argIndex: Integer; const CmdQueue: TOpenCLCommandQueue);Sets the Kernel (Open CL function) parameter at argIndex to local memory size associated with the queue.
2procedure SetArgLocalMem(argIndex: Integer; const CmdQueue: TOpenCLCommandQueue; SamplesLength: Integer; aElemSize: Integer);Sets the Kernel (Open CL function) parameter at argIndex to local memory size associated with the queue.

Overload 1: procedure SetArgLocalMem(argIndex: Integer; const CmdQueue: TOpenCLCommandQueue);

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

#NameTypeDescription
1argIndexInteger
2CmdQueueTOpenCLCommandQueue

Result: stored in self (calling object)

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).

Overload 2: procedure SetArgLocalMem(argIndex: Integer; const CmdQueue: TOpenCLCommandQueue; SamplesLength: Integer; aElemSize: Integer);

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

#NameTypeDescription
1argIndexInteger
2CmdQueueTOpenCLCommandQueue
3SamplesLengthInteger
4aElemSizeInteger

Result: stored in self (calling object)

Remarks:

The memory size assigned is equal to SamplesLength*ElemSize.