Re: EM64T compiling options?
The Tuesday 15 July 2008 15:46:06 E. Rens, you wrote :
> The loop sharing looks exciting but openmp seems difficult to use too.
> Does openmp replace pthreads or work in combination ?
AFAIK it use pthread to work but it create all necessary pthread at startup to
avoid creating them at each loop parallelization. It should work properly
with pthreads, it wouldn't be packaged with gcc if it wasn't the case.
However I didn't test this combination.
openmp is really simple to use, easier than programming the same thing with
pthreads. You can see examples on wikipedia :
http://en.wikipedia.org/wiki/OpenMP
The purpose is to do simple parallelization. If you want to write an algorithm
which needs modification to support multi-cores, you have to do it yourself
with pthreads.
Regards
>
> Emmanuel
--
Thomas Preud'homme
Why debian : http://www.debian.org/intro/why_debian
Reply to: