<?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: FGMRES Residual stagnate for a solvable but badly conditioned system in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1545553#M35460</link>
    <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Shanmukh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the quick reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I confirm&amp;nbsp;the same behaviour in version 2024.0.0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 12:19:06 GMT</pubDate>
    <dc:creator>DvdC</dc:creator>
    <dc:date>2023-11-20T12:19:06Z</dc:date>
    <item>
      <title>FGMRES Residual stagnate for a solvable but badly conditioned system</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1544518#M35449</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hello. I have encountered some unexpected behaviour when using the RCI FGMRES solver.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am solving a system A x = b with 200 unknowns. A is a badly conditioned matrix (of size 200 x 200), x is the vector we are solving for,&amp;nbsp; and b is the RHS vector (that I know). I also know the correct solution of x.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am solving this system using both the FGMRES solver with initial solution vector set to zero, and by doing a direct solve using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LAPACKE_dgesv.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The direct solver finds the solution with an relative error of ~1e-10.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However the FGMRES solver does not find the solution. In particular, the residual start to stagnate after around 100 iterations, and continue to stagnate regardless of how many iterations I let it run (I tried up to 50 000 iterations). The error of the solution after the residual stagnate is around 2% relative error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This behaviour is unexpected. While its true that the matrix is badly conditioned, the system is solvable (as demonstrated&amp;nbsp;by the linear solver), and GMRES is supposed (according to some literature&amp;nbsp;I read) to always converge in, at maximum, n iterations (with n equal to the size of the system, in this case 200 iterations).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The solver is used in a c# environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I have attached a .zip file containing the code to reproduce the issue. This is a VisualStudio solution which targets .Net framework 4.7.2.&lt;/P&gt;&lt;P class=""&gt;Program.cs contains all the code and input data, and the only dependency are the MKL .dll files. We are using MKL version 2020.0.2.1 and Windows 10 Pro Ver. 21H2.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 09:41:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1544518#M35449</guid>
      <dc:creator>DvdC</dc:creator>
      <dc:date>2023-11-16T09:41:55Z</dc:date>
    </item>
    <item>
      <title>Re:FGMRES Residual stagnate for a solvable but badly conditioned system</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1544976#M35453</link>
      <description>&lt;P&gt;Hi David,&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;&amp;gt;&amp;gt;We are using MKL version 2020.0.2.1 and Windows 10 Pro Ver. 21H2.&lt;/P&gt;&lt;P&gt;Sorry, we no longer support this product/version. We would like to request you download the latest product as mentioned below and let us know if the issue persists to get further assistance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html&lt;/A&gt;&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>Fri, 17 Nov 2023 15:28:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1544976#M35453</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-11-17T15:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Residual stagnate for a solvable but badly conditioned system</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1545553#M35460</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Shanmukh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the quick reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I confirm&amp;nbsp;the same behaviour in version 2024.0.0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 12:19:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1545553#M35460</guid>
      <dc:creator>DvdC</dc:creator>
      <dc:date>2023-11-20T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Residual stagnate for a solvable but badly conditioned system</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1546438#M35476</link>
      <description>&lt;P&gt;The issue can be closed. I realised that ipar[14] was set to the default value 150, i.e. I was running a restarted FGMRES. If I modify this to a higher value the solver does converge in exactly 200 iterations as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 10:55:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1546438#M35476</guid>
      <dc:creator>DvdC</dc:creator>
      <dc:date>2023-11-22T10:55:26Z</dc:date>
    </item>
    <item>
      <title>Re:FGMRES Residual stagnate for a solvable but badly conditioned system</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1546719#M35481</link>
      <description>&lt;P&gt;Hi,&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>Thu, 23 Nov 2023 05:00:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Residual-stagnate-for-a-solvable-but-badly-conditioned/m-p/1546719#M35481</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-11-23T05:00:10Z</dc:date>
    </item>
  </channel>
</rss>

