<?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 preconjugate cg  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882947#M9742</link>
    <description>&lt;P&gt;Hallo &lt;/P&gt;
&lt;P&gt;Ive worked a lot with the mkl library. But now I have some problems. First one: I want to use the cg routines for solving hugh linear problems. There are two parameters in the cg interface I doesnt know the function. These parameters are dpar(6) and dpar(7) (alpha and beta). Can anyone help me about these two parameters! Thx. &lt;/P&gt;
&lt;P&gt;The next question: Have anyone a good idea for a precondition section (RCI_request 3)? I want to try to using the SOR-Funktion but I doesnt how to create this function with the blas and lapack routines! The normal Preconditioner by using mkl (ILU) doesnt work with the cg routines. &lt;/P&gt;
&lt;P&gt;Thanks for helping me! &lt;/P&gt;
&lt;P&gt;fachfan&lt;/P&gt;</description>
    <pubDate>Mon, 26 May 2008 16:54:25 GMT</pubDate>
    <dc:creator>fachfan</dc:creator>
    <dc:date>2008-05-26T16:54:25Z</dc:date>
    <item>
      <title>preconjugate cg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882947#M9742</link>
      <description>&lt;P&gt;Hallo &lt;/P&gt;
&lt;P&gt;Ive worked a lot with the mkl library. But now I have some problems. First one: I want to use the cg routines for solving hugh linear problems. There are two parameters in the cg interface I doesnt know the function. These parameters are dpar(6) and dpar(7) (alpha and beta). Can anyone help me about these two parameters! Thx. &lt;/P&gt;
&lt;P&gt;The next question: Have anyone a good idea for a precondition section (RCI_request 3)? I want to try to using the SOR-Funktion but I doesnt how to create this function with the blas and lapack routines! The normal Preconditioner by using mkl (ILU) doesnt work with the cg routines. &lt;/P&gt;
&lt;P&gt;Thanks for helping me! &lt;/P&gt;
&lt;P&gt;fachfan&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2008 16:54:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882947#M9742</guid>
      <dc:creator>fachfan</dc:creator>
      <dc:date>2008-05-26T16:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: preconjugate cg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882948#M9743</link>
      <description>&lt;P&gt;Hi Fachfan,&lt;/P&gt;
