Why Opencv GPU code is slower than CPU?

后端 未结 5 1028
死守一世寂寞
死守一世寂寞 2020-12-13 16:02

I\'m using opencv242 + VS2010 by a notebook.
I tried to do some simple test of the GPU block in OpenCV, but it showed the GPU is 100 times slower than CPU codes. In this

5条回答
  •  无人及你
    2020-12-13 16:24

    cvtColor isn't doing very much work, to make grey all you have to is average three numbers.

    The cvColor code on the CPU is using SSE2 instructions to process upto 8 pixels at once and if you have TBB it's using all the cores/hyperthreads, the CPU is running at 10x the clock speed of the GPU and finally you don't have to copy data onto the GPU and back.

提交回复
热议问题