<?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 calls to pardiso from a DLL crash in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013280#M19323</link>
    <description>&lt;P&gt;I am a new user of MKL, and I'm using pardiso to factor a real nonsymmetric matrix.&amp;nbsp; I've successfully run the sample program for this case, and I'm trying to do exactly the same thing, except my calls to pardiso are from a DLL instead of from an EXE.&amp;nbsp; The first call with phase=11 seems to go without trouble and error=0.&amp;nbsp; Then I call pardiso with phase=22 and I get a crash with an "unhandled exception. . . access violation" message.&lt;/P&gt;

&lt;P&gt;Does calling pardiso from a DLL require doing anything differently than from an EXE?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2015 20:06:47 GMT</pubDate>
    <dc:creator>Brian_Murphy</dc:creator>
    <dc:date>2015-09-04T20:06:47Z</dc:date>
    <item>
      <title>calls to pardiso from a DLL crash</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013280#M19323</link>
      <description>&lt;P&gt;I am a new user of MKL, and I'm using pardiso to factor a real nonsymmetric matrix.&amp;nbsp; I've successfully run the sample program for this case, and I'm trying to do exactly the same thing, except my calls to pardiso are from a DLL instead of from an EXE.&amp;nbsp; The first call with phase=11 seems to go without trouble and error=0.&amp;nbsp; Then I call pardiso with phase=22 and I get a crash with an "unhandled exception. . . access violation" message.&lt;/P&gt;

&lt;P&gt;Does calling pardiso from a DLL require doing anything differently than from an EXE?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 20:06:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013280#M19323</guid>
      <dc:creator>Brian_Murphy</dc:creator>
      <dc:date>2015-09-04T20:06:47Z</dc:date>
    </item>
    <item>
      <title>I modified the pardiso</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013281#M19324</link>
      <description>&lt;P&gt;I modified the pardiso example to read my matrix from a file, and even the EXE crashes at the same place.&amp;nbsp; The call with phase=11 finishes with no trouble, but the call with phase=22 crashes.&lt;/P&gt;

&lt;P&gt;The attached zip file is the entire visual studio project.&amp;nbsp; The matrix is being read from uni9.txt.Matrix size is only n=152.&amp;nbsp; I get a feeling it must be something really simple I'm doing wrong, but I just can't find it.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 21:03:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013281#M19324</guid>
      <dc:creator>Brian_Murphy</dc:creator>
      <dc:date>2015-09-04T21:03:45Z</dc:date>
    </item>
    <item>
      <title>Before you call Pardiso,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013282#M19325</link>
      <description>&lt;P&gt;Before you call Pardiso, please check the matrix data in CSR format. Items in the first row should be given in increasing column order, then the second row, etc.&lt;/P&gt;

&lt;P&gt;Row-3 is supposed to contains items 9 to 13. The column indices in ja(9:13) are, however, 78, 79, 82, 83, 4. The last item is out of order.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;There are similar errors in Rows 4, 7, etc.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2015 03:16:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013282#M19325</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-05T03:16:15Z</dc:date>
    </item>
    <item>
      <title>two my cents - you may use</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013283#M19326</link>
      <description>&lt;P&gt;two my cents - you may use sparse_matrix_checker() routine to check correctness of your input&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2015 05:11:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013283#M19326</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2015-09-05T05:11:35Z</dc:date>
    </item>
    <item>
      <title>You were both right.  The</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013284#M19327</link>
      <description>&lt;P&gt;You were both right.&amp;nbsp; The elements were certainly not in the mandatory increasing order.&amp;nbsp; I thought they were because I was making the CSR matrix from a COO matrix using dcsrcoo.&amp;nbsp; But I see now that I had to tell dcsrcoo to put the elements in increasing order with ijob(1)=2, whereas I had ijob(1)=1.&amp;nbsp; This fix cured the crashing problem, so I can continue with implementing pardiso in my application.&amp;nbsp; I am hoping pardiso will be faster than umfpack at factoring a sparse matrix.&lt;/P&gt;

&lt;P&gt;At least I was right about it being something simple. :)&lt;/P&gt;

&lt;P&gt;Thanks very much for the help.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2015 11:22:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/calls-to-pardiso-from-a-DLL-crash/m-p/1013284#M19327</guid>
      <dc:creator>Brian_Murphy</dc:creator>
      <dc:date>2015-09-05T11:22:33Z</dc:date>
    </item>
  </channel>
</rss>

