<?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: Run pasrdisosolver. CPP to call pardisoinit(pt, &amp;amp;mtype, iparm); Throws an exception after a in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301510#M31803</link>
    <description>&lt;P&gt;I concluded that you used the Basel-Lugano Pardiso since the reported error message refers to&amp;nbsp;&lt;SPAN&gt;libpardiso600-WIN-X86-64.dll. That DLL is definitely not part of MKL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MKL comes with several examples of calling MKL-Pardiso from C and Fortran. The MKL documentation of calls to MKL routines indicates which MKL header files are associated with each MKL routine, including pardisoinit() and pardiso().&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 08:26:10 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2021-07-27T08:26:10Z</dc:date>
    <item>
      <title>Run pasrdisosolver. CPP to call pardisoinit(pt, &amp;mtype, iparm); Throws an exception after a function</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301492#M31800</link>
      <description>&lt;P&gt;the error is:0x00000001801151D8 (libpardiso600-WIN-X86-64.dll)处(位于 Surface_Mesh.exe 中)引发的异常: 0xC0000005: 写入位置 0x00007FF92CCD098D 时发生访问冲突。&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;void PardisoSolver::pardiso_init()&lt;BR /&gt;{&lt;BR /&gt;mtype = -2;&lt;BR /&gt;max_fct = 1; &lt;BR /&gt;mnum = 1;&lt;/P&gt;
&lt;P&gt;msglvl = 0; &lt;BR /&gt;error = 0; &lt;BR /&gt;if (mtype == -1)&lt;BR /&gt;throw std::runtime_error("Pardiso mtype not set.");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for (i = 0; i &amp;lt; 64; i++)&lt;BR /&gt;{&lt;BR /&gt;pt[i] = 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;result.clear();&lt;BR /&gt;result.resize(num, 0);&lt;/P&gt;
&lt;P&gt;nrhs = 1;&lt;BR /&gt;error = 0;&lt;BR /&gt;solver = 0;/* use sparse direct solver */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pardisoinit(pt, &amp;amp;mtype, iparm);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for (i = 0; i &amp;lt; num + 1; i++) {&amp;nbsp; &amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;//This is where the exception is flagged&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;ia[i] += 1;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;for (i = 0; i &amp;lt; nnz; i++) {&lt;BR /&gt;ja[i] += 1;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;phase = 11;&lt;/P&gt;
&lt;P&gt;pardiso(pt, &amp;amp;max_fct, &amp;amp;mnum, &amp;amp;mtype, &amp;amp;phase,&lt;BR /&gt;&amp;amp;num, a.data(), ia.data(), ja.data(), &amp;amp;idum, &amp;amp;nrhs,&lt;BR /&gt;iparm, &amp;amp;msglvl, &amp;amp;ddum, &amp;amp;ddum, &amp;amp;error);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;//&lt;EM&gt;&lt;STRONG&gt;And when I comment out the first one, it's going to report an error here again&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if (error != 0) {&lt;BR /&gt;printf("\nERROR during symbolic factorization: %d", error);&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if it's mKL_pardiso.h or something else, is it related to the MKL version? My version is compilers_and_libraries_2017.1.143&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 06:39:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301492#M31800</guid>
      <dc:creator>MRSPai</dc:creator>
      <dc:date>2021-07-27T06:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Run pasrdisosolver. CPP to call pardisoinit(pt, &amp;mtype, iparm); Throws an exception after a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301497#M31801</link>
      <description>&lt;P&gt;You appear to be mixing calls to the Pardiso routines in MKL with calls to the Basel-Lugano version of Pardiso (&lt;A href="http://www.pardiso-project.org" target="_blank"&gt;www.pardiso-project.org&lt;/A&gt;). Although the two versions have common origins, they are not mutually interchangeable.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 07:11:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301497#M31801</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-07-27T07:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run pasrdisosolver. CPP to call pardisoinit(pt, &amp;mtype, iparm); Throws an exception after a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301504#M31802</link>
      <description>&lt;P&gt;Maybe you're right, but the pardisoSolver.h&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#include &amp;lt;vector&amp;gt;&lt;BR /&gt;#include &amp;lt;cmath&amp;gt;&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;#include &amp;lt;math.h&amp;gt;&lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include "mkl_pardiso.h"&lt;BR /&gt;#include "mkl_types.h"&lt;BR /&gt;#include"mkl.h"&lt;/P&gt;
&lt;P&gt;Need mkl_pardiso.h.I don't know where to find this header except Intel MKL&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 08:01:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301504#M31802</guid>
      <dc:creator>MRSPai</dc:creator>
      <dc:date>2021-07-27T08:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Run pasrdisosolver. CPP to call pardisoinit(pt, &amp;mtype, iparm); Throws an exception after a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301510#M31803</link>
      <description>&lt;P&gt;I concluded that you used the Basel-Lugano Pardiso since the reported error message refers to&amp;nbsp;&lt;SPAN&gt;libpardiso600-WIN-X86-64.dll. That DLL is definitely not part of MKL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MKL comes with several examples of calling MKL-Pardiso from C and Fortran. The MKL documentation of calls to MKL routines indicates which MKL header files are associated with each MKL routine, including pardisoinit() and pardiso().&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 08:26:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301510#M31803</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-07-27T08:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Run pasrdisosolver. CPP to call pardisoinit(pt, &amp;mtype, iparm); Throws an exception after a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301526#M31804</link>
      <description>&lt;P&gt;I see what you mean. Thank you very much. I'll give it a try&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 11:00:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1301526#M31804</guid>
      <dc:creator>MRSPai</dc:creator>
      <dc:date>2021-07-27T11:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Run pasrdisosolver. CPP to call pardisoinit(pt, &amp;mtype, iparm); Throws an exception after a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1302808#M31835</link>
      <description>&lt;P&gt;I tried as hard as I could, and that's exactly what you said, but if I delete the &lt;SPAN&gt;libpardiso600-WIN-X86-64.dll,&lt;/SPAN&gt; the program will report a missing error, but if it's there, I can't fix it. How do I make it exist in the project but not call it in the function?Is there any way you can tell me?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Aug 2021 14:35:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1302808#M31835</guid>
      <dc:creator>MRSPai</dc:creator>
      <dc:date>2021-08-01T14:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Run pasrdisosolver. CPP to call pardisoinit(pt, &amp;mtype, iparm); Throws an exception after a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1302812#M31836</link>
      <description>&lt;P&gt;Please make up your mind as to whether you wish to use either the MKL version or the Basel-Lugano version of Pardiso. Once you select one of the two, build and run your program using that version, and only that version. The details of how to do build and run depend on whether you use the command line or Visual Studio, but the basic rules are straightforward.&lt;/P&gt;
&lt;P&gt;In short, for each external routine that your program calls, there should be only one library that provides that routine.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Aug 2021 15:08:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Run-pasrdisosolver-CPP-to-call-pardisoinit-pt-amp-mtype-iparm/m-p/1302812#M31836</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-08-01T15:08:46Z</dc:date>
    </item>
  </channel>
</rss>

