Tool/software: Linux
Hi,
We are going to use opencl to accelerate opencv.
We reference the http://processors.wiki.ti.com/index.php/OpenCV
UMat src, UMat dst;
cv::ocl::setUseOpenCL(true);
bgSubtractor->apply(src, dst, 0.001); // to accelerate this fun
cv::ocl::setUseOpenCL(false);
Then : export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP' and excute the app
The following is the concole output :
error: cannot find file "/usr/share/ti/ti-imglib-c66x-tree/lib/imglib.ae66"
error #10010: errors encountered during linking; "/tmp/openclCbATGF.out" not
built
>> Compilation failure
OpenCL program build log: -D RADIUSX=1 -D RADIUSY=1 -D LSIZE0=16 -D LSIZE1=16 -D OP_ERODE -D DOUBLE_SUPPORT -D PROCESS_ELEMS='PROCESS(0,0)PROCESS(0,1)PROCESS(0,2)PROCESS(1,0)PROCESS(1,1)PROCESS(1,2)PROCESS(2,0)PROCESS(2,1)PROCESS(2,2)' -D T=uchar -D DEPTH_0 -D cn=1 -D T1=uchar -D convertToWT=convert_float -D convertToT=convert_uchar_sat_rte -D ST=uchar -DHAVE_TIIMGLIB /usr/share/ti/ti-imglib-c66x-tree/lib/imglib.ae66
>> Compilation failure
[ 526.565073] omap_hwmod: mmu1_dsp2: _wait_target_disable failed
[ 526.577519] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
[ 526.590167] omap_hwmod: mmu1_dsp1: _wait_target_disable failed
[ 526.602744] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
error: cannot find file "/usr/share/ti/ti-imglib-c66x-tree/lib/imglib.ae66"
error #10010: errors encountered during linking; "/tmp/opencl50oYTk.out" not
built
>> Compilation failure
OpenCL program build log: -D RADIUSX=2 -D RADIUSY=2 -D LSIZE0=16 -D LSIZE1=16 -D OP_DILATE -D DOUBLE_SUPPORT -D PROCESS_ELEMS='PROCESS(0,0)PROCESS(0,1)PROCESS(0,2)PROCESS(0,3)PROCESS(0,4)PROCESS(1,0)PROCESS(1,1)PROCESS(1,2)PROCESS(1,3)PROCESS(1,4)PROCESS(2,0)PROCESS(2,1)PROCESS(2,2)PROCESS(2,3)PROCESS(2,4)PROCESS(3,0)PROCESS(3,1)PROCESS(3,2)PROCESS(3,3)PROCESS(3,4)PROCESS(4,0)PROCESS(4,1)PROCESS(4,2)PROCESS(4,3)PROCESS(4,4)' -D T=uchar -D DEPTH_0 -D cn=1 -D T1=uchar -D convertToWT=convert_float -D convertToT=convert_uchar_sat_rte -D ST=uchar -DHAVE_TIIMGLIB /usr/share/ti/ti-imglib-c66x-tree/lib/imglib.ae66
>> Compilation failure
Best Regards
