Guide
OpenCL is a framework for writing programs that execute on these heterogenous platforms. The developers of an OpenCL library utilize all OpenCL compatible devices (CPUs, GPUs, DSPs, FPGAs etc) they find on a computer / device and assign the right tasks to the right processor.
Keep in mind that as a user of OpenCV library you are not developing any OpenCL library. In fact you are not even a user of the OpenCL library because all the details are hidden behind the transparent API/TAPI.
config
cmake config by default for compiling OpenCV:
WITH_OPENCL ON
example
Mat
1 |
|
UMat
1 |
|
UMat with transparent API/TAPI
Reference
History
- 20190626: created.