[Omp] Controling the number of processors that take part in an openmp program

Kay Diederichs kay.diederichs at uni-konstanz.de
Thu Oct 12 23:06:03 PDT 2006


Temp Tmp schrieb:
> 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.
> 

yes - if this is Linux, use "taskset". Don't know if Windows has a 
similar thing.
-- 
Kay Diederichs              http://strucbio.biologie.uni-konstanz.de
email: Kay.Diederichs at uni-konstanz.de  Tel +49 7531 88 4049 Fax 3183
Fachbereich Biologie, Universität Konstanz, Box M647, D-78457 Konstanz


More information about the Omp mailing list