<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hello, in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178868#M1330</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;It is hard to conclude when execution times are on the order of milliseconds. Typically it is just a measurement noise. I advise increasing problem size or the number of repetitions to get conclusive results.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Sergey Maidanov&lt;/P&gt;</description>
    <pubDate>Tue, 04 Sep 2018 22:56:38 GMT</pubDate>
    <dc:creator>Sergey_M_Intel2</dc:creator>
    <dc:date>2018-09-04T22:56:38Z</dc:date>
    <item>
      <title>Facing slower performance with intel-numpy</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178867#M1329</link>
      <description>&lt;P&gt;I wanted to test how exponential moving average calculation would be faster with intel-numpy on intel python distribution.&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;But my code runs slower on ipd when compared to native python.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Setup:&amp;nbsp;​&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em;"&gt;Intel Distribution for Python 3.6.3 &lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em;"&gt;Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz &lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em;"&gt;GCC 4.8.2 20140120 - Red Hat 4.8.2-15 &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;My code:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;def ema():
   values = np.random.randint(2,9,(5000)) 
   window = 20 
   start = time.time() 
   weights = np.exp(np.linspace(-1., 0., window)) 
   weights /= weights.sum() 
   a = np.convolve(values, weights, mode='full')[:len(values)] 
   a[:window] = a[window] 
   end = time.time() 
   print(end-start) 
   return a&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;The numbers I got: &lt;/SPAN&gt;&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em;"&gt;Python - 0.00036263465881347656 &lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em;"&gt;Intel Python Distribution - 0.005644321441650391 &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I don't think I've made a mistake in the installation as I get expected speed up with the sample code in below link: &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;A href="https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl" target="_blank"&gt;https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;What could be the reason? What's the perfect way to use intel distributions for optimizing ema calculations?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 16:27:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178867#M1329</guid>
      <dc:creator>Nagarajan__Sowmiya</dc:creator>
      <dc:date>2018-08-31T16:27:05Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178868#M1330</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;It is hard to conclude when execution times are on the order of milliseconds. Typically it is just a measurement noise. I advise increasing problem size or the number of repetitions to get conclusive results.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Sergey Maidanov&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 22:56:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178868#M1330</guid>
      <dc:creator>Sergey_M_Intel2</dc:creator>
      <dc:date>2018-09-04T22:56:38Z</dc:date>
    </item>
    <item>
      <title>Along the same theme, I just</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178869#M1331</link>
      <description>&lt;P&gt;Along the same theme, I just installed Intel's Python Distribution on my i9 7980XE system running Windows 10.&amp;nbsp; For my first performance test, I ran&lt;/P&gt;

&lt;P&gt;import numpy as np&lt;BR /&gt;
	A = np.random.rand(30000,30000)&lt;BR /&gt;
	B = np.dot(A, A)&lt;/P&gt;

&lt;P&gt;and was disappointed to see my CPU utilization nowhere near 100%, like I do when I run the same code with Python 3.7 and pip-installed numpy.&amp;nbsp; Under full CPU load, the above code takes just over one minute to run under the latter set-up, but takes more than five minutes with Intel's Python (I lost patience and killed it).&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 18:52:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178869#M1331</guid>
      <dc:creator>Geary__Robert</dc:creator>
      <dc:date>2018-09-06T18:52:22Z</dc:date>
    </item>
    <item>
      <title>I hope Intel can notice this</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178870#M1332</link>
      <description>&lt;P&gt;I hope Intel can notice this issue. I am also using &lt;STRONG&gt;7980XE&lt;/STRONG&gt; and the&lt;STRONG&gt; fft2 &lt;/STRONG&gt;performance is about 50% of the anaconda stock numpy.&lt;/P&gt;&lt;P&gt;Stock numpy takes 560ms to finish the test&lt;/P&gt;
&lt;PRE class="brush:python; class-name:dark;"&gt;import numpy as np
a= np.random.random([8000,8000])
%timeit b=np.fft.fft2(a)&lt;/PRE&gt;

&lt;P&gt;Intel python 2019 takes 980ms:&lt;/P&gt;

&lt;PRE class="brush:python; class-name:dark;"&gt;import numpy as np
import mkl_fft as intel
a=np.random.random([8000,8000])
%timeit b=intel.fft2(a)&lt;/PRE&gt;

&lt;P&gt;7980XE cpu usage is only around 30% when using MKL, stock numpy can push 7980XE to 50%. Please fix this issue, giving up Intel python for now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 00:09:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Facing-slower-performance-with-intel-numpy/m-p/1178870#M1332</guid>
      <dc:creator>Wang__Haining</dc:creator>
      <dc:date>2019-01-24T00:09:36Z</dc:date>
    </item>
  </channel>
</rss>

