OpenCV can be built with OpenMP support to force computing functions to use all available kernels on your computer. It can also be built with OpenCL and CUDA. In addition, it has various SIMD optimization flags.
If you do not create it with such support, it will work with a single thread.
In both versions, calling the OpenCV function blocks the startup thread until it computes all operations. This is true even when offloading computing to a GPU.
VAndrei
source share