<?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 Re: oneMKL LAPACK error: incorrect parameter on entry to SSYEVD in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1747309#M37571</link>
    <description>&lt;P&gt;This issue had been fixed in the 2025.3 release. Please give it a try.&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2026 18:18:14 GMT</pubDate>
    <dc:creator>Fengrui</dc:creator>
    <dc:date>2026-05-08T18:18:14Z</dc:date>
    <item>
      <title>oneMKL LAPACK error: incorrect parameter on entry to SSYEVD</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1703799#M37253</link>
      <description>&lt;P&gt;I am trying to run the code below.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;vector&amp;gt;
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;mkl_lapack.h&amp;gt;
#include &amp;lt;mkl.h&amp;gt;

int main() {
    MKL_INT n = 10000;
    std::vector&amp;lt;float&amp;gt; A(n * n);
    std::vector&amp;lt;float&amp;gt; eigenvalues(n);
    std::vector&amp;lt;float&amp;gt; work;
    std::vector&amp;lt;MKL_INT&amp;gt; iwork;

    for (MKL_INT i = 0; i &amp;lt; n*n; ++i) {
        A[i] = rand() % 100;
    }

    char jobz = 'V';
    char uplo = 'U';
    MKL_INT lda = n;
    MKL_INT info;

    float lwork_query = 0.0f;
    MKL_INT liwork_query = 0;
    MKL_INT neg_one = -1;

    ssyevd_(&amp;amp;jobz, &amp;amp;uplo, &amp;amp;n, A.data(), &amp;amp;lda, eigenvalues.data(),
            &amp;amp;lwork_query, &amp;amp;neg_one, &amp;amp;liwork_query, &amp;amp;neg_one, &amp;amp;info);

    MKL_INT lwork_actual = static_cast&amp;lt;MKL_INT&amp;gt;(lwork_query);
    MKL_INT liwork_actual = liwork_query;

    work.assign(lwork_actual, 0.0f);
    iwork.assign(liwork_actual, 0);

    ssyevd_(&amp;amp;jobz, &amp;amp;uplo, &amp;amp;n, A.data(), &amp;amp;lda, eigenvalues.data(),
            work.data(), &amp;amp;lwork_actual, iwork.data(), &amp;amp;liwork_actual, &amp;amp;info);

    if (info == 0) {
        std::cout &amp;lt;&amp;lt; "SSYEVD successful. First eigenvalue: " &amp;lt;&amp;lt; eigenvalues[0] &amp;lt;&amp;lt; std::endl;
    } else {
        std::cerr &amp;lt;&amp;lt; "SSYEVD failed with info: " &amp;lt;&amp;lt; info &amp;lt;&amp;lt; std::endl;
    }

    return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;The program compiles correctly with icpx (I'm using version 2024.2.0.20240602), but when I try to run it I get the error:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;    Intel oneMKL ERROR: Parameter 8 was incorrect on entry to SSYEVD.
    SSYEVD failed with info: -8&lt;/LI-CODE&gt;&lt;P&gt;The code runs without errors if I reduce n (to 2500 or below), if I change jobz to 'N', or if I replace&amp;nbsp;&lt;SPAN&gt;ssyevd_ with&amp;nbsp;ssyev_.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any suggestions that could help me debug this issue would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 21:29:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1703799#M37253</guid>
      <dc:creator>mfasi</dc:creator>
      <dc:date>2025-07-16T21:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL LAPACK error: incorrect parameter on entry to SSYEVD</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1703919#M37255</link>
      <description>&lt;P&gt;Thank you for posting this issue!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks the size of the working array is not big enough. The return value for lwork is&amp;nbsp;200060000 which is smaller than the minimum value needed,&amp;nbsp;&lt;SPAN&gt;2*&lt;/SPAN&gt;&lt;VAR&gt;n&lt;/VAR&gt;&lt;SUP class="power"&gt;2&lt;/SUP&gt;&lt;SPAN&gt;+6*&lt;/SPAN&gt;&lt;VAR&gt;n&lt;/VAR&gt;&lt;SPAN&gt;&amp;nbsp;+1=200060001. It is a regression. I will report it as a bug.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Fengrui&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 07:05:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1703919#M37255</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-07-17T07:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL LAPACK error: incorrect parameter on entry to SSYEVD</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1704022#M37257</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/250759"&gt;@Fengrui&lt;/a&gt;&amp;nbsp;– thanks a lot for debugging this program.&lt;/P&gt;&lt;P&gt;This is to confirm that the code above works if I change line 29 to:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;MKL_INT lwork_actual = static_cast&amp;lt;MKL_INT&amp;gt;(lwork_query) + 1;&lt;/LI-CODE&gt;&lt;P&gt;Hopefully this will be fixed in a future release of MKL, but this workaround works well for now.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 21:00:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1704022#M37257</guid>
      <dc:creator>mfasi</dc:creator>
      <dc:date>2025-07-17T21:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL LAPACK error: incorrect parameter on entry to SSYEVD</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1747309#M37571</link>
      <description>&lt;P&gt;This issue had been fixed in the 2025.3 release. Please give it a try.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 18:18:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-LAPACK-error-incorrect-parameter-on-entry-to-SSYEVD/m-p/1747309#M37571</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2026-05-08T18:18:14Z</dc:date>
    </item>
  </channel>
</rss>

