简体   繁体   English

比较NumPy与NumPy + MKL的表现

[英]compare NumPy vs. NumPy+MKL performance

So, I compiled NumPy from source, linking to MKL. 所以,我从源代码编译NumPy,链接到MKL。 Now I want to compare NumPy's performance with and without MKL. 现在我想比较NumPy在有没有MKL的情况下的表现。 Is there any way I can "tell" NumPy not to use MKL, so I can produce the benchmarks? 有什么方法可以“告诉”NumPy不要使用MKL,所以我可以制作基准吗? For instance, with numExpr we can do numexpr.use_vml = False . 例如,使用numExpr我们可以执行numexpr.use_vml = False Is there anything similar for NumPy? NumPy有类似的东西吗? I really don't wanna have to compile NumPy without MKL just for this. 我真的不想为了这个而没有MKL编译NumPy。

(Ubuntu 12.04, Python 2.7.3, NumPy 1.8, Intel Composer XE 2013 SP1) (Ubuntu 12.04,Python 2.7.3,NumPy 1.8,Intel Composer XE 2013 SP1)

据我所知,唯一的方法是在没有MKL的情况下再次编译NumPy,最好是在virtualenv ....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM