Fwd: [vtkusers] Is multithreading available for vtk python wrappers ?

Charl P. Botha cpbotha at cpbotha.net
Thu Jun 21 10:28:45 EDT 2007


---------- Forwarded message ----------
From: Charl P. Botha <cpbotha at cpbotha.net>
Date: Jun 21, 2007 4:28 PM
Subject: Re: [vtkusers] Is multithreading available for vtk python wrappers ?
To: Olivier Feys <pytkvtk at gmail.com>


On 6/12/07, Olivier Feys <pytkvtk at gmail.com> wrote:
> I'm using vtk python shared librairies from python in a graphical
> interface for finite element meshes.
> I have two questions :
> - Is it possible to enable multi threading for this use of vtk?
> - If multi threading isn't possible, how could I speed up my post
> processing using vtk ?

Many VTK filters are multithreaded and will also make use of more than
one thread (if you have more than one CPU or core) when called from
Python.  However, multiple threads from Python will not work as
expected due to the global interpreter lock.

Good luck,
Charl



More information about the vtkusers mailing list