[Insight-users] ITK single-thread

Bradley Lowekamp blowekamp at mail.nih.gov
Thu Nov 12 08:08:38 EST 2009


There is also the environment variable ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS which can be set to one. This way you don't need to recompile or even add an option any place.

Good Luck,
Brad


On Nov 12, 2009, at 7:09 AM, Karthik Krishnan wrote:

> you could just invoke the static method itk::MUltiThreader::SetGlobalMaximumNumberOfThreads(1) and disable multithreading for ITK filters
> 
> On Wed, Nov 11, 2009 at 11:27 PM, Gator Philly <gatoratphilly at gmail.com> wrote:
> Dear ITKers, 
> 
> Most of ITK image filters are multi-threaded. How can I compile a project using ITK in single-thread instead?
> 
> Thanks a lot!
> Gator
> 
> _____________________________________
> 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
> 
> 
> 
> <ATT00001..txt>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091112/74df0ea1/attachment.htm>


More information about the Insight-users mailing list