[ITK] [ITK-users] ITK number of cores

Matt McCormick matt.mccormick at kitware.com
Tue May 27 00:32:17 EDT 2014


Hi Brecht,

The behavior should not change between ITK 3.# and ITK 4.#.

Which compiler / platform is this?

What is the filter?

Could an Experimental build (ctest -DExperimental) please be submitted
to the dashboard?

Thanks,
Matt

On Tue, May 20, 2014 at 11:43 AM, Brecht Heyde
<Brecht.Heyde at med.kuleuven.be> wrote:
> Dear all,
>
>
>
> When migrating from ITK 3.# to ITK 4.#, I've noticed that the total number
> of cores are not being read/set properly anymore.
>
>
>
> Taking the itkSystemInformation.cxx example in the
> ...\Modules\Core\Common\test directory and printing
> mySys.GetNumberOfPhysicalCPU() gives me:
>
> - 4 (in ITK3.#), which is correct for my quad-core machine
>
> - 0 (in ITK4.#), which is wrong
>
>
>
> Could someone provide me a hint as to why I'm seeing this behavior in the
> first place? Is a global variable set wrong when building ITK?
>
>
>
> Furthermore, initializing a filter which supports multithreading and
> printing
>
> myfilter->GetNumberOfThreads()
>
> gives me:
>
> - 4 (in ITK3.#)
>
> - 1 (in ITK4.#)
>
>
>
> I assumed that ITK sets the default number of threads always equal to the
> total number of cores?
>
> How can I know if my filter is actually using all my cores?
>
>
>
> Kind regards,
>
> Brecht Heyde
>
>
> _____________________________________
> 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.php
>
> 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
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
_____________________________________
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.php

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 Community mailing list