[Insight-users] SimpleITK Python parallel processing

Matt McCormick matt.mccormick at kitware.com
Fri Nov 30 13:06:38 EST 2012


Hi Brian,

Most filters inside SimpleITK already do multithreading automatically.
 If you check processor usage, does this seem to be the case?  Which
filters are you using?

Thanks,
Matt

On Fri, Nov 30, 2012 at 5:50 PM, Chapman, Brian <brchapman at ucsd.edu> wrote:
> I'm using SimpleITK for a script and want to exploit the multiple cores on a
> computer. I cannot use the Python multiprocessing library because the
> SimpleITK objects cannot be pickled:
>
> PicklingError: Can't pickle <type 'SwigPyObject'>: attribute lookup
> __builtin__.SwigPyObject failed.
>
> There doesn't seem to be any Python access to the multithreading features of
> the C++ class.
>
> Any suggestions for an alternative approach?
>
> Brian
>
> _____________________________________
> 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 Insight-users mailing list