<?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 Using initial solution has worse performance than not using it in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1397545#M33356</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide us with the following details&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;sample reproducer code&lt;/LI&gt;
&lt;LI&gt;steps you have followed to reproduce the issue&lt;/LI&gt;
&lt;LI&gt;MKL version being used&lt;/LI&gt;
&lt;LI&gt;OS details on which you are working&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;so that we can test the same from our end as well?&lt;/P&gt;
&lt;P&gt;Additionally, we suggest you refer to the provided example code for FGMRES solver that comes with MKL installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 09:27:35 GMT</pubDate>
    <dc:creator>VidyalathaB_Intel</dc:creator>
    <dc:date>2022-07-04T09:27:35Z</dc:date>
    <item>
      <title>FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1397175#M33351</link>
      <description>&lt;P&gt;Hello. I have encountered some unexpected behavior when using the RCI FGMRES solver.&lt;/P&gt;
&lt;P&gt;The solver is used in a c# environment. I am solving a system of 108 unknown, with the initial solution array x set to zero. The solution converges in 209 iterations to 1e-6 tolerance.&lt;/P&gt;
&lt;P&gt;However, if i take the converged solution, and use it as initial solution, the solver will now take 1833 iterations (and converge to the same tolerance 1e-6).&lt;/P&gt;
&lt;P&gt;I believe the solver is implemented correctly, as everything behaves as expected, except this issue with initial solution.&lt;/P&gt;
&lt;P&gt;I have attached txt files for the system. Rhs, Matrix (as full matrix, row major) and Matrix (as CSR3 format) and initial solution (i.e. converged solution when initial solution is set to zero).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 13:43:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1397175#M33351</guid>
      <dc:creator>DvdC</dc:creator>
      <dc:date>2022-07-01T13:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1397545#M33356</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide us with the following details&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;sample reproducer code&lt;/LI&gt;
&lt;LI&gt;steps you have followed to reproduce the issue&lt;/LI&gt;
&lt;LI&gt;MKL version being used&lt;/LI&gt;
&lt;LI&gt;OS details on which you are working&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;so that we can test the same from our end as well?&lt;/P&gt;
&lt;P&gt;Additionally, we suggest you refer to the provided example code for FGMRES solver that comes with MKL installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 09:27:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1397545#M33356</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-07-04T09:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1398910#M33378</link>
      <description>&lt;P&gt;Hi Vidya,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply. 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&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;
&lt;P&gt;The solver behaves as expected except for this issue with the initial solution. In fact when using the CG solver (which is implemented the very similarly to the FMGRES solver), this behaves as expected, and passing an initial solution does improve the convergence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you need any additional info or clarification,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 11:21:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1398910#M33378</guid>
      <dc:creator>DvdC</dc:creator>
      <dc:date>2022-07-08T11:21:22Z</dc:date>
    </item>
    <item>
      <title>Re:FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1398961#M33379</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the project file.&lt;/P&gt;&lt;P&gt;Could you please share with us the sample reproducer with the CG solver as well?&lt;/P&gt;&lt;P&gt;Meanwhile, we suggest you to please try the latest version of oneMKL 2022.1 and confirm if you still see the same performance for the FGMRES solver.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jul 2022 14:45:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1398961#M33379</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-07-08T14:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1399380#M33388</link>
      <description>&lt;P&gt;Hi Vidya,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the solution which includes the CG solver as well. Also, we have tried MKL 2022.1 and the problem persists (actually has been made worse).&lt;/P&gt;
&lt;P&gt;We got the following results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FGMRES 2020.0.2.1: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Zero Solution 209 iterations&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Initial Solution 1833&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FGMRES 2022.1: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Zero Solution 209 iterations&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Initial Solution 2808&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CG 2020.0.2.1: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Zero Solution 3348 iterations&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Initial Solution 105&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;David&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:16:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1399380#M33388</guid>
      <dc:creator>DvdC</dc:creator>
      <dc:date>2022-07-11T14:16:12Z</dc:date>
    </item>
    <item>
      <title>Re:FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1399950#M33393</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the details.&lt;/P&gt;&lt;P&gt;We are able to reproduce the issue from our end with oneMKL 2022.1. We are working on it and we will get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2022 08:55:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1399950#M33393</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-07-13T08:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re:FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1420386#M33749</link>
      <description>&lt;P&gt;Hi, 2022.2 as part of 2022.3 oneAPI SDK no longer allows to reproduce. It says sparseBLASMatrixVectorMultiplyCSRFormat caused an exception.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 18:44:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1420386#M33749</guid>
      <dc:creator>Hsbsh</dc:creator>
      <dc:date>2022-10-07T18:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1441451#M34055</link>
      <description>There is still a problem on 2023.0. &lt;BR /&gt;&lt;BR /&gt;209 vs 2808 for FGMRES&lt;BR /&gt;&lt;BR /&gt;And &lt;BR /&gt;&lt;BR /&gt;209 vs 4275 for CG</description>
      <pubDate>Sat, 24 Dec 2022 08:34:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1441451#M34055</guid>
      <dc:creator>Hsbsh</dc:creator>
      <dc:date>2022-12-24T08:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1441617#M34058</link>
      <description>&lt;P&gt;Hi Hsbsh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that in RCIISSExternalInterface :: SolveUsingFGMRES() , they are setting the following options:&lt;/P&gt;
