<?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 Hi Ying, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115207#M24609</link>
    <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;thanks for the investigation. I ran my Matlab 2016a with both versions of MKL (the one shipped with Matlab and the current) and found under "version -modules" only the following MKL related files:&lt;/P&gt;

&lt;P&gt;MKL 11.3.3, Matlab 2016a&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.3.207\windows\redist\intel64\mkl\mkl_core.dll Version 11.3&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.3.207\windows\redist\intel64\mkl\mkl_intel_thread.dll Version 11.3&lt;BR /&gt;
	C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.3.207\windows\redist\intel64\mkl\mkl_rt.dll Version 11.3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;MKL 11.2.3 (shipped with Matlab), Matlab 2016a&lt;/P&gt;

&lt;P&gt;C:\Program Files\MATLAB\R2016a\bin\win64\mkl.dll Version &amp;lt;unknown&amp;gt;&lt;/P&gt;

&lt;P&gt;So it seems that an AVX related file is not even loaded in my case. But checking with "version -blas", I find that under both circumstances (and with environment variable MKL_CBWR&amp;nbsp;in Windows set to SSE2) the CNR is still set to AVX2.&lt;/P&gt;

&lt;P&gt;I will download the new MKL 2017 as soon as released and give an update.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 13:55:28 GMT</pubDate>
    <dc:creator>Maximilian_B_</dc:creator>
    <dc:date>2016-08-31T13:55:28Z</dc:date>
    <item>
      <title>CNR setting does not work as expected</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115201#M24603</link>
      <description>&lt;P&gt;I am working on different machines (notebook and cloud, all Win7) and thus want to set CNR manually to get reproducible results (e.g. when working with Matlab).&lt;/P&gt;

&lt;P&gt;Thus, and using the latest MKL version, I run the following in cmd:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;cd "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.3.207\windows\mkl\bin"
@call mklvars.bat intel64 &amp;amp;&amp;amp; set MKL_CBWR=SSE2 &amp;amp;&amp;amp; set BLAS_VERSION=mkl_rt.dll &amp;amp;&amp;amp; set LAPACK_VERSION=mkl_rt.dll
"C:\Program Files\MATLAB\R2016a\bin\matlab.exe"&lt;/PRE&gt;

&lt;P&gt;Matlab starts and uses the latest MKL version, as expected.&lt;/P&gt;

&lt;P&gt;However, the CNR branch does not change and is still AVX2 (not SSE2, as requested).&lt;/P&gt;

&lt;P&gt;Can you help me with that? Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 12:09:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115201#M24603</guid>
      <dc:creator>Maximilian_B_</dc:creator>
      <dc:date>2016-08-29T12:09:57Z</dc:date>
    </item>
    <item>
      <title>Hi Maximilian, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115202#M24604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/1474413" style="font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;Maximilian&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;We will check this. Could you please let us know how do you check "&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;the CNR branch does not change and is still AVX2 (not SSE2, as requested)."&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:30:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115202#M24604</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-08-30T02:30:06Z</dc:date>
    </item>
    <item>
      <title>Thank you for your fast reply</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115203#M24605</link>
      <description>&lt;P&gt;Thank you for your fast reply. I give some more information:&lt;/P&gt;

&lt;P&gt;I loaded Matlab (2016a) without changing anything and then ran&lt;/P&gt;

&lt;PRE class="brush:;"&gt;version -blas&lt;/PRE&gt;

&lt;P&gt;in the Matlab command shell, which gave me following information:&lt;/P&gt;

&lt;PRE class="brush:;"&gt;Intel(R) Math Kernel Library Version 11.2.3 Product Build 20150413 for Intel(R) 64 architecture applications, 
CNR branch AVX2&lt;/PRE&gt;

&lt;P&gt;This is the default MKL shipped with Matlab. I then downloaded the latest Intel MKL and Microsoft Visual Studio and ran the above code in the hope to compile a new MKL with CNR set to SSE2 (which is the setting on my cloud, that I cannot change).&lt;/P&gt;

&lt;P&gt;In the new Matlab which opens, I run the version check again and get following&lt;/P&gt;

&lt;PRE class="brush:;"&gt;Intel(R) Math Kernel Library Version 11.3.3 Product Build 20160413 for Intel(R) 64 architecture applications, 
CNR branch AVX2&lt;/PRE&gt;

&lt;P&gt;Thus, Matlab now uses the latest MKL version, however CNR is still set to AVX2 and not SSE2.&lt;/P&gt;

