[Insight-users] Multi threading in ITK

Bill Lorensen bill.lorensen at gmail.com
Thu Dec 3 12:36:03 EST 2009


The environment variable ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS should
do the trick.

On Thu, Dec 3, 2009 at 12:15 PM, Luke Bloy <luke.bloy at gmail.com> wrote:
> 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
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list