<?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 Is there any news on the in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127431#M25377</link>
    <description>&lt;P&gt;Is there any news on the topic. Is a bugfix planned?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 12:56:13 GMT</pubDate>
    <dc:creator>K__Mario</dc:creator>
    <dc:date>2019-11-19T12:56:13Z</dc:date>
    <item>
      <title>Segmentation fault in vzMul on large arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127424#M25370</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a problem with the complex multiplication on large arrays. The following code leads to segmentation fault in vzMul:&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;const MKL_INT cLength = std::pow(2, 30) + 1; /* MKL_INT = int = int32 */
const size_t cLengthInBytes = cLength * sizeof(MKL_Complex16);
const int cAlignment = 64;
MKL_Complex16* pDataComplex1 = static_cast&amp;lt;MKL_Complex16*&amp;gt;(mkl_malloc(cLengthInBytes, cAlignment));
MKL_Complex16* pDataComplex2 = static_cast&amp;lt;MKL_Complex16*&amp;gt;(mkl_malloc(cLengthInBytes, cAlignment));
MKL_Complex16* pDataComplex3 = static_cast&amp;lt;MKL_Complex16*&amp;gt;(mkl_malloc(cLengthInBytes, cAlignment));
  
for (uint32_t i = 0; i &amp;lt; cLength; i++){
  pDataComplex1&lt;I&gt;.real = 1.0;
  pDataComplex1&lt;I&gt;.imag = 0.0;
  pDataComplex2&lt;I&gt;.real = 0.0;
  pDataComplex2&lt;I&gt;.imag = 1.0;
}
  
vzMul(cLength, pDataComplex1, pDataComplex2, pDataComplex3);
  
