Ask Your Question
0

cmake configuration for maximum performance

asked 2014-08-14 04:06:15 -0600

stfn gravatar image

Hi,

normally I use the opencv stack comming with ros-hydro. But since I need some gpu implementations right now I downloaded 2.4.9 and compiled the sources on my own. I noticed that the performance of my custom build is fa behind the ros stack. FAST_MATH, WITH_EIGEN, WITH_TBB, WITH_CUDA, WITH_CUBLAS was activated, I built the release configuration. Any ideas what optimization is still missing? Also I tried to find the cmake config the ros stack (apt package: ros-hydro-opencv2) is compiled with but didn't find that much despite the jenkins log.

cheers, stfn

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-08-14 06:40:49 -0600

Vincent Rabaud gravatar image

Here are the flags used on Hydro: https://github.com/ros-gbp/opencv2-release/blob/debian/hydro/raring/opencv2/debian/rules#L20

SSE is probably the one you need to enable. Maybe there are some perf tests you can run to have a global view of your performance.

edit flag offensive delete link more

Comments

thanks, running cmake with those options lead to the same performance then. Strangely I activated the very same options with ccmake, resulting in inferior performance. Something was happening there ...

stfn gravatar imagestfn ( 2014-08-20 05:22:11 -0600 )edit

Question Tools

Stats

Asked: 2014-08-14 04:06:15 -0600

Seen: 1,477 times

Last updated: Aug 14 '14