[Insight-users] Multi threading in ITK

Luke Bloy luke.bloy at gmail.com
Thu Dec 3 12:15:11 EST 2009


Hi,

I'm wondering how ITK determines the maximal number of threads to allow 
for a single process. I've looked at itk::MultiThreader some, what I'm 
curious of is what occurs without calls to 
SetGlobalMaximumNumberOfThreads 
<http://www.itk.org/Doxygen/html/classitk_1_1MultiThreader.html#e597329907f38948e0d31bcf31fc6ba3> 
(int val) or SetGlobalDefaultNumberOfThreads 
<http://www.itk.org/Doxygen/html/classitk_1_1MultiThreader.html#de079d8e1c3581dc2ae5353aae5577a0> 
(int val).


I have a multiuser linux environment and would like to have some control 
over the default number of threads per process that itk makes at a 
system level. Id rather not have the process call 
SetGlobalMaximumNumberOfThreads 
<http://www.itk.org/Doxygen/html/classitk_1_1MultiThreader.html#e597329907f38948e0d31bcf31fc6ba3> 
themselves, so i was wondering if there was an environment variable or 
some other way to set this.

Thanks.
Luke


More information about the Insight-users mailing list