This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: Adding IMG_LIB to openCL

Part Number: AM5728

Tool/software: Linux

Hi,

We reference  http://processors.wiki.ti.com/index.php/OpenCV  to add our own opencl kernel to dsp.Which is successful.

And we checked the source of http://processors.wiki.ti.com/index.php/Processor_Training:_Multimedia  to add C66x_IMG_LIB to opencl kernel(such as Canny,Sobel).

But if we add these function to our opencl kernel :

void IMG_sobel_3x3_8 (const unsigned char *restrict in_data, unsigned char *restrict out_data, int rows, int cols);
kernel void maskVector(global const uchar4* src, global uchar4* dst,int rows,int cols )
{

IMG_sobel_3x3_8(src,dst,rows,cols);

}

The kernel will print :

undefined first referenced
symbol in file
--------- ----------------
IMG_sobel_3x3_8 /tmp/opencl45XB7I.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "/tmp/opencl45XB7I.out" not
built

>> Compilation failure
ERROR: clBuildProgram(-11, Build program failure)

How could we add C66x_IMG_LIB to opencl kernel?

Best Regards