<?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 I got the solution! in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171051#M28578</link>
    <description>&lt;P&gt;I got the solution!&lt;/P&gt;

&lt;P&gt;it was the b array non properly setted.&lt;/P&gt;

&lt;P&gt;Sorry for my distraction.&lt;/P&gt;

&lt;P&gt;By the way I have some consideration, in order to improve the pardiso documentation.&lt;/P&gt;

&lt;P&gt;It is non clear if to use CSR or CSR3 format, and when use one or the other.&lt;/P&gt;

&lt;P&gt;Also the ia and ja seems zero based defined, by default, but this is not true.&lt;/P&gt;

&lt;P&gt;iparm[34] = 0;&amp;nbsp;&lt;BR /&gt;
	iparm[35] = 0;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But the example works only if one-based indexing is used.&lt;/P&gt;

&lt;P&gt;Thank you very much&lt;/P&gt;

&lt;P&gt;BR&lt;BR /&gt;
	Gianluca&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Aug 2018 08:51:34 GMT</pubDate>
    <dc:creator>Gianluca_G_1</dc:creator>
    <dc:date>2018-08-18T08:51:34Z</dc:date>
    <item>
      <title>pardiso C# "not enough memory"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171043#M28570</link>
      <description>&lt;P&gt;&lt;BR /&gt;
	I'm trying to use pardiso in C#, in order to resolve a unsymmetric matrix of complex numbers.&lt;/P&gt;

&lt;P&gt;I started executing an example I've found in internet, that works fine.&lt;/P&gt;

&lt;P&gt;By the way when I replace the data with others, taken from my examples, it fails at the first step: factorization, with an error related to a memory "-2: not enough memory".&lt;/P&gt;

&lt;P&gt;This is obviouslly not possible, because the matrix is quite small.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I suppose it should be related to some parameter, but there are many and it is possible that I've missed something.&lt;/P&gt;

&lt;P&gt;Is there any one that can help me?&lt;/P&gt;

&lt;P&gt;I attach the example, the system has 24 equations.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you&lt;BR /&gt;
	Gianluca&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 08:11:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171043#M28570</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2018-08-15T08:11:27Z</dc:date>
    </item>
    <item>
      <title>Your CSR format data for the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171044#M28571</link>
      <description>&lt;P&gt;Your CSR format data in &lt;SPAN style="font-size: 11.382px;"&gt;PardisoProgComplex.cs&amp;nbsp;&lt;/SPAN&gt;for the matrix is incorrect. If n=24 (your matrix is 24 X 24), the array IA should have n+1, i.e., 25 elements; you should probably have an additional element at the end in ia[], with value nnz+1 = 49.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 12:32:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171044#M28571</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-08-15T12:32:00Z</dc:date>
    </item>
    <item>
      <title>Thank you for your help, I've</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171045#M28572</link>
      <description>&lt;P&gt;Thank you for your help, I've missed this details.&lt;/P&gt;

&lt;P&gt;But now I need a new little help.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In order to verify the algotithm and the results, I'm using LAPACKE_zgesvxx(), that is a function I've used many times in our programs.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;As you can see from the attached image, pardiso and zgesvxx provide different results.&lt;/P&gt;

&lt;P&gt;So maybe I have to work on refinement procedure steps.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Do you have tips for this issue?&lt;/P&gt;

&lt;P&gt;Thankyou again&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>Thu, 16 Aug 2018 07:06:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171045#M28572</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2018-08-16T07:06:30Z</dc:date>
    </item>
    <item>
      <title>yes, these results are very</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171046#M28573</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;yes, these results are very different. Do you know if this is generated matrix or not?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 07:21:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171046#M28573</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-08-16T07:21:09Z</dc:date>
    </item>
    <item>
      <title>what do you mean?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171047#M28574</link>
      <description>&lt;P&gt;what do you mean?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 08:04:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171047#M28574</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2018-08-16T08:04:07Z</dc:date>
    </item>
    <item>
      <title>Quote:Gianluca G. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171048#M28575</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Gianluca G. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;In order to verify the algorithm and the results, I'm using LAPACKE_zgesvxx(), that is a function I've used many times in our programs. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;You did not have to do that. To test whether the solution is correct and reasonably accurate, once you obtain the solution x, compute the 2-norm of A.x - b. Using the solution returned by Pardiso, I find that 18 of the 24 elements of (A.x - b) are exactly (0.0, 0.0). The remaining 6 elements have real and imaginary parts that are &amp;lt; 1e-16 in magnitude. Can one expect a more accurate answer?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;can see from the attached image, pardiso and zgesvxx provide different results.&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Yes; I can see the difference; however, you have not shown the code that calls zgesvxx. Lapack is used by millions of people, and Pardiso/MKL is used by thousands of people. The probability is nearly zero that one or both have bugs that can yield grossly wrong solutions for such a simple problem as yours.&lt;/P&gt;

&lt;P&gt;A simple explanation of the difference is that you have not solved the same problem with the two solvers, or have made some mistake in the arguments that you passed to zgesvxx. When you post only the output of a program whose source you have not shown us, and the output is itself suspect, there is not much that we can do to help until you provide more details of what you did.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;So maybe I have to work on refinement procedure steps. &lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;No. Refinement is appropriate when the differences in the two solutions are small. Refinement can never compensate for blunders.&lt;/P&gt;

&lt;P&gt;I suggest that you obtain a solution using the simple driver routine zgesv() and compare the results to those from Pardiso. Later on, you may consider iterative refinement if you think that it is warranted.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 09:02:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171048#M28575</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-08-16T09:02:00Z</dc:date>
    </item>
    <item>
      <title>I'm making tests, I give you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171049#M28576</link>
      <description>&lt;P&gt;I'm making tests, I give you news as soon as I can.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 06:44:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171049#M28576</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2018-08-18T06:44:57Z</dc:date>
    </item>
    <item>
      <title>we have used zgesvxx for</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171050#M28577</link>
      <description>&lt;P&gt;we have used &lt;SPAN style="font-size: 12px;"&gt;zgesvxx&amp;nbsp;&lt;/SPAN&gt;for years,&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;so it can't be a parameters error on it, moreover&amp;nbsp;zgesv gives the same result of&amp;nbsp;zgesvxx .&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;I'm incline to think that I miss something in pardiso parameters.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 07:03:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171050#M28577</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2018-08-18T07:03:40Z</dc:date>
    </item>
    <item>
      <title>I got the solution!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171051#M28578</link>
      <description>&lt;P&gt;I got the solution!&lt;/P&gt;

&lt;P&gt;it was the b array non properly setted.&lt;/P&gt;

&lt;P&gt;Sorry for my distraction.&lt;/P&gt;

&lt;P&gt;By the way I have some consideration, in order to improve the pardiso documentation.&lt;/P&gt;

&lt;P&gt;It is non clear if to use CSR or CSR3 format, and when use one or the other.&lt;/P&gt;

&lt;P&gt;Also the ia and ja seems zero based defined, by default, but this is not true.&lt;/P&gt;

&lt;P&gt;iparm[34] = 0;&amp;nbsp;&lt;BR /&gt;
	iparm[35] = 0;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But the example works only if one-based indexing is used.&lt;/P&gt;

&lt;P&gt;Thank you very much&lt;/P&gt;

&lt;P&gt;BR&lt;BR /&gt;
	Gianluca&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 08:51:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-C-quot-not-enough-memory-quot/m-p/1171051#M28578</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2018-08-18T08:51:34Z</dc:date>
    </item>
  </channel>
</rss>