&lt;DIV class="code panel"&gt;
&lt;DIV class="codeContent panelContent"&gt;
&lt;PRE class="code-java"&gt;initializeFGMRESSolver(ref n, x, b, ref request, ipar, dpar, tmp);
ipar[4] = maxIter == 150 ? &lt;SPAN class="code-object"&gt;Math&lt;/SPAN&gt;.Min(maxIter, n) : maxIter;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
ipar[7] = 1; &amp;nbsp; &lt;SPAN class="code-comment"&gt;// &lt;SPAN class="code-keyword"&gt;do&lt;/SPAN&gt; stopping test &lt;SPAN class="code-keyword"&gt;for&lt;/SPAN&gt; the maximum number of iterations&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;/SPAN&gt;ipar[8] = 1; &amp;nbsp; &lt;SPAN class="code-comment"&gt;// &lt;SPAN class="code-keyword"&gt;do&lt;/SPAN&gt; residual stopping test&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;/SPAN&gt;ipar[9] = 0; &amp;nbsp; &lt;SPAN class="code-comment"&gt;// &lt;SPAN class="code-keyword"&gt;do&lt;/SPAN&gt; not request &lt;SPAN class="code-keyword"&gt;for&lt;/SPAN&gt; the user defined stopping test&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;/SPAN&gt;ipar[11] = 1; &amp;nbsp;&lt;SPAN class="code-comment"&gt;// &lt;SPAN class="code-keyword"&gt;do&lt;/SPAN&gt; the check of the norm of the next generated vector automatically&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;/SPAN&gt;dpar[0] = tolerance;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;which is good when the initial guess is "far" from the exact one, but I bet if they specified both relative and absolute tolerances&lt;/P&gt;
&lt;DIV class="code panel"&gt;
&lt;DIV class="codeContent panelContent"&gt;
&lt;PRE class="code-java"&gt;dpar[0] = tolerance;  &lt;SPAN class="code-comment"&gt;// relative tolerance
&lt;/SPAN&gt;dpar[1] = 1e-8;       &lt;SPAN class="code-comment"&gt;// absolute tolerance&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;they might find that it converges in a more reasonable amount of time.&amp;nbsp; When they only have relative tolerance and they give the exact answer, then they are checking&amp;nbsp; "error &amp;lt;=&amp;nbsp; tolerance * ||A*x - b|| " but for exact solution, ||A * x - b|| is already very small so we may be getting to requiring machine precision here for error and it may take a very long time (if ever) to achieve the required precisions...&amp;nbsp; When we add in the absolute tolerance, " error &amp;lt;= abs_tolerance" , it should exit with success almost immediately when true solution is passed in...&lt;/P&gt;
&lt;P&gt;You can verify the actual measurements using dpar&lt;SPAN class="error"&gt;[2]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and dpar&lt;SPAN class="error"&gt;[4]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to check the current residual and original residual.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;/P&gt;
&lt;P&gt;Spencer&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 06:38:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1441617#M34058</guid>
      <dc:creator>Spencer_P_Intel</dc:creator>
      <dc:date>2022-12-26T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1442041#M34074</link>
      <description>What about the "the problem persists (actually has been made worse)."</description>
      <pubDate>Tue, 27 Dec 2022 22:11:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1442041#M34074</guid>
      <dc:creator>Hsbsh</dc:creator>
      <dc:date>2022-12-27T22:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1442044#M34075</link>
      <description>&lt;P&gt;&amp;gt;&lt;SPAN&gt;What about the "the problem persists (actually has been made worse)."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure I understand.&amp;nbsp; Can you please elaborate ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 22:19:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1442044#M34075</guid>
      <dc:creator>Spencer_P_Intel</dc:creator>
      <dc:date>2022-12-27T22:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1442048#M34076</link>
      <description>&lt;P&gt;FGMRES 2022.1 is worse than even FGMRES 2020.0.2.1. Is that expected? I mean it is bad in both cases, so does not really matter, I suppose.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 22:21:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1442048#M34076</guid>
      <dc:creator>Hsbsh</dc:creator>
      <dc:date>2022-12-27T22:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: FGMRES Using initial solution has worse performance than not using it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1442068#M34077</link>
      <description>&lt;P&gt;The original post and concern was understood to be an issue in the application since it was using only relative tolerance for convergence and resolved by adding in an absolute tolerance for convergence.&amp;nbsp; Do you have a different issue with fgmres or are you continuing the original post ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 23:15:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FGMRES-Using-initial-solution-has-worse-performance-than-not/m-p/1442068#M34077</guid>
      <dc:creator>Spencer_P_Intel</dc:creator>
      <dc:date>2022-12-27T23:15:30Z</dc:date>
    </item>
  </channel>
</rss>

