<?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 use of CGS in PARDISO in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792204#M2312</link>
    <description>Hi,&lt;DIV&gt;The situation is strange... On my side example that I send to you work with single precision. Have you switched iparm[27] from 0 to 1?&lt;/DIV&gt;&lt;DIV&gt;With best regards,&lt;/DIV&gt;&lt;DIV&gt;Alexander Kalinkin&lt;/DIV&gt;</description>
    <pubDate>Thu, 14 Jul 2011 02:28:11 GMT</pubDate>
    <dc:creator>Alexander_K_Intel2</dc:creator>
    <dc:date>2011-07-14T02:28:11Z</dc:date>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792197#M2305</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a sparse, structurally-symmetric matrix.
The solution of this matrix is part of a larger iterative solver, so the
matrix needs to be solved many times. The values in the matrix will
modestly change between iterations, but the sparsity pattern will remain the
same.&lt;BR /&gt;&lt;BR /&gt;Based on my reading of the PARDISO documentation, it sounds
like this situation argues strongly for the implementation of the CGS iterative
scheme. It sounds
like PARDISO needs to be called once with &lt;I&gt;phase=11&lt;/I&gt;, and then
subsequently called with &lt;I&gt;phase=23&lt;/I&gt; and &lt;I&gt;iparm(4)=31&lt;/I&gt;. Is this
correct? I havent been able to get this to work. I get the following errors:&lt;BR /&gt;&lt;BR /&gt;*** Error in PARDISO ( numerical_factorization) error_num= -3&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;*** Error in PARDISO: cgs error iparam(20) -22&lt;BR /&gt;&lt;BR /&gt;Are there any public examples that would be useful? Any other thoughts?&lt;/DIV&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Greg&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2011 19:46:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792197#M2305</guid>
      <dc:creator>gregfi04</dc:creator>
      <dc:date>2011-07-08T19:46:57Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792198#M2306</link>
      <description>Hi,&lt;DIV&gt;Am I right that you use mtype=1 or 3? Could you change it on 11 and 13 correspondantly and check the output? In any case could you send small testcase with compiling line to reproduce this issue on our side?&lt;/DIV&gt;&lt;DIV&gt;With best regards,&lt;/DIV&gt;&lt;DIV&gt;Alexander Kalinkin &lt;/DIV&gt;</description>
      <pubDate>Sat, 09 Jul 2011 04:18:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792198#M2306</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2011-07-09T04:18:27Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792199#M2307</link>
      <description>Hello Alexander,&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks for looking into this. You are correct that I was previously using mtype=1. Using mtype=11 appears to produce the same errors. &lt;DIV&gt;&lt;BR /&gt;A test case is attached. I suspect that there may be something basic wrong with my input. Please let me know what you find.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;/DIV&gt;&lt;DIV&gt;Greg&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Jul 2011 14:58:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792199#M2307</guid>
      <dc:creator>gregfi04</dc:creator>
      <dc:date>2011-07-11T14:58:23Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792200#M2308</link>
      <description>Hi,&lt;DIV&gt;I've include your data ( values got from sparse_values(1) ) in example named pardiso_unsym_c in example folder and can't reproduce your issue :( Maybe there are some problems with rhs or other parameters that you didn't provide... Could you provide small example with errors you mentioned and send it to me?&lt;/DIV&gt;&lt;DIV&gt;With best regards,&lt;/DIV&gt;&lt;DIV&gt;Alexander Kalinkin&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Jul 2011 03:36:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792200#M2308</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2011-07-12T03:36:42Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792201#M2309</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've re-attached the file to this posting, updated with the values of the RHS that I'm using. (The same RHS is used for each matrix.)&lt;BR /&gt;&lt;BR /&gt;However, I suspect the problem I'm having is related to how I'm calling the subroutine. I have no problem using the "default" &lt;I&gt;iparm&lt;/I&gt; values to call PARDISO and obtain a solution to the matrices. That works just fine. When I try to use the CGS iteration (&lt;I&gt;iparm(4)&lt;/I&gt;=31 in Fortran, &lt;I&gt;iparm[3]=31&lt;/I&gt;in C) to replace the computation of LU is when I encounter problems.&lt;BR /&gt;&lt;BR /&gt;Based on my reading of the documentation, my best guess as to how this is supposed to work is as follows (example in abbreviated Fortran):&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;do ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt; iteration = iteration + 1&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt; sparse_values = ...&lt;BR /&gt; &lt;BR /&gt;&lt;DIV id="_mcePaste"&gt; if(iteration == 1) then&lt;BR /&gt; phase=13&lt;BR /&gt;  iparm(4) = 0&lt;BR /&gt;  call pardiso(...)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; else&lt;BR /&gt;  phase=23&lt;BR /&gt;  iparm(4)=31&lt;BR /&gt;  call pardiso(...)&lt;BR /&gt; endif&lt;BR /&gt;&lt;BR /&gt;enddo&lt;BR /&gt;&lt;BR /&gt;When I attempt this, I get the following:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV id="_mcePaste"&gt;Percentage of computed non-zeros for LL^T factorization&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;1 % 3 % 6 % 9 % 12 % 15 % 18 % 20 % 22 % 24 % 27 % 31 % 34 % 36 % 40 % 45 % 55 % 99 % 100 % &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;*** Error in PARDISO ( numerical_factorization) error_num= -3&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;*** Error in PARDISO: cgs error iparam(20) -22&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;================ PARDISO: solving a real struct. sym. system ================&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Summary PARDISO: ( factorize to solve )&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;================&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Times:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;======&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Time spent in copying matrix to internal data structure(A to LU): 0.000000 s&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Time spent in factorization step(numfct)            : 0.000123 s&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Time spent in iterative solver a solve step(cgs)        : 0.000000 s cgx iterations -22&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;At what point in the pardiso_unsym_c are you modifying iparm(3)?&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR style="font-family: verdana, sans-serif; padding: 0px; margin: 0px;" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Greg&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Jul 2011 15:38:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792201#M2309</guid>
      <dc:creator>gregfi04</dc:creator>
      <dc:date>2011-07-12T15:38:07Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792202#M2310</link>
      <description>Hi Greg,&lt;DIV&gt;I've attached my modification of pardiso_unsym_c.c, its return correct output. Could you modificate it and attach here to reproduce your issue?&lt;/DIV&gt;&lt;DIV&gt;With best regards,&lt;/DIV&gt;&lt;DIV&gt;Alexander Kalinkin&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Jul 2011 07:50:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792202#M2310</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2011-07-13T07:50:06Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792203#M2311</link>
      <description>Hello Alexander,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;I found the problem. Thank you!&lt;BR /&gt;&lt;BR /&gt;After eliminating every other possibility,I noticed that I was using single-precision arrays whereas your code was using double-precision arrays. When I switched my arrays to double-preicision, the problem went away.&lt;BR /&gt;&lt;BR /&gt;Since the matrices aren't going to be horribly large, I suppose we can use double-preicision arrays, but is there some reason single-precision isn't working? Could it be made to work?&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;/DIV&gt;&lt;DIV&gt;Greg&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Jul 2011 20:19:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792203#M2311</guid>
      <dc:creator>gregfi04</dc:creator>
      <dc:date>2011-07-13T20:19:29Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792204#M2312</link>
      <description>Hi,&lt;DIV&gt;The situation is strange... On my side example that I send to you work with single precision. Have you switched iparm[27] from 0 to 1?&lt;/DIV&gt;&lt;DIV&gt;With best regards,&lt;/DIV&gt;&lt;DIV&gt;Alexander Kalinkin&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jul 2011 02:28:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792204#M2312</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2011-07-14T02:28:11Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792205#M2313</link>
      <description>I didn't reproduce the problem also on my side with the latest (10.3.update) 4 version and with 32 and 64( LP64) bit cases.&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jul 2011 04:13:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792205#M2313</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-07-14T04:13:46Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792206#M2314</link>
      <description>I have attached a sample program that exhibits the problem for me. When compiled and executed, this program produces:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV id="_mcePaste"&gt;*** Error in PARDISO ( numerical_factorization) error_num= -3&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;*** Error in PARDISO: cgs error iparam(20) -58&lt;BR /&gt;&lt;BR /&gt;If Line 6 is commented out, Line 7 in un-commented, and Line 50 is commented out, the program will execute correctly. I'm using 12.0.3.&lt;BR /&gt;&lt;BR /&gt;Greg&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jul 2011 14:08:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792206#M2314</guid>
      <dc:creator>gregfi04</dc:creator>
      <dc:date>2011-07-14T14:08:14Z</dc:date>
    </item>
    <item>
      <title>use of CGS in PARDISO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792207#M2315</link>
      <description>Hi,&lt;DIV&gt;I've reproduced your issue: this error mean that iterative algorithm made maximal number of iteration (150) and didn't achive good residual.&lt;/DIV&gt;&lt;DIV&gt;With best regards,&lt;/DIV&gt;&lt;DIV&gt;Alexander Kalinkin&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jul 2011 14:44:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/use-of-CGS-in-PARDISO/m-p/792207#M2315</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2011-07-14T14:44:30Z</dc:date>
    </item>
  </channel>
</rss>

