views:

62

answers:

2

Hi,

i have to parallize some code and a fried of mine suggested using boost for it. Right now i have a look into openMP and i am wondering what you think is better for that task.

A: 

Also look at intel threading building blocks.

tholomew
what is the advantage of this?
Dirk
A: 

it is up to you

I personally went with boost threads, because it found OpenMP to be very lacking once I needed more advanced features

for simple loops, OpenMP is fine, for more complex things, actual threads may be needed.

aaa
up to now i really just need simple loops, and together with visual studio 2008 it is awesomely easy: added openmp language support in project settings, included <omp.h> added this two lines in front of my for loop (#pragma omp parallel shared(foo, bar) private(i) and #pragma omp for schedule(guided) ) and i am done...
Dirk