[Insight-users] openmp with itk::ImageRegionIterator

John Drescher drescherjm at gmail.com
Wed Apr 28 11:15:12 EDT 2010


On Wed, Apr 28, 2010 at 11:07 AM, Baoyun Li <baoyun_li123 at yahoo.com> wrote:
>
> Dear All:
>
> I am trying to do some parallel mutlithread coding on the itk::Image. However I have two questions:
>
> 1 OpenMP 3.0 now surpport iteration operations:
> Such as for standard stl iterator.
>
> #pragmaompparallel for
> for(it= list1.begin(); it!= list1.end(); it++)
> {
> it->compute();
> }
>
> How about for any itk::Iterator? Such as itk::ImageRegionIterator or itk::ImageNeiborhoodIterator, can I do similar things.
>
> 2: Inorder to use OpenMP3.0, I need to replace my GCC with the lastest version. I have itk,vtk and QT build by the earlier vesion of GCC. So if I replaced the GCC, do I need to rebuild itk,vtk and QT? I guess not, but I want to make sure from the experts before I replaced the GCC.
>

If you change a release series I would. And I mean by this if you go
from 4.1.X to 4.2.X or greater then yes rebuild all. Same goes from
4.2.X to 4.3.X or higher..

John


More information about the Insight-users mailing list