<?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 Oleksandr, in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176349#M1302</link>
    <description>&lt;P&gt;Oleksandr,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you for your response. You clearly answered my question. I now understand that IDP, Anaconda and IDP derived from Anaconda should display comparable performance.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Jules&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 01:17:02 GMT</pubDate>
    <dc:creator>kouatchou__jules</dc:creator>
    <dc:date>2018-05-03T01:17:02Z</dc:date>
    <item>
      <title>No Acceleration with IDP</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176344#M1297</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 153); font-family: Arial, sans-serif; font-size: medium;"&gt;Hi,&lt;/SPAN&gt;&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 153); font-family: Arial, sans-serif; font-size: medium;"&gt;I recently received from Intel the Intel Distribution for Python (IDP) and installed it in an Intel based cluster. I used it to see how it accelerates the test cases (I wrote) presented in:&lt;/SPAN&gt;&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;A href="https://modelingguru.nasa.gov/docs/DOC-2676" style="font-family: Arial, sans-serif;"&gt;https://modelingguru.nasa.gov/docs/DOC-2676&lt;/A&gt;&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 153); font-family: Arial, sans-serif; font-size: medium;"&gt;and did not see any gain with respect to Python in Anaconda and in IDP derived from Anaconda. I am really disappointed since I was expecting accelerations with IDP.&lt;/SPAN&gt;&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 153); font-family: Arial, sans-serif; font-size: medium;"&gt;Could you letting me know if I need to do something (for instance specific installation procedures) in order to obtain better results with IDP?&lt;/SPAN&gt;&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 153); font-family: Arial, sans-serif; font-size: medium;"&gt;Thank you in advance for your assistance.&lt;/SPAN&gt;&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 153); font-family: Arial, sans-serif; font-size: medium;"&gt;Regards,&lt;/SPAN&gt;&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;BR clear="none" style="color: rgb(0, 0, 153); font-family: Arial, sans-serif;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 153); font-family: Arial, sans-serif; font-size: medium;"&gt;Jules Kouatchou&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 17:15:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176344#M1297</guid>
      <dc:creator>kouatchou__jules</dc:creator>
      <dc:date>2018-04-30T17:15:19Z</dc:date>
    </item>
    <item>
      <title>Hi Jules,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176345#M1298</link>
      <description>&lt;P&gt;Hi Jules,&lt;/P&gt;

&lt;P&gt;IDP uses Intel MKL optimizations to accelerate numpy and scipy libraries.&amp;nbsp;Do the&amp;nbsp;test cases utilize either of these libraries? If yes, can you attach a sample code?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Preethi&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 21:08:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176345#M1298</guid>
      <dc:creator>Preethi_V_Intel</dc:creator>
      <dc:date>2018-04-30T21:08:27Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176346#M1299</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Preethi,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you for responding to my request.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;To simplify the process, I am interested in the two test cases presented In:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-distribution-for-python/topic/777328" style="font-family: -webkit-standard;"&gt;https://software.intel.com/en-us/forums/intel-distribution-for-python/topic/777328&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When I run them, IDP (that I obtained from Intel), Anaconda and IDP from Anaconda give the same elapsed times.&lt;/P&gt;

&lt;P&gt;I also used the Gauss Legendre quadrature (see code below) and did not see any difference.&lt;/P&gt;

&lt;P&gt;Thank you for your assistance.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Jules&lt;/P&gt;

&lt;P&gt;#-----------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;import numpy as np&lt;BR /&gt;
	from scipy import integrate&lt;BR /&gt;
	from numpy import *&lt;BR /&gt;
	import sys&lt;/P&gt;

&lt;P&gt;f = lambda x: np.exp(x)&lt;/P&gt;

&lt;P&gt;order = int(sys.argv[1])&lt;BR /&gt;
	a = -3.0&lt;BR /&gt;
	b = 3.0&lt;/P&gt;

&lt;P&gt;# Gauss-Legendre (default interval is [-1, 1])&amp;nbsp;&lt;BR /&gt;
	x, w = np.polynomial.legendre.leggauss(order)&lt;BR /&gt;
	# Translate x values from the interval [-1, 1] to [a, b]&lt;BR /&gt;
	t = 0.5*(x + 1)*(b - a) + a&lt;BR /&gt;
	gauss = sum(w * f(t)) * 0.5*(b - a)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 01:55:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176346#M1299</guid>
      <dc:creator>kouatchou__jules</dc:creator>
      <dc:date>2018-05-01T01:55:06Z</dc:date>
    </item>
    <item>
      <title>Preethi,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176347#M1300</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Preethi,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I am sorry that I provided the wrong link in my previous message. Her is the right one:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.infoworld.com/article/3187484/software/how-does-a-20x-speed-up-in-python-grab-you.html" target="_blank"&gt;https://www.infoworld.com/article/3187484/software/how-does-a-20x-speed-up-in-python-grab-you.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Jules&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 02:03:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176347#M1300</guid>
      <dc:creator>kouatchou__jules</dc:creator>
      <dc:date>2018-05-01T02:03:59Z</dc:date>
    </item>
    <item>
      <title>Hi Jules,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176348#M1301</link>
      <description>&lt;P&gt;Hi Jules,&lt;BR /&gt;
	&lt;BR /&gt;
	Intel is striving to enable as many Python developers/users as possible to utilize Intel hardware to its fullest.&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	Intel (R) Distribution for Python* was created to make fast delivery of these optimizations to the community possible, but the ultimate goal was to accomplish even wider adoption through upstreaming and partnership with Python distributors.&lt;/P&gt;

