[Numpy-discussion] Multithreading support
Sat Feb 13 06:25:56 CST 2010
They see a benefit when working with large arrays. Otherwise you are
limited by memory - and the extra cores don't help with memory bandwidth.
On Sat, Feb 13, 2010 at 2:20 PM, David Cournapeau <email@example.com>wrote:
> On Sat, Feb 13, 2010 at 6:20 PM, Wolfgang Kerzendorf
> <firstname.lastname@example.org> wrote:
> > Dear all,
> > I don't know much about parallel programming so I don't know how easy it
> is to do that: When doing simple arrray operations like adding two arrays or
> adding a number to the array, is numpy able to put this on multiple cores? I
> have tried it but it doesnt seem to do that. Is there a special multithread
> implementation of numpy.
> Depending on your definition of simple operations, Numpy supports
> multithreaded execution or not. For ufuncs (which is used for things
> like adding two arrays together, etc...), there is no multithread
> > IDL has this feature where it checks how many cores available and uses
> them. This feature in numpy would make an already amazing package even
> AFAIK, using multi-thread at the core level of NumPy has been tried
> only once a few years ago, without much success (no significant
> performance improvement). Maybe the approach was flawed in some ways.
> Some people have suggested using OpenMP, but nobody has every produced
> something significant AFAIK:
> Note that Linear algebra operations can run in // depending on your
> libraries. In particular, the dot function runs in // if your
> blas/lapack does.
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion