<?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 I tried the example code with in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146324#M26728</link>
    <description>&lt;P&gt;I tried the example code for dsyevr_row with the 19.0.4 compilers and MKL 2019.0.4, after changing NSELECT to 5, and the output eigenvalues agreed with those given by Matlab for the same matrix:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;  0.43   2.14   3.37   4.28   6.93&lt;/PRE&gt;

&lt;P&gt;Which compiler did you use, and are you using IA32, LP64 or ILP64 libraries?&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 00:16:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2019-05-16T00:16:00Z</dc:date>
    <item>
      <title>Smallest eigenvalue given by dsyevr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146323#M26727</link>
      <description>&lt;P&gt;Hi I have been trying out &lt;EM&gt;LAPACKE_dsyevr&lt;/EM&gt; using the example from&amp;nbsp;&lt;EM&gt;&lt;A href="https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_dsyevr_row.c.htm" target="_blank"&gt;https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_dsyevr_row.c.htm&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This works perfectly fine for finding 3 eigenvalues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I modify the 'NSELECT' to be 5 (finding all 5 eigenvalues), the program gives me the wrong smallest eigenvalue, though&amp;nbsp;the eigenvector corresponding to the smallest eigenvalue is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried using 'A' as RANGE&lt;/P&gt;&lt;P&gt;(instead of 'I', i.e.&amp;nbsp;&lt;EM&gt;info = LAPACKE_dsyevr( LAPACK_ROW_MAJOR,&amp;nbsp;'V',&amp;nbsp;'A',&amp;nbsp;'U', n, a, lda,&amp;nbsp;vl, vu, il, iu, abstol, &amp;amp;m, w, z, ldz, isuppz )&lt;/EM&gt;);&lt;/P&gt;&lt;P&gt;this&amp;nbsp;gives me the same output as before.&lt;/P&gt;&lt;P&gt;The only remedy is perhaps using 'V' as RANGE, in this case when I put 'vl' to be 0 and 'vu' to be 10, I get the correct answer.&lt;/P&gt;&lt;P&gt;Am I doing something wrong? Any help is much appreciated, thanks!! :)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 06:44:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146323#M26727</guid>
      <dc:creator>Xylam</dc:creator>
      <dc:date>2019-05-15T06:44:00Z</dc:date>
    </item>
    <item>
      <title>I tried the example code with</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146324#M26728</link>
      <description>&lt;P&gt;I tried the example code for dsyevr_row with the 19.0.4 compilers and MKL 2019.0.4, after changing NSELECT to 5, and the output eigenvalues agreed with those given by Matlab for the same matrix:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;  0.43   2.14   3.37   4.28   6.93&lt;/PRE&gt;

&lt;P&gt;Which compiler did you use, and are you using IA32, LP64 or ILP64 libraries?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 00:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146324#M26728</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-05-16T00:16:00Z</dc:date>
    </item>
    <item>
      <title>no problem with MKL 2019 u3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146325#M26729</link>
      <description>&lt;P&gt;no problem with MKL 2019 u3 either.&lt;/P&gt;&lt;P&gt;win 10, 64 bit, static linking, LP64 API&lt;/P&gt;&lt;P&gt;Selected eigenvalues&lt;BR /&gt;&amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; 0.00 &amp;nbsp; 3.37 &amp;nbsp; 4.28 &amp;nbsp; 6.93&lt;/P&gt;&lt;P&gt;&amp;nbsp;Selected eigenvectors (stored columnwise)&lt;BR /&gt;&amp;nbsp; -0.98 &amp;nbsp;-0.01 &amp;nbsp;-0.08 &amp;nbsp;-0.01 &amp;nbsp; 0.18&lt;BR /&gt;&amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; 0.02 &amp;nbsp;-0.93 &amp;nbsp; 0.03 &amp;nbsp;-0.36&lt;BR /&gt;&amp;nbsp; &amp;nbsp;0.04 &amp;nbsp;-0.69 &amp;nbsp;-0.07 &amp;nbsp;-0.71 &amp;nbsp; 0.10&lt;BR /&gt;&amp;nbsp; -0.18 &amp;nbsp; 0.19 &amp;nbsp; 0.31 &amp;nbsp;-0.35 &amp;nbsp;-0.84&lt;BR /&gt;&amp;nbsp; &amp;nbsp;0.07 &amp;nbsp; 0.69 &amp;nbsp;-0.13 &amp;nbsp;-0.61 &amp;nbsp; 0.35&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 03:03:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146325#M26729</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-05-16T03:03:44Z</dc:date>
    </item>
    <item>
      <title>set MKL_VERBOSE=1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146326#M26730</link>
      <description>&lt;P&gt;set MKL_VERBOSE=1&lt;/P&gt;&lt;P&gt;LAPACKE_dsyevr (row-major, high-level) Example Program Results&lt;BR /&gt;MKL_VERBOSE Intel(R) MKL 2019.0 Update 3 Product build 20190125 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Win 2.60GHz cdecl intel_thread&lt;BR /&gt;MKL_VERBOSE DSYEVR(V,I,U,5,0000005A475FF880,5,0000005A475FF5F8,0000005A475FF600,1,5,0000005A475FF618,0,0000005A475FF960,0000005A475FF7B0,5,0000005A475FF948,0000005A475FF690,-1,0000005A475FF6A0,-1,0) 16.65ms CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;MKL_VERBOSE DSYEVR(V,I,U,5,000001AC3249EE80,5,0000005A475FF5F8,0000005A475FF600,1,5,0000005A475FF618,5,0000005A475FF960,000001AC3249F000,5,0000005A475FF948,000001AC3248C600,130,000001AC3248C480,50,0) 267.96us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 03:04:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146326#M26730</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-05-16T03:04:14Z</dc:date>
    </item>
    <item>
      <title>Quote:Gennady F. (Blackbelt)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146327#M26731</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Gennady F. (Blackbelt) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no problem with MKL 2019 u3 either.&lt;/P&gt;&lt;P&gt;win 10, 64 bit, static linking, LP64 API&lt;/P&gt;&lt;P&gt;Selected eigenvalues&lt;BR /&gt;&amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; 0.00 &amp;nbsp; 3.37 &amp;nbsp; 4.28 &amp;nbsp; 6.93&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gennady, the first two eigenvalues that you obtained are both zero, and do not agree with the results that I stated. In fact, it is those two zero eigenvalues that the original post complains about.&lt;/P&gt;&lt;P&gt;Xylam, please state the version of MKL that you used, the version of the compiler used and the options used to compile.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 08:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146327#M26731</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-05-16T08:27:00Z</dc:date>
    </item>
    <item>
      <title>By comparing the example</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146328#M26732</link>
      <description>&lt;P&gt;By comparing the example source code (link given in #1) with the file lapacke_dsyevr_row.c that came with PS2019U1, I see the following possible bugs in the former:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The variables vl and vu are left undefined, instead of being set to 0 (this is not really an error, since the documentation states that when the third argument is 'I' the values of vl and vu are not used; however, the lack of initialization causes the compiler to issue error messages, and that is probably&amp;nbsp; best avoided in example code).&lt;/LI&gt;&lt;LI&gt;The array isuppz is of size N, instead of 2*N, as the documentation states (https://software.intel.com/sites/default/files/mkl-2019-developer-reference-c_1.pdf , p. 947). This is probably the cause of the error, although it may be possible that the required array size was just N in some older edition of MKL. The source code at&amp;nbsp;https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_dsyevr_row.c.htm should be corrected.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The year 2015 is listed in the comments in the file linked to in #1. I find that with PS2016&amp;nbsp;and PS2017 the smaller array size appears to be sufficient and gives correct eigenvalues, whereas with PS2018 and PS2019 it is not sufficient and gives incorrect eigenvalues..&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 12:21:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146328#M26732</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-05-16T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Hi thanks for the reply. I'm</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146329#M26733</link>
      <description>&lt;P&gt;Hi thanks for the reply. I'm using MKL 2018.0.3 and with lp64 options.&lt;/P&gt;&lt;P&gt;Does it mean I need to update my MKL version to get rid of this error? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 04:45:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146329#M26733</guid>
      <dc:creator>Xylam</dc:creator>
      <dc:date>2019-05-17T04:45:08Z</dc:date>
    </item>
    <item>
      <title>No, what you need to do is to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146330#M26734</link>
      <description>&lt;P&gt;No, what you need to do is to size the array arguments as prescribed in the MKL reference for the version of the software that you have. You have MKL 2018. So, see the manual for MKL 2018. Do not take an MKL 2015 example code and expect it to work with MKL 2018.&lt;/P&gt;&lt;P&gt;If you declare the array in question as &lt;STRONG&gt;MKL_INT isuppz[2*N]&lt;/STRONG&gt;, that should take care of the problem&amp;nbsp;for MKL 2015 to MKL 2019.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 08:09:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146330#M26734</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-05-17T08:09:00Z</dc:date>
    </item>
    <item>
      <title>Thank you very much for all</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146331#M26735</link>
      <description>&lt;P&gt;Thank you very much for all the help! This solves my problem :)&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 05:44:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146331#M26735</guid>
      <dc:creator>Xylam</dc:creator>
      <dc:date>2019-05-21T05:44:40Z</dc:date>
    </item>
    <item>
      <title>It would be nice if the MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146332#M26736</link>
      <description>&lt;P&gt;It would be nice if the MKL developers modified the behavior of the library routine LAPACKE_dsyevr() so that it returns an error code or aborts&amp;nbsp;with an error message when the routine&amp;nbsp;has been called with an insufficiently large array for the argument isuppz, instead of quietly returning wrong eigenvalues to the trusting user.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 10:39:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Smallest-eigenvalue-given-by-dsyevr/m-p/1146332#M26736</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-05-22T10:39:35Z</dc:date>
    </item>
  </channel>
</rss>

