Ask Your Question
1

Question about OpenCL versus GPU

asked 2013-10-20 22:34:22 -0500

Yi Zhang gravatar image

updated 2013-10-21 00:54:21 -0500

Moster gravatar image

My question is: What is the difference between OpenCL and GPU? For example: In the OpenCV 2.4.4 documentation, there are two items of OpenCV API Reference, respectively gpu. GPU-accelerated Computer Vision and ocl. OpenCL-accelerated Computer Vision.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-10-21 00:53:38 -0500

Moster gravatar image

The gpu module uses the CUDA api which is limited to nvidia GPUs. http://docs.opencv.org/modules/gpu/doc/introduction.html

OpenCL is a more general solution to accelerate algorithms on various devices, including GPUs(amd, nvidia), CPUs, FPGAs, etc. So its not limited to GPUs like CUDA. The device still needs to have OpenCL support though. http://docs.opencv.org/modules/ocl/doc/introduction.html

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-10-20 22:34:22 -0500

Seen: 174 times

Last updated: Oct 21 '13