Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Passsing size of a parameter to the kernel

Hi,

I have a kernel that has a local variable __local int* sbuff as parameter. I want to set its size dynamically. In normal opencl we can do that using setkernelArg function. But in OpenCV they provides a wrapper to execute kernel and passing parameter. For example, we use openCLExecuteKernel to execute kernel and args.push_back to pass parameter.

My question is how I can pass the size of the local variable to the kernel using OpenCV's functions?