[SciPy-dev] weave -- inline C/C++ in Python, an implementation

eric eric at scipy.org
Fri Jan 4 22:46:11 CST 2002


Hey Fernando,

> Still failing on a Mandrake box:
>
> Abort
>
> And I'm dumped out at the system prompt. ???

Oooo. Thats no good.  This looks like a problem in the blitz() stuff.  I
just tested on another Linux system, and everything worked there (though it
took 15 minutes...).Here's all the pertinent information for that machine:

[ej at beowulf1 ~]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)

[ej at beowulf1 ~]$ python
Python 2.1.1 (#2, Sep  6 2001, 03:17:03)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-85)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> Numeric.__version__
'20.1.1'

How does this compare to your setup?  Is there anything else we should
compare?  Unfortunately I don't have access to a Mandrake box to check
things -- but I thought they were very similar to RH in their setup.

You might get a little more of a clue what is breaking by changing line 81
of weave/tests/test_blitz_tools.py from:
           blitz_tools.blitz(expr,arg_dict,{},verbose=0)
to
          blitz_tools.blitz(expr,arg_dict,{},verbose=2)

This will print out all the compilation steps.  However, I have a feeling
they are working, and the abort occurs when trying to import the compiled
library.  Still, maybe we can glean something.

Also, to test everything except for blitz, you can comment out the test()
and test_suite() functions at the bottom of weave.blitz_tools.py.  This will
allow you to test whether non-blitz/Numeric stuff is working.

thanks,
eric

----- Original Message -----
From: "Fernando Pérez" <fperez at pizero.colorado.edu>
To: <scipy-dev at scipy.org>
Sent: Friday, January 04, 2002 7:39 PM
Subject: Re: [SciPy-dev] weave -- inline C/C++ in Python, an implementation


> Still failing on a Mandrake box:
>
> [snip early part]
>
> No test suite found for  weave.sequence_spec
> ..
> Expression: result[1:-1,1:-1] = (b[1:-1,1:-1] + b[2:,1:-1] + b[:-2,1:-1]+
> b[1:-1,2:] + b[1:-1,:-2])
> / 5.
> Run: (10, 10) f
> 1st run(Numeric,compiled,speed up):  0.0026, 30.1661, 0.0001
> 2nd run(Numeric,compiled,speed up):  0.0011, 0.0047, 0.2285
> Run: (50, 50) f
> 1st run(Numeric,compiled,speed up):  0.0014, 0.0048, 0.2860
> 2nd run(Numeric,compiled,speed up):  0.0017, 0.0048, 0.3601
> Run: (100, 100) f
> 1st run(Numeric,compiled,speed up):  0.0030, 0.0054, 0.5426
> 2nd run(Numeric,compiled,speed up):  0.0027, 0.0058, 0.4589
> Run: (500, 500) f
> 1st run(Numeric,compiled,speed up):  0.0931, 0.0260, 3.5852
> 2nd run(Numeric,compiled,speed up):  0.0955, 0.0266, 3.5889
> Run: (1000, 1000) f
> 1st run(Numeric,compiled,speed up):  0.3852, 0.0866, 4.4467
> 2nd run(Numeric,compiled,speed up):  0.8154, 0.1647, 4.9497
> Run: (10, 10) d
> Abort
>
>
> And I'm dumped out at the system prompt. ???
>
> (this is with the updated code which fixes the cerr prob.)
>
> cheers,
>
> f.
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
>





More information about the Scipy-dev mailing list