[vtkusers] VTK Parallel

David E DeMarle dave.demarle at kitware.com
Tue Mar 23 09:22:16 EDT 2010


Of the aproaches described in the paper, VTK has the best support for Data
Parallelism. (See the very new vtkThreadedStreamingPipeline class if you
want to experiment with the others.)

To use Data Paralellism, one sets up identical pipelines in separate
processes (ie MPI). Each pipeline is given the same parameters through RMI
invocation from the root process to all of the satellites. Each pipeline is
told to process a different portion of the data through "streaming". See
vtkPolyDataMapper::SetPiece() and SetNumberOfPieces() for the easiest way to
do that.

Each process's rendering then has to be coordinated - all renderwindows must
get the same size, mouse interaction etc. That is what the
vtkParallelRenderManager class is for. Finally, the images produced by each
window, which show a different portion of the data, is depth composited. See
vtkCompositeRenderManager::SetCompositor(vtkCompositer *c.

See VTK/Rendering/Testing/Cxx/ParallelIso.cxx for an example.

Note also that within VTK's imaging filters only, there is support for
thread level data parallelism within a process.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


On Fri, Mar 19, 2010 at 6:44 PM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> On Fri, Mar 19, 2010 at 2:14 PM, Paul Gotzel
> <paul.gotzel at us.cd-adapco.com> wrote:
> > Hello,
> >
> > I'm interested in finding out  how to use the VTK's parallel rendering
> > capabilities.  I've found this paper: http://vtk.org/VTK/img/pvtk.pdf.
>  Is
> > there any more detail out there?  Maybe some examples?
> >
> > Thanks,
> > Paul
>
> If anyone has an example, here is a good place to add it :)
>
> http://www.vtk.org/Wiki/index.php?title=VTK/Examples/ThreadedExample&action=edit&redlink=1
>
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100323/c001119e/attachment.htm>


More information about the vtkusers mailing list