<?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: PARDISO giving error -1 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435793#M33959</link>
    <description>&lt;P&gt;Hello. Thanks for the reply. pardiso_sym.c in sparse_directsolvers also terminates with&amp;nbsp;ERROR during symbolic factorization: -1.&lt;BR /&gt;Here is my test project with pardiso_sym.c&lt;/P&gt;
&lt;P&gt;I used intel C++ compiler and Ninja build generator. Tested on Windows 11.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 14:36:18 GMT</pubDate>
    <dc:creator>Goritaboon</dc:creator>
    <dc:date>2022-12-05T14:36:18Z</dc:date>
    <item>
      <title>PARDISO giving error -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435409#M33951</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;void* pt[64] = {};
int mtype = 11;
int iparm[64] = {};
iparm[0] = 1;   
iparm[1] = 2;   
iparm[2] = 0;   
iparm[3] = 0;   
iparm[4] = 0;   
iparm[5] = 0;   
iparm[6] = 0;   
iparm[7] = 2;   
iparm[8] = 0;   
iparm[9] = 13;  
iparm[10] = 1;  
iparm[11] = 0;          
iparm[12] = 1;      
iparm[13] = 0;   
iparm[14] = 0;   
iparm[15] = 0;   
iparm[16] = 0;   
iparm[17] = -1;  
iparm[18] = -1;  
iparm[19] = 0;   
iparm[20] = 0;
iparm[26] = 1;
iparm[27] = 0;
iparm[34] = 1;
iparm[36] = 0;
iparm[59] = 0;

int maxfct = 1, mnum = 1;
const int n = 1;
double a[n] = {1};
int ia[n + 1] = {0, 1};
int ja[n] = {0};
int perm[n];
const int nrhs = 1;
int msglvl = 1;
double b[n * nrhs] = {3};
double x[n * nrhs];
int error;

int phase = 13;

pardiso(pt, &amp;amp;maxfct, &amp;amp;mnum, &amp;amp;mtype, &amp;amp;phase, &amp;amp;n, a, ia, ja, perm, &amp;amp;nrhs,
        iparm, &amp;amp;msglvl, b, x, &amp;amp;error);
std::cout &amp;lt;&amp;lt; error &amp;lt;&amp;lt; std::endl;&lt;/LI-CODE&gt;
&lt;P&gt;Hello. I'm new to pardiso. This example always give me -1. What would be the error?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2022 11:04:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435409#M33951</guid>
      <dc:creator>Goritaboon</dc:creator>
      <dc:date>2022-12-03T11:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: PARDISO giving error -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435676#M33956</link>
      <description>&lt;P&gt;Hi Kwon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;I tried executing the provided code (please see the attached VS project file) both in Windows and Linux environments and could see that the error value is '0'.&lt;/P&gt;
&lt;P&gt;Maybe you can give us the complete project file (if the code that you have provided is missing something) so that we can test that as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, if you see pardiso returns an error value of -1 it means that the input is inconsistent. Here is the link from where you can get to know more about the error values and what they mean.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/sparse-solver-routines/onemkl-pardiso-parallel-direct-sparse-solver-iface/pardiso.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/sparse-solver-routines/onemkl-pardiso-parallel-direct-sparse-solver-iface/pardiso.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;I'm new to pardiso&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You can always refer to the mkl examples that come with the installation under the below paths&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_dpcpp\dpcpp" for Windows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"/opt/intel/oneapi/mkl/latest/examples/dpcpp" for linux&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please get back to us if you face any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 07:26:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435676#M33956</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-12-05T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: PARDISO giving error -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435793#M33959</link>
      <description>&lt;P&gt;Hello. Thanks for the reply. pardiso_sym.c in sparse_directsolvers also terminates with&amp;nbsp;ERROR during symbolic factorization: -1.&lt;BR /&gt;Here is my test project with pardiso_sym.c&lt;/P&gt;
&lt;P&gt;I used intel C++ compiler and Ninja build generator. Tested on Windows 11.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 14:36:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435793#M33959</guid>
      <dc:creator>Goritaboon</dc:creator>
      <dc:date>2022-12-05T14:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: PARDISO giving error -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435808#M33960</link>
      <description>&lt;P&gt;Ok. I have a fix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;target_compile_options(pardisotest PUBLIC ${MKL_C_COPT})&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing to this line made it work. I am not using DPCPP, just CPP. MKLConfig.cmake&amp;nbsp; lacks compiler options for CXX, which leaves MKL_ILP64 undefined, breaking mkl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What would be the correct solution?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 15:26:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1435808#M33960</guid>
      <dc:creator>Goritaboon</dc:creator>
      <dc:date>2022-12-05T15:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: PARDISO giving error -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1436391#M33969</link>
      <description>&lt;P&gt;Hi Kwon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for providing the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the attached file which contains the sample CMakeLists.txt which was taken from the mkl developer guide &lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/getting-started/cmake-config-for-onemkl.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/getting-started/cmake-config-for-onemkl.html&lt;/A&gt; and the pardiso_sym.c file from samples in mkl examples folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps followed&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; cmake .. -G Ninja -DCMAKE_C_COMPILER=icl/icx&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; cmake --build .&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; *.exe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After doing the above steps we can now see the output with out any errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the compiler options, I would advise you to go through the Readme file under C:\Program Files (x86)\Intel\oneAPI\mkl\2022.2.1\examples location which gives information about all the supported compiler options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please note that the oneMKL library provides Fortran and C programming language interfaces. oneMKL C language interfaces can be called from applications written in either C or C++, as well as in any other language that can reference a C interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference link: &lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the attached CMakeLists file and do let us know if you have any concerns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 07:15:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1436391#M33969</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-12-07T07:15:21Z</dc:date>
    </item>
    <item>
      <title>Re:PARDISO giving error -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1438464#M34003</link>
      <description>&lt;P&gt;Hi Kwon,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As we haven't heard back from you, could you please provide us with an update regarding this issue? Please get back to us if you have any queries.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Dec 2022 12:21:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1438464#M34003</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-12-14T12:21:53Z</dc:date>
    </item>
    <item>
      <title>Re:PARDISO giving error -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1440368#M34031</link>
      <description>&lt;P&gt;Hi Kwon,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As we haven't heard back from you, we are closing this thread. Please post a new question if you need any additional assistance from Intel as this thread will no longer be monitored.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Dec 2022 06:42:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-giving-error-1/m-p/1440368#M34031</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-12-21T06:42:40Z</dc:date>
    </item>
  </channel>
</rss>

