<?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_schur.c with MKL_PARDISO, segment fault in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1344186#M32449</link>
    <description>&lt;P&gt;Hi Bo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since you accepted Kirill solution, we will go close this thread.  There will be no more communication on this thread.  Should you have any other oneMKL-related questions, please open new threads.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Dec 2021 05:17:28 GMT</pubDate>
    <dc:creator>Khang_N_Intel</dc:creator>
    <dc:date>2021-12-15T05:17:28Z</dc:date>
    <item>
      <title>pardiso_schur.c with MKL_PARDISO, segment fault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1340531#M32368</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I met another issue when using the pardiso_schur.c&lt;/P&gt;
&lt;P&gt;I am using oneAPI 2021.04 release.&lt;/P&gt;
&lt;P&gt;/opt/intel/oneapi/mkl/latest/examples/c/sparse_directsolvers/source/pardiso_schur.c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simply make a matrix A = I, with 80000x80000 size. b = 2.&lt;/P&gt;
&lt;P&gt;Ax=Ix=b, x will be 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the n_schur small than 825, it works well, x=2.&lt;/P&gt;
&lt;P&gt;When the n_schur more than 826, it gives segment fault.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;attached the diff I made, so you can reproduce it easily (the patch works well, because n_schur is 825, change n_schur variable to 826 will get a segment fault).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/111125"&gt;@Kirill_V_Intel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 09:20:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1340531#M32368</guid>
      <dc:creator>bopeng</dc:creator>
      <dc:date>2021-12-01T09:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: pardiso_schur.c with MKL_PARDISO, segment fault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1340774#M32380</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;float&lt;/SPAN&gt;&lt;SPAN&gt;* schur = (&lt;/SPAN&gt;&lt;SPAN&gt;float&lt;/SPAN&gt;&lt;SPAN&gt;*)malloc(n_schur*n_schur*&lt;/SPAN&gt;&lt;SPAN&gt;sizeof&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;float&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; phase = &lt;/SPAN&gt;&lt;SPAN&gt;22&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; pardiso(pt, &amp;amp;maxfct, &amp;amp;mnum, &amp;amp;mtype, &amp;amp;phase,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;n, a, ia, ja, perm, &amp;amp;nrhs,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iparm, &amp;amp;msglvl, &amp;amp;ddum, &lt;FONT color="#0000FF"&gt;schur,&lt;/FONT&gt; &amp;amp;error);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;use this will make it works, I think it is a bug? please confirm ...&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Bo&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Dec 2021 04:47:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1340774#M32380</guid>
      <dc:creator>bopeng</dc:creator>
      <dc:date>2021-12-02T04:47:45Z</dc:date>
    </item>
    <item>
      <title>Re:pardiso_schur.c with MKL_PARDISO, segment fault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1340879#M32382</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are able to reproduce the issue. We are looking into it, we will get back to you soon.&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;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Dec 2021 11:58:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1340879#M32382</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2021-12-02T11:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: pardiso_schur.c with MKL_PARDISO, segment fault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1343526#M32426</link>
      <description>&lt;P&gt;Hi Bo!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reporting this strange behavior!&lt;/P&gt;
&lt;P&gt;I guess you meant "double" instead of "float" but anyway, I suspect something goes wrong because there is too much memory allocated using static arrays.&lt;/P&gt;
&lt;P&gt;By default, stack size is likely limited by 10 Mb.&lt;/P&gt;
&lt;P&gt;I've done a somewhat fuzzy check that if I do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ulimit -s 65536&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to increase the stack size to 64 MB, the example passes without your fix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I'd say, example code is not very good as it is only suitable for small-sized matrices but not really faulty (since it should be functionally correct when the stack usage is within limits).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Kirill&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 01:00:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1343526#M32426</guid>
      <dc:creator>Kirill_V_Intel</dc:creator>
      <dc:date>2021-12-13T01:00:30Z</dc:date>
    </item>
    <item>
      <title>Re:pardiso_schur.c with MKL_PARDISO, segment fault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1344022#M32446</link>
      <description>&lt;P&gt;Hi Bo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you have any question on this issue since Kirill already discovered that it is a stack-size issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2021 16:27:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1344022#M32446</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2021-12-14T16:27:45Z</dc:date>
    </item>
    <item>
      <title>Re:pardiso_schur.c with MKL_PARDISO, segment fault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1344186#M32449</link>
      <description>&lt;P&gt;Hi Bo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since you accepted Kirill solution, we will go close this thread.  There will be no more communication on this thread.  Should you have any other oneMKL-related questions, please open new threads.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Dec 2021 05:17:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-schur-c-with-MKL-PARDISO-segment-fault/m-p/1344186#M32449</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2021-12-15T05:17:28Z</dc:date>
    </item>
  </channel>
</rss>

