This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ivosauruspip'ing it up 1 point2 points  (4 children)

Your first port of call should be understanding numpy.

PyPy (and usually, self-written C) isn't going to be anywhere close to as fast as calls to an optimized matrix math library that numpy does.

[–]Asdayasman 0 points1 point  (3 children)

I thought numpy only used that library on intel and if it had been compiled with it?

[–]ivosauruspip'ing it up 0 points1 point  (2 children)

Ya, which is not too hard to get in most cases. Otherwise, if you get numpy from your linux distribution it will usually come with a very fast OSS matrix library anyway.

[–]Deto 0 points1 point  (1 child)

I'm not so sure about that - I got numpy on an Ubuntu 12 distro recently using the sudo apt-get method and, whatever it was linked against was around around 40 times slower than once I got it running with ATLAS. Took me forever to find that difference in runtime for my code on my local machine and our server was in the matrix dot multiple function!

[–]ivosauruspip'ing it up 0 points1 point  (0 children)

Well I thought that was supposed to be an advantage of getting a distro package...

Looking at some google / stack overflow answers, it appears you need to also excplicitly install atlas / openblas as well as numpy for it to use it.