Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/AM5728: OpenCV Performance

$
0
0

Part Number:AM5728

Tool/software: Linux

Hi Experts,

Our customer is evaluating sample code of “Example of OpenCL offload” with OpenCL/without OpenCL, during reading the following SDK manual.

Customer is using TMDSEVM572X.

http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_OpenCV.html

In the case of “Lena.png” image-data, customer was able to confirm similar performance .

-----------------------

root@am57xx-evm:~# ./helloCross

★Lena+DSP

BGR2GRAY tdiff=11.866208 ms

GaussBlur tdiff=4.691958 ms

Canny     tdiff=4.576464 ms

 

root@am57xx-evm:~# export OPENCV_OPENCL_DEVICE='disabled'

root@am57xx-evm:~# ./helloCross

★Lena+CPU

BGR2GRAY tdiff=3.656422 ms

GaussBlur tdiff=2.128656 ms

Canny     tdiff=7.731872 ms

-----------------------

 

As the next step, after customer changed Image-data which is larger than Lena.png size, customer was evaluating it again. To be more specific, customer prepared two JPEG files ( Size: A4 paper, Color, 300dpi[2600pixelx 3600pixel]) and evaluated them. As the results of this performance, it indicates very high performance as follows. Since customer doubted data-cache was working, customer tried to evaluate them alternately. However, those results indicated same results.

Would you be able to expect those results? Customer is suspecting this evaluation is incorrect.

If you will be able to share your advice/comments on this, it would be appreciated. If you needs those JPEG files, I’ll request them.

-----------------------

root@am57xx-evm:~# ./helloCross

★JPG1+DSP

BGR2GRAY tdiff=9.018402 ms

GaussBlur tdiff=4.846816 ms

Canny     tdiff=4.393464 ms

★JPG2+DSP

BGR2GRAY tdiff=0.163806 ms

GaussBlur tdiff=0.285480 ms

Canny     tdiff=0.158762 ms

 

root@am57xx-evm:~# export OPENCV_OPENCL_DEVICE='disabled'

root@am57xx-evm:~# ./helloCross

★JPG1+CPU

BGR2GRAY tdiff=47.800088 ms

GaussBlur tdiff=76.846824 ms

Canny     tdiff=265.892167 ms

★JPG2+CPU

BGR2GRAY tdiff=44.925118 ms

GaussBlur tdiff=72.242543 ms

Canny     tdiff=253.617666 ms

-----------------------

 

Best regards,

Miyazaki


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>