&lt;P&gt;If I'm not mistaken, parameters alpha and beta are located in dpar(7) and dpar(8) (Fortran convention) according to MKL Manual unless you use C-convention (dpar[6] and dpar[7]). If you really meant parameters dpar(6) and dpar(7) in Fortran convention, please let me know and I'll provide you with the information about them. &lt;/P&gt;
&lt;P&gt;Actually, you can try to use RCI CG method from MKLwithout knowing anything about parameters alpha and beta. Anyway, at iteration number k alpha is equal to (r&lt;SUB&gt;k&lt;/SUB&gt;,r&lt;SUB&gt;k&lt;/SUB&gt;)/(Ap&lt;SUB&gt;k&lt;/SUB&gt;,p&lt;SUB&gt;k&lt;/SUB&gt;), beta is equal to (r&lt;SUB&gt;k+1&lt;/SUB&gt;,r&lt;SUB&gt;k+1&lt;/SUB&gt;)/(r&lt;SUB&gt;k&lt;/SUB&gt;,r&lt;SUB&gt;k&lt;/SUB&gt;), where r&lt;SUB&gt;k &lt;/SUB&gt;is the current residual vector, and p&lt;SUB&gt;k&lt;/SUB&gt; is the vector containing current search direction. Scalars alpha and beta are used to construct CG recursion. You can find more details in the book of &lt;FONT color="#000000"&gt;Yousef&lt;/FONT&gt; &lt;FONT color="#000000"&gt;Saad &lt;FONT&gt;"Iterative methods for sparse linear systems". (It could be available on-line at Saad's home-page).&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;As for the SSOR preconditioner, please look at the examples located in MKL examples/solver/source folder named cg_ssor_precon.f (Fortran example) and cg_ssor_precon_c.c (C example). In these examples, you canlook at the usage ofBLAS and Sparse BLAS routines to construct SSOR preconditioner.&lt;/P&gt;
&lt;P&gt;Thank you for using Intel MKL! If you have any more questions, we would be happy to answer them.&lt;/P&gt;
&lt;P&gt;-SergeyG&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2008 04:14:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882948#M9743</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2008-05-30T04:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: preconjugate cg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882949#M9744</link>
      <description>&lt;P&gt;First: Thx for the good answer Sergey.&lt;/P&gt;
&lt;P&gt;I use C-convention but i have taken a look into the book you mentioned. Its very good. And than it is clear what these two parameters are. Thank you for the help. &lt;/P&gt;
&lt;P&gt;In the field of the preconditioner there is a lot of stuff in the book. I tried the example and it works, but the convergence rate isnt so high as I supposed. But I have a nother idea.Since it ispossible to use a cholesky-routine before you start the cg-routineis itpossible touse acg-routine with SSOR-preconditioner?&lt;/P&gt;
&lt;P&gt;- Fachfan&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2008 07:48:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882949#M9744</guid>
      <dc:creator>fachfan</dc:creator>
      <dc:date>2008-06-04T07:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: preconjugate cg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882950#M9745</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You are always welcome, Fachfan!&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is not an easy task to find a good preconditioner for a given problem. It requires quite a lot of research before the good results appear.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As far as I know, Cholesky factorization works only for dense, packed, and bandedmatrices (for details, please refer to"Matrix Arguments" Section in Appendix B of MKL Manual). If you have enough memory to get Cholesky factorization, then your problem is solved and you don't needto go throughCG iterations. However, if the matrix is difficult (roughly speaking, it has big condition number of order 10&lt;SUP&gt;15&lt;/SUP&gt; or higher), then Cholesky factorization can result in inaccurate L*L&lt;SUP&gt;T&lt;/SUP&gt; factorization. In this case, you might want to use (CG+SSOR) or(CG+inaccurate Cholesky)iterations to get more accurate results.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Generally speaking, it is possible to use CG with any symmetric positive definite preconditioner. While symmetry can be checked easily, positive definiteness property is hard to estimate without additional information about the problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2008 03:54:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882950#M9745</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2008-06-05T03:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: preconjugate cg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882951#M9746</link>
      <description>&lt;P&gt;Thanks for fast reply&lt;/P&gt;
&lt;P&gt;I want to solve a linear finite element problem and the matrix in this field are mostly positiv definit. The problem is, that the size of the problem I want to solve is very hugh. I would say about 3.000.000. This lead me to the problem with the memory. I have a computer with linux (64bit) and enough memory to solve the problem dirct (with the pardiso solver) but now I want to calculate the results on a normal pc. And there isnt so much memory. Due to the fact the convergence rate isnt so high I search for a good possibility to get more performance. So I tried the SSOR with the help of the mkl-functions. But the time you get the results are very different. The Pardiso Solver need 15 min and the SSOR-CG 10 hours! And this is my main problem! Have anyone got a good idea? I tried Cholesky preconditioning and SSOR! Thank you&lt;/P&gt;
&lt;P&gt;- fachfan&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2008 12:03:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882951#M9746</guid>
      <dc:creator>fachfan</dc:creator>
      <dc:date>2008-06-05T12:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: preconjugate cg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882952#M9747</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Fachfan,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please excuseme for the late reply. I had to consult my colleagues to find appropriate solution for your problem. Currently, we have onlyone option left. Youcan try to use Out-of-core version of PARDISO (availablein MKL 10.0 Gold and later releases). It may happen that you'll be able to solve the problem within reasonable timeframe on your PC. &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Other solution to your problem would be the development of a good preconditioner for your problem. Unfortunately, we cannot help you much with the preconditionerdevelopment. &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2008 03:22:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882952#M9747</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2008-06-20T03:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: preconjugate cg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882953#M9748</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Thanks for the time you spend! You have recogniced my problem! The next step is, that I try to use the Pardiso Out-of-core version. I find a good preconditionier but it do not work with the functions of the sparseblas routines. These will be the next step.&lt;/P&gt;
&lt;P&gt;But we have recogniced a very strange situation: We run Pardiso solver in multicore application but we found a little problem. We have a computer with four cores but if we want to use only 2 cores during the calculation it crashes. We found out that you can use oen core or the maximum cores of the computer! Have anyone recongniced the same effect?&lt;/P&gt;
&lt;P&gt;Thanks for reply&lt;/P&gt;
&lt;P&gt;fachfan&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2008 08:03:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882953#M9748</guid>
      <dc:creator>fachfan</dc:creator>
      <dc:date>2008-06-24T08:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: preconjugate cg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882954#M9749</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Fachfan,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you send us MKL version, all iparm settings, matrix type, and PARDISO version (out-of-core or regular) please? Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2008 08:43:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/preconjugate-cg/m-p/882954#M9749</guid>
      <dc:creator>Sergey_G_Intel</dc:creator>
      <dc:date>2008-06-24T08:43:14Z</dc:date>
    </item>
  </channel>
</rss>

