OpenCL not using GPU with HAAR evaluator

asked 2016-02-16 09:27:25 -0500

crynsane gravatar image

As the title says, when I use a HAAR cascade (new or old format) cv::ocl::setUseOpenCL() command has no effect on detection speed or graphic card memory usage. When I change the cascade to an LBP one, switching OpenCL on and off using the aforementioned command yields almost 2x difference in achieved FPS and a significant difference in graphic card memory usage. Another weird thing is that this happens no matter whether I use cv::Mat or cv::UMat, the latter being a little slower due to data copying.


General configuration for OpenCV 3.1.0-dev =====================================
  Version control:               3.1.0-117-g35014a9

    Host:                        Linux 3.19.0-20-lowlatency x86_64
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/make
    Configuration:               Release
  Other third-party libraries:
    Use IPP:                     9.0.1 [9.0.1]
         at:                     /mnt/OpenCV/opencv/3rdparty/ippicv/unpack/ippicv_lnx
    Use IPP Async:               NO
    Use VA:                      NO
    Use Intel VA-API/OpenCL:     NO
    Use Eigen:                   YES (ver 3.2.0)
    Use Cuda:                    YES (ver 6.5)
    Use OpenCL:                  YES
    Use custom HAL:              NO
  OpenCL:                        <dynamic loading="" of="" opencl="" library="">
    Include path:                /mnt/OpenCV/opencv/3rdparty/include/opencl/1.2
    Use AMDFFT:                  NO
    Use AMDBLAS:                 NO
  Graphic card:
    NVidia GTX 760
edit retag flag offensive close merge delete