[SciPy-dev] installation and linalg2 bench
arnd.baecker at physik.uni-ulm.de
arnd.baecker at physik.uni-ulm.de
Sun Apr 7 09:20:35 EDT 2002
Hi,
I successfully installed a CVS scipy (cvs_version = (1, 68, 1455, 3473))
- everything went quite smooth
(I found site.cfg very convenient!).
There were just 2
[[Installation was on a debian woody, self-compiled
Python 2.2.1c2 (#1, Apr 4 2002, 18:54:47)
[GCC 2.95.4 20011006 (Debian prerelease)] on linux2,
self-compiled ATLAS 3.3.14, CVS Numeric 22.0a0 ]]
Running
scipy.test(10)
gives the following messages, which I find a bit irritating
(though they might not be crucial ?)
1.)
creating test suite for: scipy.common
!! FAILURE building test for scipy.common
<string>:1: ImportError: No module named test_common (in ?)
2.)
creating test suite for: scipy.stats.stats
!! FAILURE building test for scipy.stats.stats
<string>:1: ImportError: No module named test_stats (in ?)
3.)
[...]
1st run(Numeric,compiled,speed up): 2.3194, 1.0310, 2.2498
2nd run(Numeric,compiled,speed up): 2.4009, 0.9876, 2.4310
.warning: specified build_dir '_bad_path_' does not exist or is or is not
writable. Trying default locations
...warning: specified build_dir '..' does not exist or is or is not
writable. Trying default locations
.warning: specified build_dir '_bad_path_' does not exist or is or is not
writable. Trying default locations
...warning: specified build_dir '..' does not exist or is or is not
writable. Trying default locations
....................................
test printing a value:2
../home/abaecker/.python22_compiled/sc_9a25bc84add18fe6c75501f6b01bd84e1.cpp:
In function `struct PyObject * compiled_func(PyObject *, PyObject *)':
/home/abaecker/.python22_compiled/sc_9a25bc84add18fe6c75501f6b01bd84e1.cpp:418:
no match for `Py::String & < int'
/home/abaecker/PYTHON/lib/python2.2/site-packages/scipy/weave/CXX/Objects.hxx:390:
candidates are: bool Py::Object::operator <(const Py::Object &) const
/home/abaecker/PYTHON/lib/python2.2/site-packages/scipy/weave/CXX/Objects.hxx:1433:
bool Py::operator <(const Py::SeqBase<Py::Object>::const_iterator &, const
Py::SeqBase<Py::Object>::const_iterator &)
/home/abaecker/PYTHON/lib/python2.2/site-packages/scipy/weave/CXX/Objects.hxx:1426:
bool Py::operator <(const Py::SeqBase<Py::Object>::iterator &, const
Py::SeqBase<Py::Object>::iterator &)
........
[...]
-----------------------------------------------------------------------
Ran 304 tests in 859.017s
4.) Finally I did the benchmarking
(note that this is on a PII, 350 MHz ... ;-)
>>> import scipy.linalg2
>>> scipy.linalg2.basic.test()
................................
Finding matrix determinant
==================================
| contiguous | non-contiguous
----------------------------------------------
size | scipy | Numeric | scipy | Numeric
20 | 1.14 | 2.47 | 1.13 | 2.84 (secs for 2000 calls)
100 | 2.21 | 8.24 | 2.18 | 9.58 (secs for 300 calls)
500 | 2.06 | 11.81 | 2.05 | 12.34 (secs for 4 calls)
.
Solving system of linear equations
==================================
| contiguous | non-contiguous
----------------------------------------------
size | scipy | Numeric | scipy | Numeric
20 | 1.70 | 2.09 | 1.67 | 2.47 (secs for 2000 calls)
100 | 2.21 | 7.67 | 2.23 | 9.19 (secs for 300 calls)
500 | 2.01 | 11.55 | 2.03 | 12.24 (secs for 4 calls)
.
Finding matrix inverse
==================================
| contiguous | non-contiguous
----------------------------------------------
size | scipy | Numeric | scipy | Numeric
20 | 2.22 | 4.27 | 2.25 | 4.53 (secs for 2000 calls)
100 | 5.78 | 23.75 | 5.77 | 24.99 (secs for 300 calls)
500 | 5.84 | 46.16 | 5.85 | 46.57 (secs for 4 calls)
.
----------------------------------------------------------------------
Ran 35 tests in 294.343s
Best,
Arnd
More information about the SciPy-Dev
mailing list