Ask Your Question
1

Choosing between "Concurrency" and "TBB" while building OpenCV

asked 2013-09-19 03:20:04 -0500

neo_star gravatar image

updated 2013-09-19 03:28:42 -0500

Hi All

I am building OpenCV from source to get every bit of performance out of it. So in the process of doing that I see that if I choose "TBB" the "Concurrency" gets automatically disabled.

I like to know which is efficient. Obviously I know its "TBB" but what is "Concurrency" mean here.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
3

answered 2013-09-19 03:33:01 -0500

Actually TBB option specifies that you will only using the TBB framework for concurrency optimization. However, if you select the concurrency option, it will compile the library to be able to use different concurrency frameworks, and while executing code it will automatically detect which frameworks are available on the system and use the appropriate one for you.

More info at the changelogs. Check beneath 2.4.3 where this concurrency is explained at the universal parallel_for_ implementation.

An extra benefit is that you enjoy parallelization without the need of installing TBB on your system, unless you explicitly define it in your cmake options.

edit flag offensive delete link more

Comments

So this means that i cannot have "TBB" , "OpenMP", "C=" , "GDC" all at the same. It simply means that support has been added for all of them which previously had only support for "TBB".

neo_star gravatar imageneo_star ( 2013-09-19 05:15:22 -0500 )edit

Yes that is correct.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-09-19 05:59:48 -0500 )edit
1

thank you.

neo_star gravatar imageneo_star ( 2013-09-19 06:17:44 -0500 )edit
2

answered 2013-09-20 03:17:12 -0500

Concurrency is parallel framework for Windows developed by Microsoft and distributed with Visual Studio. OpenCV uses common API for concurrent programming. TBB, GDC, Concurrency, etc are its back-ends.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2013-09-19 03:20:04 -0500

Seen: 2,357 times

Last updated: Sep 20 '13