Numpy not using optimized multiplication routines

Asked by Alex Grubb

I'm trying to use python-numpy on 9.04 and simple benchmark computations are taking an extremely long time, I.E. a random 5000x5000 array takes over 3 minutes to multiply by itself when using dot(). Matlab equivalents take ~10-20s.

I suspect it's because the package isn't using ATLAS/BLAS/etc. for the computation, but I'm not entirely sure how to verify/fix it, short of building and installing numpy and it's dependencies myself.

Both blas and lapack packages are installed (atlas is not):

$ dpkg --get-selections | grep blas
libblas3gf install
$ dpkg --get-selections | grep lapack
liblapack3gf install

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu python-numpy Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Grubb
Solved:
Last query:
Last reply:
Revision history for this message
Alex Grubb (agrubb) said :
#1

Installing the libatlas3gf-base package manually has brought the performance much more in line with the Matlab performance, down to about 40s.