Ask Your Question
0

Opitmization with TBB [closed]

asked 2013-01-21 04:03:32 -0600

Rogeeeer gravatar image

updated 2013-01-21 04:04:35 -0600

Hi,

I have to write a real-time AR application for an internship. So I have to deal with commercial use of the libraries. I don't really know if TBB is useful because I have a Xeon + Nvidia Quadro.

I was wondering about how TBB works : I saw that optimizations are already implemented in OpenCV and including TBB when I build with Cmake will allow these optimizations to be used.

So if I write my application without TBB and do some benchmarks with the 30days evaluation later, will I see some improvements ? I think that it's to simple to work...

If I recompile OpenCV with TBB support later, will I have to recompile everything ? Because CUDA support is quite long.

Thanks !

edit retag flag offensive reopen merge delete

Closed for the following reason not a real question by sammy
close date 2013-02-04 02:09:40.714006

Comments

1

This is not a real question. Please rewrite it, and state clearly what's your programing, OpenCV-related issue. All your questions above can be answered by yourself, with a bit of work.

sammy gravatar imagesammy ( 2013-01-21 08:39:43 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-02-03 11:05:13 -0600

mgb gravatar image

You don't need the 30day evaluation TBB it is available as GPL

TBB essentially allows you to call the same function in parallel on each cpu core/hyperthread. It's useful when you have a function that does the same thing to different data, doesn't depend on the output of other calls of itself and can be split into 4/8/16 blocks.

CUDA (since you have an NVIdia card) runs instructions on the GPU, it can process 100-1000 tasks in parallel but it takes time to get the data onto and off the card - so is useful when you want to process an entire image and have functions that operate only on a local section of the image.

Yes the cuda build of opencv takes along time because CUDA pre-builds the GPU code for different cards ahead of time.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-21 04:03:32 -0600

Seen: 501 times

Last updated: Feb 03 '13