&lt;P&gt;Anaconda recently adopted our patches, see &lt;A href="https://github.com/AnacondaRecipes/numpy-feedstock/tree/master/recipe" target="_blank"&gt;https://github.com/AnacondaRecipes/numpy-feedstock/tree/master/recipe&lt;/A&gt;, and thus performance of NumPy-based Python code, as run in Intel Distribution for Python* and as run in default Anaconda, are comparable to each other.&lt;/P&gt;

&lt;P&gt;Consider three conda environments:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;conda create -n idp -c intel ipython numpy scipy python=3 --yes
conda create -n anac5 ipython numpy scipy python=3 --yes
conda create -n anac5-nomkl ipython nomkl numpy scipy python=3 --yes&lt;/PRE&gt;

&lt;P&gt;I use the following snippet for performance comparison:&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;import numpy as np
import datetime as dt
import sys

dim = 2000
x = np.random.randn(dim, dim) + 1j * np.random.randn(dim, dim)

if len(sys.argv) &amp;lt; 1:
        print('Usage:')
        print('     ./fft.py N')
        print('Please specify the number of iterations.')
        sys.exit()

N = int(sys.argv[1])

begTime = dt.datetime.now()
for __ in range(N):
        y = np.fft.fft2(x)
endTime = dt.datetime.now()

diffTime = endTime - begTime
print('Time for 2D FFT calculations (',N,'):', diffTime.total_seconds(),'s')&lt;/PRE&gt;

&lt;P&gt;With the following results:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;(anac5) [20:01:02 skl-ubuntu perfQ]$ python fft.py 100
Time for 2D FFT calculations ( 100 ): 0.558279 s

(anac5) [20:01:05 skl-ubuntu perfQ]$ . activate idp
(idp) [07:11:36 skl-ubuntu perfQ]$ python fft.py 100
Time for 2D FFT calculations ( 100 ): 0.56407 s
(idp) [07:11:39 skl-ubuntu perfQ]$ python fft.py 100
Time for 2D FFT calculations ( 100 ): 0.482773 s

(idp) [07:11:48 skl-ubuntu perfQ]$ . activate anac5-nomkl
(anac5-nomkl) [07:11:58 skl-ubuntu perfQ]$ python fft.py 100
Time for 2D FFT calculations ( 100 ): 21.026044 s
(anac5-nomkl) [07:12:22 skl-ubuntu perfQ]$ . activate bare

(bare) [07:12:41 skl-ubuntu perfQ]$ python fft.py 100
Time for 2D FFT calculations ( 100 ): 21.188223 s
&lt;/PRE&gt;

&lt;P&gt;Here the environment bare is Anaconda's CPython interpreter and pip-installed numpy and scipy.&amp;nbsp; As you can see nomkl build of NumPy by Anaconda performs on par with NumPy distributed through PyPI, while MKL-optimized NumPy performs on par with IDP.&lt;/P&gt;

&lt;P&gt;Sincerely,&lt;BR /&gt;
	Oleksandr&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 12:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176348#M1301</guid>
      <dc:creator>Oleksandr_P_Intel</dc:creator>
      <dc:date>2018-05-02T12:27:00Z</dc:date>
    </item>
    <item>
      <title>Oleksandr,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176349#M1302</link>
      <description>&lt;P&gt;Oleksandr,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you for your response. You clearly answered my question. I now understand that IDP, Anaconda and IDP derived from Anaconda should display comparable performance.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Jules&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 01:17:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176349#M1302</guid>
      <dc:creator>kouatchou__jules</dc:creator>
      <dc:date>2018-05-03T01:17:02Z</dc:date>
    </item>
    <item>
      <title>After the Latest Update I can</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176350#M1303</link>
      <description>&lt;P&gt;After the Latest Update I can't run module TBB or this Simple test:&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;import time
import dask.array as da

t0 = time.time()

x = da.random.random((10000, 10000), chunks=(4096, 4096))
x.dot(x.T).sum().compute()

print(time.time() - t0)&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/pt-br/node/779746"&gt;https://software.intel.com/pt-br/node/779746&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Edited: Solved by Todd (Intel), thanks&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 16:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/No-Acceleration-with-IDP/m-p/1176350#M1303</guid>
      <dc:creator>abarb</dc:creator>
      <dc:date>2018-05-31T16:07:00Z</dc:date>
    </item>
  </channel>
</rss>

