[Numpy-discussion] Fast threading solution thoughts

Robert Kern robert.kern at gmail.com
Thu Feb 12 01:18:46 EST 2009


On Thu, Feb 12, 2009 at 00:03, Brian Granger <ellisonbg.net at gmail.com> wrote:
>> Eric Jones tried to do this with pthreads in C some time ago. His work is here:
>>
>>  http://svn.scipy.org/svn/numpy/branches/multicore/
>>
>> The lock overhead makes it usually not worthwhile.
>
> I was under the impression that Eric's implementation didn't use a
> thread pool.  Thus I thought the bottleneck was the thread creation
> time for his implementation.  Eric can you comment?

It does use a thread pool. See PyUFunc_GenericFunction:

http://svn.scipy.org/svn/numpy/branches/multicore/numpy/core/src/ufuncobject.c

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list