[Numpy-discussion] Fast threading solution thoughts

Robert Kern robert.kern@gmail....
Thu Feb 12 00:18:46 CST 2009


On Thu, Feb 12, 2009 at 00:03, Brian Granger <ellisonbg.net@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