<?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:how to choose a solver for symmetric positive definite linear problem? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1267643#M31079</link>
    <description>&lt;P&gt;The issue is closing and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Mar 2021 04:45:06 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2021-03-25T04:45:06Z</dc:date>
    <item>
      <title>how to choose a solver for symmetric positive definite linear problem?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1253524#M30844</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am working on a project using Finite Element Method and want to use intel MKL to boost the performance of solving a linear problem `A*x = b`.&lt;/P&gt;
&lt;P&gt;- `A` is a real symmetric positive definite matrix, highly sparse, and with NxN dimensions. N is ~4M.&lt;/P&gt;
&lt;P&gt;- `b` is a Nx1 vector.&lt;/P&gt;
&lt;P&gt;- `x` is the unknown.&lt;/P&gt;
&lt;P&gt;In my case, `A` is fixed, and I only need to do factorization once. And `b` changes every time when I call the solver.&lt;/P&gt;
&lt;P&gt;I have found that in MKL, the pardiso solver can be used to solve symmetric positive definite matrix (if you set mtype = 2), but there is no C examples about it. Moreover, I have found examples for solving symmetric positive definite system using RCI solver.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is there no example for solving symmetric positive definite matrix using Pardiso?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use RCI, is it possible to separate the factorization part and the solving part, as in my case `A` is always fixed and only b keeps changing?&lt;/P&gt;
&lt;P&gt;If yes, will I expect big performance difference between using pardiso and RCI?&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Fang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 15:58:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1253524#M30844</guid>
      <dc:creator>fangtcao</dc:creator>
      <dc:date>2021-02-05T15:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to choose a solver for symmetric positive definite linear problem?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1253633#M30847</link>
      <description>&lt;P&gt;Hello Fang,&lt;/P&gt;
&lt;P&gt;1) Please have a look at the example&amp;nbsp;pardiso_sym_c.c. It has mtype = -2 but you can easily change it to mtype = 2 and it will work.&lt;/P&gt;
&lt;P&gt;2) RCI interface is available for iterative methods while PARDISO is a direct sparse solver. In your case, unless you know a great preconditioner for your problem (possibly, if you know weel your application) or you don't need to solve your systems with low accuracy and since you have many rhs, then it makes more sense to use the direct sparse solver (PARDISO).&lt;BR /&gt;So, in general you need to decide whether you want to solve your system with an iterative or a direct method (but I suggest PARDISO). These are two fundamentally different approaches and performance comparison is tricky as it depends on the details.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Note (in case you haven't), that using phase parameter you can exactly do what you need with PARDISO API. Do the reordering, symbolic and numerical factorizaton once (phases 12) and then for each new rhs do only phase = 33. Also note, that f you know your rhs all in advance, you can call PARDISO with multiple rhs at once.&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Kirill&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 23:46:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1253633#M30847</guid>
      <dc:creator>Kirill_V_Intel</dc:creator>
      <dc:date>2021-02-05T23:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to choose a solver for symmetric positive definite linear problem?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1253975#M30858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Kirill,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much for the explanations. Suppose the multiple rhs has `M` columns, is it faster than running single rhs `M` times, using an intel CPU, for example, an intel CORE i7 8th generation?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Fang&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 10:18:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1253975#M30858</guid>
      <dc:creator>fangtcao</dc:creator>
      <dc:date>2021-02-08T10:18:01Z</dc:date>
    </item>
    <item>
      <title>Re:how to choose a solver for symmetric positive definite linear problem?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1254460#M30868</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;Yes, it would be faster, but the level of solution stage scalability depends on a number of factors. You may try and get us know the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2021 13:56:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1254460#M30868</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2021-02-09T13:56:51Z</dc:date>
    </item>
    <item>
      <title>Re:how to choose a solver for symmetric positive definite linear problem?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1267643#M31079</link>
      <description>&lt;P&gt;The issue is closing and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 04:45:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-choose-a-solver-for-symmetric-positive-definite-linear/m-p/1267643#M31079</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2021-03-25T04:45:06Z</dc:date>
    </item>
  </channel>
</rss>

