[vtk-developers] vtkImageData 16-byte alignment for SSE

David E DeMarle dave.demarle at kitware.com
Wed Jan 4 08:11:53 EST 2012


There might be some better way, but if not you have to manage array
allocation  yourself via vtkAbstractArray::SetVoidArray to ensure that the
storage is aligned.

Making the whole pipeline respect the alignment would require some more
work.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Wed, Jan 4, 2012 at 7:18 AM, Tim Hutton <tim.hutton at gmail.com> wrote:

> Hello,
>
> For SSE we need arrays aligned on 16-byte boundaries but VTK doesn't
> currently seem to do this for (e.g.) vtkImageData. Is there any way to
> achieve this? Or support for adding it as an option?
>
> Thanks,
>
> Tim
>
> --
> Tim Hutton - http://www.sq3.org.uk -
> http://profiles.google.com/tim.hutton/
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120104/cc1439df/attachment.html>


More information about the vtk-developers mailing list