<?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 Hi, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018289#M19624</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Which mkl libs you link in your pardiso sample? Could you provide linkline?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2015 12:39:13 GMT</pubDate>
    <dc:creator>Alexander_K_Intel2</dc:creator>
    <dc:date>2015-07-20T12:39:13Z</dc:date>
    <item>
      <title>Error -2 when running PARDISO with multi threads</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018287#M19622</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I am trying to solve a sparse symmetric indefinite real matrix using PARDISO. The matrix is of size n=55,650,566 with 164,833,721 nonzero entries. Everything is good when the number of enable threads is equal or smaller than 17. But when I set the number of threads to be 18, error code -2 generated. And the error message shows as follows:&lt;/P&gt;

&lt;P&gt;*** Error in PARDISO&amp;nbsp; (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insufficient_memory) error_num= 2&lt;BR /&gt;
	*** Error in PARDISO memory allocation: BEFORE_REORDERING, allocation of -8299199 bytes failed&lt;BR /&gt;
	total memory wanted here: -6125334 kbyte&lt;/P&gt;

&lt;P&gt;Error also happens when the number of threads is bigger than 18. The machine I use has 1031GB RAM and 262GB swap space, so the insufficient memory error seems unreasonable. And the negative number of bytes in error messages is also weird. I wonder why PARDISO goes wrong under such conditions.&lt;/P&gt;

&lt;P&gt;More information about my environment: The MKL version is 11.0.2. CPU: Intel Xeon 120 X 1200MHz. Memory: 1031GB RAM and 262GB swap. OS: RedHat Enterprise Linux 7.1&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 02:34:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018287#M19622</guid>
      <dc:creator>Gisiu_T_</dc:creator>
      <dc:date>2015-07-20T02:34:22Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018288#M19623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I updated my MKL to version 11.2.3. But the error message still occurs and is very similar to the original error message&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Intel(R) Math Kernel Library Version 11.2.3 Product Build 20150409 for Intel(R) 64 architecture applications&lt;BR /&gt;
	*** Error in PARDISO&amp;nbsp; (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insufficient_memory) error_num= 2&lt;BR /&gt;
	*** Error in PARDISO memory allocation: BEFORE_REORDERING, allocation of -8299199 bytes failed&lt;BR /&gt;
	total memory wanted here: -6125208 kbyte&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Gisiu&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 09:04:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018288#M19623</guid>
      <dc:creator>Gisiu_T_</dc:creator>
      <dc:date>2015-07-20T09:04:16Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018289#M19624</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Which mkl libs you link in your pardiso sample? Could you provide linkline?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:39:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018289#M19624</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2015-07-20T12:39:13Z</dc:date>
    </item>
    <item>
      <title>Quote:And the negative number</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018290#M19625</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;And the negative number of bytes in error messages is also weird. I wonder why PARDISO goes wrong under such conditions.&lt;/BLOCKQUOTE&gt; These are signs of INTEGER*4 having been used when INTEGER*8 was needed because of the problem size being large. This error could have happened in your code because you used INTEGER*4, or in Pardiso routines because you called the LP64 library instead of the ILP64 library, as Alexander hinted.&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:48:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018290#M19625</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-07-20T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Hi Alexander and mecej4,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018291#M19626</link>
      <description>&lt;P&gt;Hi Alexander and mecej4,&lt;/P&gt;

&lt;P&gt;Thanks for your help. I follow the instructions in this page: &lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-in-your-python-programs&amp;nbsp;" target="_blank"&gt;https://software.intel.com/en-us/articles/using-intel-mkl-in-your-python-programs&amp;nbsp;&lt;/A&gt;; to call "libmkl_rt.so" in my Python program. I don't know whether the problem is caused by this method.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 02:55:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018291#M19626</guid>
      <dc:creator>Gisiu_T_</dc:creator>
      <dc:date>2015-07-21T02:55:27Z</dc:date>
    </item>
    <item>
      <title>Hi Gisiu, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018292#M19627</link>
      <description>&lt;P&gt;Hi Gisiu,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Beside libmkl_rt.so, do you have other environment set?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Generally, link mkl_rt.so , is Intel LP64 interface and Intel OpenMP threading RTL.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So besides libmkl_rt.so you may need t&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;o set the interface layer at run time, use the mkl_set_interface_layerfunction or the&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;MKL_INTERFACE_LAYERenvironment variable.&lt;/P&gt;

&lt;P&gt;for example,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;MKL_INTERFACE_LAYER=MKL_INTERFACE_ILP64.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please let us know if it work.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 06:33:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018292#M19627</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-07-24T06:33:55Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018293#M19628</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;Thanks for your reply. I call&lt;SPAN class="keyword"&gt; mkl.mkl_set_interface_layer(byref(c_types(1))) in my Python program and error is still invoked when the number of the thread set higher than 17. But the error message is different from before:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;*** Error in PARDISO&amp;nbsp; (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insufficient_memory) error_num= 0&lt;BR /&gt;
	PARDISO Internationalization error. Message 0 is unknown.&lt;BR /&gt;
	total memory wanted here: 11 kbyte&lt;BR /&gt;
	ERROR during symbolic factorization: -2&lt;/P&gt;

&lt;P&gt;By the way, PARDISO runs well if I call it in C program. And also, given smaller matrix (n about 400,000 and number of nonzero 1,000,000), my Python script can run without error with any number of threads.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Gisiu&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:22:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-2-when-running-PARDISO-with-multi-threads/m-p/1018293#M19628</guid>
      <dc:creator>Gisiu_T_</dc:creator>
      <dc:date>2015-07-24T07:22:46Z</dc:date>
    </item>
  </channel>
</rss>

