[SciPy-user] Anybody used weave.blitz to speed NumPy up?

Travis Oliphant oliphant.travis at ieee.org
Thu Jun 29 01:55:42 EDT 2006


Travis Oliphant wrote:
> Fernando Perez wrote:
>> On 6/28/06, Travis Oliphant <oliphant at ee.byu.edu> wrote:
>>>
>>> Hello.
>>>
>>> I've been playing around with weave and NumPy.  I have not been able to
>>> get weave.blitz to speed up any expression.  Has anybody had success at
>>> doing this with new NumPy.
>>
>> Try the attached script, which JDH wrote for one of our workshops last
>> year, and which I cleaned up for current numpy/weave for the April
>> one.  Run it /twice/, since the first time the compilation overhead
>> will swamp the weave.blitz results.  I've attached the result on my
>> machine for the second run, which do show an improvement (and a
>> similar one to what I recall from last summer, when John and I ran
>> this using Numeric/Old Scipy).
> Thanks Fernando.
>
> This is what I'm getting when running this script.   I don't 
> understand what is going on?  The weave.blitz version is not helping 
> at all.

There are two runs shown (the first run where compilation occurred is 
not shown).   So, these results are not due to compilation time...

I'm use g++ 3.4.1 to compile the .cpp code.  

-Travis




More information about the SciPy-User mailing list