First time here? Check out the FAQ!

Ask Your Question
0

cmake configuration for maximum performance

asked Aug 14 '14

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Aug 14 '14

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.

Preview: (hide)

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 (Aug 20 '14)edit

Question Tools

Stats

Asked: Aug 14 '14

Seen: 1,524 times

Last updated: Aug 14 '14