can someone tell me if one instance of pd (with gem) can use more than one core on multi-core processor?
Beyond the new stuff with [pd~], there is also threading in new versions of [soundfiler], and there is some threading in the input/output modules of GEM, such as cameras.
There is also other forms of multiprocessing involved : part of the management of the patch windows is happening in a separate process involving Tcl/Tk. Then, depending on your OS, there is some amount of multiprocessing involved : for example, in Linux, the default display system is X11, and then, using X11 is considered as a kind of network connection between separate programmes.
So, those are all manners in which patches can spread themselves on several CPUs. However, if you want to do heavy processing using [pix_...] objects (and/or GridFlow and PDP) then all of it will use only one CPU, except for some of the I/O modules as I said above.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
On Fri, Apr 16, 2010 at 1:55 PM, Mathieu Bouchard matju@artengine.cawrote:
there is some threading in the input/output modules of GEM, such as cameras.
Could someone say a little bit more about this?
J
On Fri, 16 Apr 2010, Jaime Oliver wrote:
On Fri, Apr 16, 2010 at 1:55 PM, Mathieu Bouchard matju@artengine.ca wrote: there is some threading in the input/output modules of GEM, such as cameras. Could someone say a little bit more about this?
yeah, but *which* little bit more do you want ?
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
What do you mean by "some threading". I am particularly interested in the input modules (cameras), but in general to know what threading is being accomplished there. perhaps a general blurb of where and how is this being accomplished in gem.
furthermore, and this is a general question. If there were multithreading happening, would pd's loadmeter know about it? that is, let's say two cpu's are being used at 100%, but on separate threads, what would pd's loadmeter would show (100% or 200%)?
best,
J
On Fri, Apr 16, 2010 at 3:43 PM, Mathieu Bouchard matju@artengine.cawrote:
On Fri, 16 Apr 2010, Jaime Oliver wrote:
On Fri, Apr 16, 2010 at 1:55 PM, Mathieu Bouchard matju@artengine.ca
wrote: there is some threading in the input/output modules of GEM, such as cameras.
Could someone say a little bit more about this?
yeah, but *which* little bit more do you want ?
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
On Fri, 16 Apr 2010, Jaime Oliver wrote:
What do you mean by "some threading". I am particularly interested in the input modules (cameras),
pthread is used in [pix_film], [pix_image], [pix_movie], and also in the V4L, V4L2 and DV4L modules of [pix_video]. Pthreads may also be used implicitly by some other classes or modules that I don't know about.
If there were multithreading happening, would pd's loadmeter know about it? that is, let's say two cpu's are being used at 100%, but on separate threads, what would pd's loadmeter would show (100% or 200%)?
No idea. This depends on the times() function of POSIX, but I don't know how it works relatively to pthread. I don't know whether that is defined.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
thanks... J
On Fri, Apr 16, 2010 at 4:03 PM, Mathieu Bouchard matju@artengine.cawrote:
On Fri, 16 Apr 2010, Jaime Oliver wrote:
What do you mean by "some threading". I am particularly interested in the
input modules (cameras),
pthread is used in [pix_film], [pix_image], [pix_movie], and also in the V4L, V4L2 and DV4L modules of [pix_video]. Pthreads may also be used implicitly by some other classes or modules that I don't know about.
If there were multithreading happening, would pd's loadmeter know about
it? that is, let's say two cpu's are being used at 100%, but on separate threads, what would pd's loadmeter would show (100% or 200%)?
No idea. This depends on the times() function of POSIX, but I don't know how it works relatively to pthread. I don't know whether that is defined.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
On Fri, Apr 16, 2010 at 7:03 PM, Mathieu Bouchard matju@artengine.cawrote:
On Fri, 16 Apr 2010, Jaime Oliver wrote:
What do you mean by "some threading". I am particularly interested in the
input modules (cameras),
pthread is used in [pix_film], [pix_image], [pix_movie], and also in the V4L, V4L2 and DV4L modules of [pix_video]. Pthreads may also be used implicitly by some other classes or modules that I don't know about.
A lot of Quicktime codecs and capture drivers use multiple CPUs very well. Every DirectShow filter is on its own thread.
On Sat, 17 Apr 2010, ydegoyon@gmail.com wrote:
s'lam,
However, if you want to do heavy processing using [pix_...] objects (and/or GridFlow and PDP)
PDP has always been (optionally) threaded since its inception ( thanks to tom shouten ).
ah yes, thanks for the correction.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801