<?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 Wei W, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067441#M21987</link>
    <description>&lt;P&gt;Hi Wei W,&lt;/P&gt;

&lt;P&gt;Parallel program may take less wall time at the expense of consuming more CPU time.&lt;/P&gt;

&lt;P&gt;Also, your C++ program must be correct, because an incorrect program may be very slow just because it does more computation (or it may be very fast too). For a simple test the program can be given a diagonal matrix with all values different.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
	Dima&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Nov 2015 11:44:29 GMT</pubDate>
    <dc:creator>Dmitry_B_Intel</dc:creator>
    <dc:date>2015-11-15T11:44:29Z</dc:date>
    <item>
      <title>dgeev is much slower than matlab eig</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067439#M21985</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I test a random 5000 by 5000 matrix using intel MKL dgeev and matlab separately on the same machine (&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;) and record the CPU cost time for just the eigendecomposition step. When I use icc .... -mkl:parallel, it costs 541s, when I use icc ... -mkl:sequential to compile, it costs&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;232s&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;. &amp;nbsp;However, matlab eig just cost 70s. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thus I have two questions:&lt;/P&gt;

&lt;P&gt;1. why sequential is much faster than parallel?&lt;/P&gt;

&lt;P&gt;2. according to matlab, it uses&amp;nbsp;Intel(R) Math Kernel Library Version 11.1.1 to do eigen decomposition, why it is much much faster than dgeev used in my C++ codes.&lt;/P&gt;

&lt;P&gt;Can you guys provide me any ideas? &amp;nbsp;Any suggestion on how to make eigen decomposition faster if I use C++?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2015 16:38:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067439#M21985</guid>
      <dc:creator>Wei_W_6</dc:creator>
      <dc:date>2015-11-14T16:38:29Z</dc:date>
    </item>
    <item>
      <title>That's an unexpected behavior</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067440#M21986</link>
      <description>&lt;P&gt;That's an unexpected behavior. For this problem size, threaded mode should be faster vs sequential one. What version of &amp;nbsp;MKL do you use? Could you give the reproducer to check the problem on our side?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2015 05:27:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067440#M21986</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2015-11-15T05:27:48Z</dc:date>
    </item>
    <item>
      <title>Hi Wei W,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067441#M21987</link>
      <description>&lt;P&gt;Hi Wei W,&lt;/P&gt;

&lt;P&gt;Parallel program may take less wall time at the expense of consuming more CPU time.&lt;/P&gt;

&lt;P&gt;Also, your C++ program must be correct, because an incorrect program may be very slow just because it does more computation (or it may be very fast too). For a simple test the program can be given a diagonal matrix with all values different.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
	Dima&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2015 11:44:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067441#M21987</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2015-11-15T11:44:29Z</dc:date>
    </item>
    <item>
      <title>It looks to me like you're</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067442#M21988</link>
      <description>&lt;P&gt;It looks to me like you're getting CPU time rather than "wall" time. In parallel operations, many of the timers report the sum of CPU times.&lt;/P&gt;

&lt;P&gt;Have you tried MKL second/dsecond?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2015 14:05:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067442#M21988</guid>
      <dc:creator>Calvin_D_R_</dc:creator>
      <dc:date>2015-11-15T14:05:06Z</dc:date>
    </item>
    <item>
      <title>The MKL I used in my C++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067443#M21989</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;The MKL I used in my C++ codes is &lt;STRONG&gt;MKL 11.3&lt;/STRONG&gt;, containing in Intel Parallel Studio XE 2016 Cluster Edition. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The C++ codes I wrote is correct since I have checked the results. &amp;nbsp;I also retested on the &lt;STRONG&gt;wall time&lt;/STRONG&gt; mkl sequential, mkl parallel used to compute the same 5000-by-5000 matrix, the results are as follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sequential&lt;/STRONG&gt;: wall time 240.39s, cpu time 232.11s&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;parallel&lt;/STRONG&gt;: wall time 248.45s, cpu time 467.78s&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2015 14:33:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-is-much-slower-than-matlab-eig/m-p/1067443#M21989</guid>
      <dc:creator>Wei_W_6</dc:creator>
      <dc:date>2015-11-15T14:33:06Z</dc:date>
    </item>
  </channel>
</rss>

