<?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 Multiple calls to DGEEV in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1546868#M35486</link>
    <description>&lt;P&gt;I have not used oneMKL before, and only recently begun experimenting with it. Ultimately I would like to create DLLs for some of the functions including the ones for the eigenvalue/eigenvector calculations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took the dgeev.c example from \examples_core_c\c\lapack\source\ zipped folder in my oneAPI installation folder, and compiled it in a Visual Studio 2019 console project. It runs ok and gives the exact results mentioned at the top of the dgeev.c file.&lt;/P&gt;&lt;P&gt;However, if I call dgeev again the results are different! I have attached the source code in which dgeev is called 3 times and the output of the program. I was expecting to get exactly the same results every single time the dgeev is called as the matrix a has not changed.&lt;/P&gt;&lt;P&gt;Can you please help me understand why the results are different, and what I am doing wrong?&lt;/P&gt;&lt;P&gt;Thanks beforehand.&lt;/P&gt;&lt;P&gt;In case it is needed:&lt;/P&gt;&lt;P&gt;My Processor: Intel(R) Core(TM) i5-2500 CPU&lt;/P&gt;&lt;P&gt;My OS: 64-bit operating system, x64-based processor&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 14:55:51 GMT</pubDate>
    <dc:creator>Cansey50</dc:creator>
    <dc:date>2023-11-23T14:55:51Z</dc:date>
    <item>
      <title>Multiple calls to DGEEV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1546868#M35486</link>
      <description>&lt;P&gt;I have not used oneMKL before, and only recently begun experimenting with it. Ultimately I would like to create DLLs for some of the functions including the ones for the eigenvalue/eigenvector calculations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took the dgeev.c example from \examples_core_c\c\lapack\source\ zipped folder in my oneAPI installation folder, and compiled it in a Visual Studio 2019 console project. It runs ok and gives the exact results mentioned at the top of the dgeev.c file.&lt;/P&gt;&lt;P&gt;However, if I call dgeev again the results are different! I have attached the source code in which dgeev is called 3 times and the output of the program. I was expecting to get exactly the same results every single time the dgeev is called as the matrix a has not changed.&lt;/P&gt;&lt;P&gt;Can you please help me understand why the results are different, and what I am doing wrong?&lt;/P&gt;&lt;P&gt;Thanks beforehand.&lt;/P&gt;&lt;P&gt;In case it is needed:&lt;/P&gt;&lt;P&gt;My Processor: Intel(R) Core(TM) i5-2500 CPU&lt;/P&gt;&lt;P&gt;My OS: 64-bit operating system, x64-based processor&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:55:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1546868#M35486</guid>
      <dc:creator>Cansey50</dc:creator>
      <dc:date>2023-11-23T14:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple calls to DGEEV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1546900#M35487</link>
      <description>&lt;P&gt;Please read the conventions of the Lapack/BLAS routines that are called in your code. For DGEEV, &lt;A href="https://www.netlib.org/lapack/explore-html/d9/d8e/group__double_g_eeigen_ga66e19253344358f5dee1e60502b9e96f.html" target="_self"&gt;the documentation&lt;/A&gt; says:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;[in,out]&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;          A is DOUBLE PRECISION array, dimension (LDA,N)
          On entry, the N-by-N matrix A.
          On exit, A has been overwritten.&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If you wish to call DGEEV after the first call, you have to restore the original values in A before the second call (and subsequent ones, if any).&lt;/P&gt;&lt;P&gt;Most of the Lapack and BLAS routines were designed and written at a time when "main memory" was a precious and scarce resource. The computers of the time, such as the CDC6600, had memory measured in kilowords (132 kWords, 60 bits each).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 16:39:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1546900#M35487</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2023-11-23T16:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple calls to DGEEV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1546919#M35488</link>
      <description>&lt;P&gt;Thank you mercej4! I admit I have to read the documentation carefully.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 17:05:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1546919#M35488</guid>
      <dc:creator>Cansey50</dc:creator>
      <dc:date>2023-11-23T17:05:48Z</dc:date>
    </item>
    <item>
      <title>Re:Multiple calls to DGEEV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1547649#M35501</link>
      <description>&lt;P&gt;Hi Khosro,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2023 05:32:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Multiple-calls-to-DGEEV/m-p/1547649#M35501</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-11-27T05:32:37Z</dc:date>
    </item>
  </channel>
</rss>