mkl_free(pDataComplex1);
mkl_free(pDataComplex2);
mkl_free(pDataComplex3);
&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;According to the definition of MKL_INT as int32 it&amp;nbsp;should be&amp;nbsp;allowed to insert arrays of length&amp;nbsp;int32Max = 2^31 - 1. There isn't any limitation mentioned in the documentation. The same&amp;nbsp;issue seems to exist for vzAbs.&lt;/P&gt;
&lt;P&gt;I use MKL Version 2019.0.1 Build 20180928&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:56:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127424#M25370</guid>
      <dc:creator>K__Mario</dc:creator>
      <dc:date>2019-10-22T13:56:29Z</dc:date>
    </item>
    <item>
      <title>Mario, I don't see the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127425#M25371</link>
      <description>&lt;P&gt;Mario, I don't see the problem on my side with on lin (RH 7) OS with the latest version 2019.5 on different&amp;nbsp;types of CPU.&amp;nbsp; Please show how did you build the case and what is your OS?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 05:10:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127425#M25371</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-10-23T05:10:31Z</dc:date>
    </item>
    <item>
      <title>My environment:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127426#M25372</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;My environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Red Hat Enterprise Linux Client 7.6, 64-bit&lt;/LI&gt;&lt;LI&gt;251,6GB RAM&lt;/LI&gt;&lt;LI&gt;Intel Xeon(R) CPU E5-2680&lt;A href="mailto:E5-2680v3@2.50GHz"&gt;v3@2.50GHz&lt;/A&gt;&amp;nbsp;x 48&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The code (see attached file with minimal example)&amp;nbsp;was compiled with:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;icpc -c -g -std=c++11 -MMD -MP -MF "main.o.d" -o main.o main.cpp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;icpc -o mulsegfault main.o -mkl=sequential&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 07:31:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127426#M25372</guid>
      <dc:creator>K__Mario</dc:creator>
      <dc:date>2019-10-23T07:31:00Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt; Checking the problem with</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127427#M25373</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; Checking the problem with the latest version of MKL ( 2019u5) on RH7&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; the code was slightly modified and attached to this thread.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; building:&amp;nbsp;icpc -g -std=c++11 -MMD -MP -mkl test_vzmul.cpp&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; here is the output:&lt;/P&gt;&lt;P&gt;]$ ./a.out&lt;BR /&gt;&amp;nbsp;cLength == 1073741825&lt;BR /&gt;&amp;nbsp;cLengthInBytes == 17179869200&lt;BR /&gt;&amp;nbsp;... before vzMul ...&lt;BR /&gt;&amp;nbsp;... after vzMul ...&lt;BR /&gt;&amp;nbsp;... after mkl_free ...&lt;BR /&gt;Major version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2019&lt;BR /&gt;Minor version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;Update version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;BR /&gt;Product status: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Product&lt;BR /&gt;Build: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20190808&lt;BR /&gt;Platform: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Intel(R) 64 architecture&lt;BR /&gt;Processor optimization: &amp;nbsp;Intel(R) Advanced Vector Extensions (Intel(R) AVX) enabled processors&lt;BR /&gt;================================================================&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 08:23:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127427#M25373</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-10-23T08:23:15Z</dc:date>
    </item>
    <item>
      <title>Compiling and running test</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127428#M25374</link>
      <description>&lt;P&gt;Compiling and running test_vzmul.cpp (attached by you) with&lt;/P&gt;&lt;P&gt;&lt;EM&gt;icpc -g -std=c++11 -MMD -MP -mkl test_vzmul.cpp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;works perfectly&amp;nbsp;without any error in my environment. It seems that the option&lt;STRONG&gt; "-mkl=sequential"&lt;/STRONG&gt; leads to the segmentation fault. Compiling the same code with&lt;/P&gt;&lt;P&gt;&lt;EM&gt;icpc -g -std=c++11 -MMD -MP -mkl=sequential test_vzmul.cpp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;leads to the following output:&lt;/P&gt;&lt;P&gt;]$ ./a.out&lt;BR /&gt;&amp;nbsp;cLength == 1073741825&lt;BR /&gt;&amp;nbsp;cLengthInBytes == 17179869200&lt;BR /&gt;&amp;nbsp;... before vzMul ...&lt;BR /&gt;Segmentation fault (core dumped)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 11:11:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127428#M25374</guid>
      <dc:creator>K__Mario</dc:creator>
      <dc:date>2019-10-23T11:11:08Z</dc:date>
    </item>
    <item>
      <title>It is noticeable that the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127429#M25375</link>
      <description>&lt;P&gt;It is noticeable that the segmentation fault only occurs for arrays with length &amp;gt;= 2^30+1. Is it possible that the complex array is internally interpreted as real array of double length 2^31 + 2 (which overflows int32)?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 11:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127429#M25375</guid>
      <dc:creator>K__Mario</dc:creator>
      <dc:date>2019-10-23T11:27:00Z</dc:date>
    </item>
    <item>
      <title>yes, i see the segfault issue</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127430#M25376</link>
      <description>&lt;P&gt;yes, i see the segfault issue when linked against sequential version of MKL, otherwise, there is no&amp;nbsp;problem when linked against threaded mode. We will check the cause of the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 13:55:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127430#M25376</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-10-23T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Is there any news on the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127431#M25377</link>
      <description>&lt;P&gt;Is there any news on the topic. Is a bugfix planned?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:56:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127431#M25377</guid>
      <dc:creator>K__Mario</dc:creator>
      <dc:date>2019-11-19T12:56:13Z</dc:date>
    </item>
    <item>
      <title>The problem was caused by 32</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127432#M25378</link>
      <description>&lt;P&gt;The problem was caused by 32-bit integer overflow and already fixed into internal branches of mkl.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 02:42:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127432#M25378</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-11-28T02:42:02Z</dc:date>
    </item>
    <item>
      <title>and the fix is planning to be</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127433#M25379</link>
      <description>&lt;P&gt;and the fix is planning to be available into MKL 2020 u1 as MKL 2020 will be available very soon and the code freeze already happened. in the case if you need to try the eng. build - let me know.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 02:44:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127433#M25379</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-11-28T02:44:16Z</dc:date>
    </item>
    <item>
      <title>Thank you for the update.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127434#M25380</link>
      <description>&lt;P&gt;Thank you for the update. Other arithmetic functions like vzAdd and zvDiv seem to have the same error. Were these also fixed in MKL 2020?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 09:10:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127434#M25380</guid>
      <dc:creator>K__Mario</dc:creator>
      <dc:date>2019-11-28T09:10:04Z</dc:date>
    </item>
    <item>
      <title>actually the fix will not be</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127435#M25381</link>
      <description>&lt;P&gt;actually the fix will not be available in MKL 2020 ( the ERT ~ after 2 ww approximately ) . The fix of these problems is targeting to be available into MKL 2020 u1 only. We will keep you updated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 10:17:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127435#M25381</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-11-28T10:17:11Z</dc:date>
    </item>
    <item>
      <title>$ ./a.out cLength ==</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127436#M25382</link>
      <description>&lt;P&gt;$ ./a.out&lt;BR /&gt;&amp;nbsp;cLength == 1073741825&lt;BR /&gt;&amp;nbsp;cLengthInBytes == 17179869200&lt;BR /&gt;Major version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2020&lt;BR /&gt;Minor version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;Update version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;Product status: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Product&lt;BR /&gt;Build: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20200208&lt;BR /&gt;Platform: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Intel(R) 64 architecture&lt;BR /&gt;Processor optimization: &amp;nbsp;Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors&lt;BR /&gt;================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;... before vzMul ...&lt;BR /&gt;&amp;nbsp;... after vzMul ...&lt;BR /&gt;&amp;nbsp;... after mkl_free ...&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 07:59:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127436#M25382</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-04-03T07:59:30Z</dc:date>
    </item>
    <item>
      <title>Mario,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127437#M25383</link>
      <description>&lt;P&gt;Mario,&lt;/P&gt;&lt;P&gt;the fix available in mkl 2020.1 which available for download. Please keep us informed of the results.&lt;/P&gt;&lt;P&gt;Gennady&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 08:01:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-in-vzMul-on-large-arrays/m-p/1127437#M25383</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-04-03T08:01:46Z</dc:date>
    </item>
  </channel>
</rss>

