[Paraview] Paraview Python Multiprocessing

Bruce Jones bruce.david.jones at gmail.com
Tue May 26 13:16:11 EDT 2015


Thanks for the quick response Utkarsh. However, I am using the windows
binaries and have not built paraview from scratch.

Cheers,
Bruce

On Tue, 26 May 2015 at 12:00 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
wrote:

> Bruce,
>
> Try the attached patch. You'll need to apply it to the VTK subdir
> under ParaView.
>
> Utkarsh
>
> On Tue, May 26, 2015 at 11:29 AM, Bruce Jones
> <bruce.david.jones at gmail.com> wrote:
> > Hi,
> >
> > I am trying to do some parallel programming within paraviews python shell
> > and have encountered a problem. If I run the following two lines of code
> in
> > the python shell, the result is that a whole bunch of new paraview
> sessions
> > will be started...
> >
> > from multiprocessing import Pool
> > pool = Pool();
> >
> > It appears that a new paraview session is being created for each thread
> of
> > the thread pool. Unfortunately, I am not able to then use the thread
> pool to
> > run functions assynchronously.
> >
> > Regards,
> > Bruce
> >
> > _______________________________________________
> > 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 ParaView Wiki at:
> > http://paraview.org/Wiki/ParaView
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/paraview
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150526/e3e63ec5/attachment.html>


More information about the ParaView mailing list