<?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 ok, then please take a look in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174330#M28802</link>
    <description>&lt;P&gt;ok, then please take a look at the&amp;nbsp;iparm(34), set the same #of threads for both cases and check if that will help to see the same output.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 10:49:52 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2018-12-11T10:49:52Z</dc:date>
    <item>
      <title>Different computation results on different processors using mkl_cbwr_set(int)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174327#M28799</link>
      <description>&lt;OL&gt;&lt;LI&gt;There are two desktop PC with the following processors: &amp;nbsp;Intel Core i5 4570 (Haswell) and Intel Core i5 3330 (Ivy Bridge).&lt;/LI&gt;&lt;LI&gt;Use MKL 2019.0.1, build 20180928.&lt;/LI&gt;&lt;LI&gt;The app use PARDISO with the following settings: MKL_INT _mtype = 11; MKL_INT _nrhs = 1; MKL_INT _iparm1 = 2; MKL_INT _iparm3 = 0; MKL_INT _iparm4 = 2; MKL_INT _iparm7 = -1; MKL_INT _iparm9 = 13; MKL_INT _iparm10 = 1; MKL_INT _iparm12 = 1; MKL_INT _iparm20 = 2; MKL_INT _iparm23 = 0; MKL_INT _iparm33 = 1; MKL_INT _iparm34 = 1; mkl_domain_set_num_threads(1, MKL_DOMAIN_PARDISO);&lt;/LI&gt;&lt;LI&gt;Call the mkl_cbwr_set(MKL_CBWR_SSE2) and next PARDISO.&lt;/LI&gt;&lt;LI&gt;The native library was build using Microsoft Visual Studio 2017 (v141)&lt;/LI&gt;&lt;LI&gt;The mkl_intel_lp64.lib, mkl_intel_thread.lib, mkl_core.lib used as additional dependencies.&lt;/LI&gt;&lt;LI&gt;The app runs on both PC.&lt;/LI&gt;&lt;LI&gt;The calculation result is different. See attached files.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-left:0cm; margin-right:0cm"&gt;Please suggest a solution to my problem.&lt;/P&gt;&lt;P style="margin-left:0cm; margin-right:0cm"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 14:39:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174327#M28799</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-10T14:39:07Z</dc:date>
    </item>
    <item>
      <title>is that in-core mode?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174328#M28800</link>
      <description>&lt;P&gt;is that in-core mode?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 04:52:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174328#M28800</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-12-11T04:52:14Z</dc:date>
    </item>
    <item>
      <title>yes, in-core mode. _iparm[59]</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174329#M28801</link>
      <description>&lt;P&gt;yes, in-core mode. _iparm[59] = 0.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 05:18:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174329#M28801</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-11T05:18:28Z</dc:date>
    </item>
    <item>
      <title>ok, then please take a look</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174330#M28802</link>
      <description>&lt;P&gt;ok, then please take a look at the&amp;nbsp;iparm(34), set the same #of threads for both cases and check if that will help to see the same output.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 10:49:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174330#M28802</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-12-11T10:49:52Z</dc:date>
    </item>
    <item>
      <title>Do you mean iparm(33)? -</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174331#M28803</link>
      <description>&lt;P&gt;Do you mean iparm(33)? - optimal number of OpenMP threads for conditional numerical reproducibility (CNR) mode. Now _iparm33 = 1 for both cases.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 11:24:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174331#M28803</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-11T11:24:48Z</dc:date>
    </item>
    <item>
      <title>Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174332#M28804</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;&lt;P&gt;I prepared the initial data files and the source files. JMatrix.csv is Jacobian, PowerUnbalance.csv is rhs vector. The software implementation you will find in PardisoProvider.cpp. You have to use&lt;/P&gt;&lt;P&gt;int &lt;STRONG&gt;Initialization&lt;/STRONG&gt;(int n, int nrhs, Monitel::MathNative::Pardiso::Block2x2 * a, int * ja, int * ia, float *executionTime);&lt;/P&gt;&lt;P&gt;int &lt;STRONG&gt;Factorization&lt;/STRONG&gt;(int n, Monitel::MathNative::Pardiso::Block2x2 * a, int * ja, int * ia, float *converterTime, float *factorizationTime, int PivotingPerturbation = 13);&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;int &lt;STRONG&gt;Solve&lt;/STRONG&gt;(double * rhs, double * solution, float *executionTime);&lt;/P&gt;&lt;P&gt;in order to reproduce bug.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 05:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174332#M28804</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-12T05:51:00Z</dc:date>
    </item>
    <item>
      <title>I suppose we solve the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174333#M28805</link>
      <description>&lt;P&gt;I suppose we solved the problem. We added to&lt;/P&gt;&lt;P&gt;case DLL_PROCESS_ATTACH:&lt;/P&gt;&lt;P&gt;the next code:&lt;/P&gt;&lt;P&gt;#if defined (_WIN64)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;_set_FMA3_enable(0);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/get-fma3-enable-set-fma3-enable?view=vs-2017" target="_blank"&gt;https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/get-fma3-enable-set-fma3-enable?view=vs-2017&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 06:58:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174333#M28805</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-12T06:58:00Z</dc:date>
    </item>
    <item>
      <title>Renat, how could we build the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174334#M28806</link>
      <description>&lt;P&gt;Renat, how could we build the sources you shared into post#6?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 10:29:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174334#M28806</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-12-12T10:29:25Z</dc:date>
    </item>
    <item>
      <title>We use Microsoft Visual</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174335#M28807</link>
      <description>&lt;P&gt;We use Microsoft Visual Studio 2017 (v.15.9.2). The platform toolset is v141. You have to add links to addational files in \include and \lib folders in order to use PardisoProvider::ConvertMatrix method. We use MKL static libraries (mkl_intel_lp64.lib&lt;BR /&gt;mkl_intel_thread.lib&lt;BR /&gt;mkl_core.lib), but you could use "Use Intel MKL" property for using MKL in the app. I have attached PerfCounter.h and PerfCounter.cpp also. It's necessary for PardisoProvider.cpp.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 11:19:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174335#M28807</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-12T11:19:08Z</dc:date>
    </item>
    <item>
      <title>Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174336#M28808</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;&lt;P&gt;did you manage to build a project?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 05:53:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174336#M28808</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-19T05:53:29Z</dc:date>
    </item>
    <item>
      <title>I couldn't build these</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174337#M28809</link>
      <description>&lt;P&gt;I couldn't build these project. There is not main function into sources you sent. Is that possible to simplify the case? reading from scv file into CSR format and calling pardiso...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 09:07:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174337#M28809</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-12-19T09:07:07Z</dc:date>
    </item>
    <item>
      <title>Ок, I'll prepare it.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174338#M28810</link>
      <description>&lt;P&gt;Ок, I'll prepare it.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 12:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174338#M28810</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-19T12:10:00Z</dc:date>
    </item>
    <item>
      <title>Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174339#M28811</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have attached a simple project to reproduce the bug. It contains all necessary files. Please, run an executable file on Haswell and Ivy Bridge. The result will be in "result.csv".&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 10:13:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174339#M28811</guid>
      <dc:creator>seredzhinov__renat</dc:creator>
      <dc:date>2018-12-24T10:13:42Z</dc:date>
    </item>
    <item>
      <title>thanks, we will try this</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174340#M28812</link>
      <description>thanks, we will try this</description>
      <pubDate>Tue, 25 Dec 2018 04:36:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-computation-results-on-different-processors-using-mkl/m-p/1174340#M28812</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-12-25T04:36:39Z</dc:date>
    </item>
  </channel>
</rss>

