Ask Your Question

Speeding up Haartraining with AMD GPU and OpenCL

asked 2013-05-14 10:22:51 -0500

ApriOri gravatar image

Hello. What are the steps required for accelerating haartraining with OpenCL GPU?

I'm using openCV 2.4.5. I managed to build with OpenCL support, I have a AMD Radeon GPU but I can't figure out how to make the haartrainer use the GPU. My OpenCL detects the GPU correctly. I use the opencv_haartraining binary. Do I need to modify any source code for this to work ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-05-15 04:19:49 -0500

yid gravatar image


I tried to get the face detection run as well and tried to make the facedetect demo run. There was a compiler error in an opencl kernel on my mac using an AMD GPU. I posted my solution for that as the answer to another question here in the forum .

I had to de-comment the line #108 in my code to move the calculations to the GPU however:


just remove the two // and you the haar detection should run on the GPU.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-05-14 10:22:51 -0500

Seen: 894 times

Last updated: May 15 '13