alexaverbuch

ERROR: kernel must return void; pointer argument must point to addrSpace __global, __local, or __constant

Discussion created by alexaverbuch on Sep 27, 2009
Latest reply on Sep 29, 2009 by omkaranathan

Hi,

I have recently added a few more parameters to my Kernel and now I get the following error:

/tmp/OCLSr0DUi.cl(17): error: kernel must return void; pointer argument must
          point to addrSpace __global, __local, or __constant
  __kernel void edgeDetectKernel(    __global      uint4 * input,

After adding the new parameters I also added code in the Host to allocate memory, create buffers, set Kernel arguments, etc. I don't know where to look next...

I have had this error once before, but that was when I was (foolishly) trying to pass a pointer2pointer as a paramter.

Does anyone know what could be causing this error?

Thanks in advance,

Alex

__kernel void edgeDetectKernel( __global uint4 * input, __private uint * intermediate, __global uint * output, __global uint * clSobelOpX, __global uint * clSobelOpY, __private uint kernelCount, const uint2 sobelDim, const uint2 inputOutputDim, const uint2 intermediateDim ) { // CODE }

Outcomes