Ask Your Question
0

Speeding up Haartraining with AMD GPU and OpenCL

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

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
0

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

yid gravatar image

Hi,

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:

//setDevice(oclinfo[0]);

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

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 1,371 times

Last updated: May 15 '13