[Omp] Controling the number of processors that take part in an
openmp program
Nawal.Copty at Sun.COM
Nawal.Copty at Sun.COM
Fri Oct 13 11:40:59 PDT 2006
If you are using a Sun Studio compiler on Solaris, then you can use the
environment variable SUNW_MP_PROCBIND. See
http://docs.sun.com/source/819-3694/5_compiling.html#26196
In your case with two cores, setting one the following would work:
setenv SUNW_MP_PROCBIND 0
or
setenv SUNW_MP_PROCBIND 1
Regards,
Nawal Copty
Temp Tmp wrote On 10/12/06 21:55,:
> Hi !
>
> Is there a way to control the number of processors that take part in a
> program that uses the openmp lib?
>
>
> For example :
>
> My computer has 2 cores, and I want to run a program that uses 5
> threads on 1 core only.
>
> Thank You.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Omp mailing list
>Omp at openmp.org
>http://openmp.org/mailman/listinfo/omp
>
>
More information about the Omp
mailing list