Ask Your Question
0

What is a different between Mali OpenCL SDK and OpenCL in OpenCV library

asked 2017-04-05 02:21:52 -0600

minhntu gravatar image

updated 2017-04-05 02:24:50 -0600

Hi everyone,

Do you know what is different between Mali OpenCL SDK and OpenCL in OpenCV library. I see that in Mali OpenCL SDK has some detail sample code about how to create Memory buffer, get input data, setup argument... But in OpenCL inside OpenCV library, I only need change from Mat to UMAT to have OpenCL code run on GPU? and it seems OpenCL code hidden under API? How can I change OpenCL code by my application?

Thank you very much for your sharing.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-04-05 04:31:20 -0600

Eduardo gravatar image

In my opinion:

  • Mali OpenCL SDK contains the OpenCL driver to be able to run OpenCL code on Mali GPU, like Intel OpenCL driver is to be able to run OpenCL code on Intel iGPU or Nvidia OpenCL driver for Nvidia GPU
  • OpenCL OpenCV is just some OpenCL code (similar to C++ OpenCV code in term of sentence)
edit flag offensive delete link more

Comments

So. How we modify OpenCL code on OpenCL to do our application?

minhntu gravatar imageminhntu ( 2017-04-05 22:07:57 -0600 )edit

In OpenCV we use T-API, which is a transparent API that selects the OpenCL implementation of a function if there is OpenCL enabled and if OpenCL capable hardware is available. This allows users to ignore using specific functions for OpenCL optimized directives.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-07 06:29:04 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-05 02:21:52 -0600

Seen: 570 times

Last updated: Apr 05 '17