<?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/Issue-with-mkl-malloc/m-p/1154834#M27474</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please check if your program totally allocate memory above 2G? mkl_malloc may crash if you accessing too many memory once time, or allocate and free too many times which may lead to memory fragmentation. Please also try with aligned_malloc in stdlib, if you can meet same problem? If so, please change to use c standard malloc or aligned_malloc, otherwise, it probably because your program remains memory leak or memory out of range problem.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 07:52:02 GMT</pubDate>
    <dc:creator>Zhen_Z_Intel</dc:creator>
    <dc:date>2017-11-10T07:52:02Z</dc:date>
    <item>
      <title>Issue with mkl_malloc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issue-with-mkl-malloc/m-p/1154831#M27471</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;

&lt;P&gt;I have an issue with mkl_malloc function. I have a simple program that does some mathematical calculations and works with no issue. However, when I add the following lines to my program, SOMETIMES it gets stuck at mkl_malloc without throwing any error and I have to force close the program. Any idea what could be the problem?&lt;/P&gt;

&lt;P&gt;******** System Specifications ***********&lt;/P&gt;

&lt;P&gt;Windows 7 / 64 bit&lt;/P&gt;

&lt;P&gt;Intel Parallel XE Studio 2018&lt;/P&gt;

&lt;P&gt;Visual Studio Enterprise 2017&lt;/P&gt;

&lt;P&gt;********* Added Code *************&lt;/P&gt;

&lt;P&gt;#include "mkl.h"&lt;/P&gt;

&lt;P&gt;double *A;&lt;/P&gt;

&lt;P&gt;A = (double *)mkl_malloc(100*100 * sizeof(double), 64);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 23:03:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issue-with-mkl-malloc/m-p/1154831#M27471</guid>
      <dc:creator>Ahmadi__Afshin</dc:creator>
      <dc:date>2017-11-09T23:03:35Z</dc:date>
    </item>
    <item>
      <title>How do you compile your code?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issue-with-mkl-malloc/m-p/1154832#M27472</link>
      <description>&lt;P&gt;How do you compile your code? Following&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor? Or use the automatic switches that are integrated into VS 2017?&lt;/P&gt;

&lt;P&gt;If you can upload a test case, it will be helpful for investigation.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 00:42:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issue-with-mkl-malloc/m-p/1154832#M27472</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-11-10T00:42:54Z</dc:date>
    </item>
    <item>
      <title>+pls also play with mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issue-with-mkl-malloc/m-p/1154833#M27473</link>
      <description>&lt;P&gt;+pls also play with mkl example -&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;servicefuncs.c (&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&amp;lt;mklroot&amp;gt;\&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;examples\servicefuncsc\source\ ). this example shows how to call many of mkl service routines inluding mkl_malloc. You may try to build it from command line ( makefile works for win system too ) or add this example to VS and check how this will work on your side.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 04:05:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issue-with-mkl-malloc/m-p/1154833#M27473</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-11-10T04:05:15Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issue-with-mkl-malloc/m-p/1154834#M27474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please check if your program totally allocate memory above 2G? mkl_malloc may crash if you accessing too many memory once time, or allocate and free too many times which may lead to memory fragmentation. Please also try with aligned_malloc in stdlib, if you can meet same problem? If so, please change to use c standard malloc or aligned_malloc, otherwise, it probably because your program remains memory leak or memory out of range problem.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 07:52:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issue-with-mkl-malloc/m-p/1154834#M27474</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-11-10T07:52:02Z</dc:date>
    </item>
  </channel>
</rss>

