Re: EM64T compiling options?
There is an environment variable GOMP_AFFINITY in libgomp that binds
threads to single cpus. Can I use it the same way with multi-cores (i.e
GOMP_CPU_AFFINITY="0 1 2 3" in order to bind thread 1 to core 0 etc..)?
Is this a good way to take advantage of the quad architecture?
Emmanuel
On Tue, 15 Jul 2008 16:24:49 +0200, "Thomas Preud'homme"
<thomas.preudhomme@celest.fr> said:
> 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
>
>
> --
> To UNSUBSCRIBE, email to debian-amd64-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
Reply to: