[vtkusers] vtkThreadedController

Laurence Griffiths lgriffiths.aero at gmail.com
Tue Aug 6 15:01:58 EDT 2013


I did have a quick look at vtkMultiThreader, however in python & vtk6.0, 
vtkMultiThreader doesnt have the attributes SetSingleMethod or 
SetMultipleMethod.

I will file a report on Mentis.

Cheers,
Laurence.

On 06/08/2013 03:27, Berk Geveci wrote:
> You can still use threads - see vtkMultiThreader. However, be aware 
> that there is lots of parts of VTK that are not thread safe. We are 
> working on improving VTK's thread safely but it is a long road.
>
> -berk
>
>
> On Fri, Aug 2, 2013 at 2:40 PM, Laurence Griffiths 
> <lgriffiths.aero at gmail.com <mailto:lgriffiths.aero at gmail.com>> wrote:
>
>     Just incase someone reads my previous post and thinks they will
>     attempt the same with python threads:
>     The global interpreter lock on threads, means things wont run in
>     parallel.
>     And for anything to be passed to a multiprocess, it must be
>     ´pickelable (vtk objects are not)
>     Will use MPI.
>
>
>     On Fri, Aug 2, 2013 at 4:31 PM, Berk Geveci
>     <berk.geveci at kitware.com <mailto:berk.geveci at kitware.com>> wrote:
>
>         Hi Laurence,
>
>         We deprecated vtkThreadedController quite a while ago. It
>         wasn't being maintained and until now, we thought it wasn't
>         being used. Are you using it in an application? What is your
>         use case?
>
>         Best,
>         -berk
>
>
>
>         On Fri, Aug 2, 2013 at 9:58 AM, Laurence Griffiths
>         <lgriffiths.aero at gmail.com <mailto:lgriffiths.aero at gmail.com>>
>         wrote:
>
>             Does anybody know what happened to vtkThreadedController.
>             I cannot find it anywhere in vtk6.0.0.
>             An example seems to hint that its possible to get a
>             vtkThreadedController by using vtkMultiProcessController
>             without MPI:
>             http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/ParallelProcessing/Generic/Cxx/TaskParallelismWithPorts.cxx
>             however vtkMultiProcessControler is an abstract class, so
>             i am unable to use it as shown in the exmaple.
>             Another example suggests the same using vtkMPIController
>             without MPI to get a threaded controller:
>             http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/ParallelProcessing/Generic/Cxx/TaskParallelism.cxx
>             However for me this doesnt seem to work, I get mpi errors
>             if i try to inialise the MPIController without MPI.
>             Doesnt anyone have any hints on how to make a
>             threadedcontroller work in vtk6.0.0
>             Cheers,
>             Laurence.
>
>             _______________________________________________
>             Powered by www.kitware.com <http://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
>
>
>
>
>     _______________________________________________
>     Powered by www.kitware.com <http://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/20130806/67c6bf8c/attachment.htm>


More information about the vtkusers mailing list