[Numpy-discussion] Slow Numpy/MKL vs Matlab/MKL

Oleg Mikulya olegmikul at gmail.com
Wed Dec 7 15:38:51 EST 2011


 Agree with your statement. Yes, it is MKL, indeed. For linear equations it
is no difference, but there is difference for other functions. And yes, my
suspicions is just threading options. How to pass them to MKL from python?
Should I change some compiling options or environment options?

On Wed, Dec 7, 2011 at 2:02 AM, Pauli Virtanen <pav at iki.fi> wrote:

> 06.12.2011 23:31, Oleg Mikulya kirjoitti:
> > How to make Numpy to match Matlab in term of performance ? I have tryied
> > with different options, using different MKL libraries and ICC versions,
> > still Numpy is below Matalb for certain basic tasks by ~2x. About 5
> > years ago I was able to get about same speed, not anymore. Matlab
> > suppose to use same MKL, what it the reason of such Numpy slowness
> > (beside one, yet fundamental, task)?
>
> There should be no reason for a difference. It simply makes the calls to
> the external library, and the wrapper code is straightforward.
>
> If Numpy indeed is linked against MKL (check the build log), then one
> possible reason could be different threading options passed to MKL.
>
> --
> Pauli Virtanen
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20111207/ff264f68/attachment.html>


More information about the NumPy-Discussion mailing list