工具/软件:Linux
您好!
我们参考 http://processors.wiki.ti.com/index.php/OpenCV 将我们自己的 OpenCL 内核添加到 DSP.which is successful (成功)。
我们检查 了 http://processors.wiki.ti.com/index.php/Processor_Training:_Multimedia 的源 文件、将 C66x_IMG_LIB 添加 到 OpenCL 内核(例如 Canny、Sobel)中。
但是,如果我们将这些函数添加到 OpenCL 内核中:
void IMG_sobre el 3x3_8 (const unsigned char * restrict in_data、unsigned char * restrict out_data、int rows、int cols);
内核空 maskVector (全局 const uchar4* src、全局 uchar4* dst、int rows、int cols)
{
Img_sobre el 3x3_8 (src、dst、rows、cols);
}
内核将打印:
未定义的首次引用
符号
------ --------
Img_sobre el 3x3_8 /tmp/opencl45XB7I.obj
错误#10234-D:未解析的符号仍然存在
错误#10010:链接期间遇到错误;不是"/tmp/opencl45XB7I.out
已构建
>>编译失败
错误:clBuildProgram (-11、构建程序失败)
我们如何将 C66x_IMG_LIB 添加到 OpenCL 内核中?
此致