&lt;P&gt;Thats what I would like to change to get reproducible results from the cloud machines and my notebook.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 08:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115203#M24605</guid>
      <dc:creator>Maximilian_B_</dc:creator>
      <dc:date>2016-08-30T08:10:00Z</dc:date>
    </item>
    <item>
      <title>Hi Max, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115204#M24606</link>
      <description>&lt;P&gt;Hi Max,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for let us know.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;We can see the problem as well. Will test the latest MKL version and let you know.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But how about you &amp;nbsp;use Matlab directly? &amp;nbsp;i guess, this may beyond of our control as Matlab have MKL build in and may be have CNR set internally. &amp;nbsp; Moreover , change to the unsupported MKL version was&amp;nbsp;undocumented feature and we do not guarantee that it works with addon feature.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 08:35:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115204#M24606</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-08-30T08:35:12Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115205#M24607</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;thank you very much. It would be great if you could have a look at this issue.&lt;/P&gt;

&lt;P&gt;I asked the Matlab support whether Matlab overrides the CNR setting in environment variable MKL_CBWR, or whether CNR has to be set differently to work in Matlab. I am waiting for an answer so far.&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:28:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115205#M24607</guid>
      <dc:creator>Maximilian_B_</dc:creator>
      <dc:date>2016-08-30T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Hi Max,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115206#M24608</link>
      <description>&lt;P&gt;Hi Max,&lt;/P&gt;

&lt;P&gt;Thanks for the update.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;We&amp;nbsp;tested&amp;nbsp;Matlab2015b with&amp;nbsp;the latest version&amp;nbsp; MKL 2017, it seems there are some changes&amp;nbsp;when load modules (below)&amp;nbsp;. but it still uses AVX2 dll at my sides(when run A*B).&amp;nbsp; You may suppose to get MKL 2017 next month,&amp;nbsp;please let us know if any result. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&lt;/P&gt;

&lt;P&gt;MKL 11.3.3 in Matlab 2015b&lt;/P&gt;

&lt;P&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt;"&gt;We use “version –module”,&amp;nbsp;&amp;nbsp; when load mkl_rt.dll,&amp;nbsp; it will load&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;"&gt;mkl_avx2.dll&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;"&gt;mkl_core.dll&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;"&gt;mkl_intel_thread.dll&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt;"&gt;automatically.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt;"&gt;MKL 2017 in Matlab 2015b&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt;"&gt;We use “version –module”,&amp;nbsp;&amp;nbsp; when load mkl_rt.dll,&amp;nbsp; it will load&amp;nbsp;&amp;nbsp;two of them&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;"&gt;mkl_core.dll&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;"&gt;mkl_intel_thread.dll&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&lt;SPAN lang="EN-US" style="color: rgb(31, 73, 125); font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt;"&gt;automatically.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 07:38:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115206#M24608</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-08-31T07:38:30Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115207#M24609</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;thanks for the investigation. I ran my Matlab 2016a with both versions of MKL (the one shipped with Matlab and the current) and found under "version -modules" only the following MKL related files:&lt;/P&gt;

&lt;P&gt;MKL 11.3.3, Matlab 2016a&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.3.207\windows\redist\intel64\mkl\mkl_core.dll Version 11.3&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.3.207\windows\redist\intel64\mkl\mkl_intel_thread.dll Version 11.3&lt;BR /&gt;
	C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.3.207\windows\redist\intel64\mkl\mkl_rt.dll Version 11.3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;MKL 11.2.3 (shipped with Matlab), Matlab 2016a&lt;/P&gt;

&lt;P&gt;C:\Program Files\MATLAB\R2016a\bin\win64\mkl.dll Version &amp;lt;unknown&amp;gt;&lt;/P&gt;

&lt;P&gt;So it seems that an AVX related file is not even loaded in my case. But checking with "version -blas", I find that under both circumstances (and with environment variable MKL_CBWR&amp;nbsp;in Windows set to SSE2) the CNR is still set to AVX2.&lt;/P&gt;

&lt;P&gt;I will download the new MKL 2017 as soon as released and give an update.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 13:55:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CNR-setting-does-not-work-as-expected/m-p/1115207#M24609</guid>
      <dc:creator>Maximilian_B_</dc:creator>
      <dc:date>2016-08-31T13:55:28Z</dc:date>
    </item>
  </channel>
</rss>

