<?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 intel mkl mkl_freeBuffer() access violation exception error in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000212#M18449</link>
    <description>&lt;P style="font-size: 12px;"&gt;hi&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;i use mkl c++ compiler 11.0.066 and mkl10.1 and c++/clr vs2008&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;i use&lt;SPAN style="font-weight: 700;"&gt;&amp;nbsp;fft and conv&lt;/SPAN&gt;&amp;nbsp;function from mkl in&amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;multi thread&lt;/SPAN&gt;&amp;nbsp;realtime application (each thread exec fft and conv parallel)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;but after little time usage memory go up and application crash.&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;with any leak detector i cant find any leakage in my code .&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;recently i study mkl help and find i must use mkl_FreeBuffer() after mkl function for avoidance memory leakage&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;but when i call mkl_freeBuffer Application crash with&amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;access violation exception.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;what shoud i do?&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;when error occured last row of call stack is in a fft function and stop after mkl_freeBuffer() like below&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;mkl_complex16* &amp;nbsp;intelForwardFft (MKL_Complex16* input,int length)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DFTI_DESCRIPTOR *fft_handle;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dfticreatedescriptor(&amp;amp;fft_handle,dfti_double,dfti_complex,1,length) ;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dftisetvalue(fft_handle,dfti_placement,dfti_inplace)&lt;SPAN style="line-height: 1.5;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dfti_computeforward(fft_handle,input);&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dftifreedescriptor(&amp;amp;fft_handle);&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mkl_FreeBuffers();&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return input; &amp;nbsp; &amp;nbsp; ===&amp;gt;cursor stop here&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;}&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;my prog is realtime .this mean that after freebuffer after each fft , my prog again exec fft . &amp;nbsp;in this situation MKL_FreeBuffer() can solve my memory leakage problem?&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;i use 64 bit mkl&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp;additional library directory &amp;nbsp;-&amp;gt; em64t\lib&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;additional dependecy -&amp;gt; mkl_intel_lp64_dll.lib &amp;nbsp; ; &amp;nbsp; &amp;nbsp;mkl_intel_thread_dll.lib &amp;nbsp; &amp;nbsp; ; &amp;nbsp;mkl_core_dll.lib&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;thanks for you.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2014 14:35:18 GMT</pubDate>
    <dc:creator>mmmmm__hamed</dc:creator>
    <dc:date>2014-07-14T14:35:18Z</dc:date>
    <item>
      <title>intel mkl mkl_freeBuffer() access violation exception error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000212#M18449</link>
      <description>&lt;P style="font-size: 12px;"&gt;hi&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;i use mkl c++ compiler 11.0.066 and mkl10.1 and c++/clr vs2008&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;i use&lt;SPAN style="font-weight: 700;"&gt;&amp;nbsp;fft and conv&lt;/SPAN&gt;&amp;nbsp;function from mkl in&amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;multi thread&lt;/SPAN&gt;&amp;nbsp;realtime application (each thread exec fft and conv parallel)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;but after little time usage memory go up and application crash.&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;with any leak detector i cant find any leakage in my code .&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;recently i study mkl help and find i must use mkl_FreeBuffer() after mkl function for avoidance memory leakage&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;but when i call mkl_freeBuffer Application crash with&amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;access violation exception.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;what shoud i do?&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;when error occured last row of call stack is in a fft function and stop after mkl_freeBuffer() like below&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;mkl_complex16* &amp;nbsp;intelForwardFft (MKL_Complex16* input,int length)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DFTI_DESCRIPTOR *fft_handle;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dfticreatedescriptor(&amp;amp;fft_handle,dfti_double,dfti_complex,1,length) ;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dftisetvalue(fft_handle,dfti_placement,dfti_inplace)&lt;SPAN style="line-height: 1.5;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dfti_computeforward(fft_handle,input);&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dftifreedescriptor(&amp;amp;fft_handle);&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mkl_FreeBuffers();&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return input; &amp;nbsp; &amp;nbsp; ===&amp;gt;cursor stop here&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;}&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;my prog is realtime .this mean that after freebuffer after each fft , my prog again exec fft . &amp;nbsp;in this situation MKL_FreeBuffer() can solve my memory leakage problem?&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;i use 64 bit mkl&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp;additional library directory &amp;nbsp;-&amp;gt; em64t\lib&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;additional dependecy -&amp;gt; mkl_intel_lp64_dll.lib &amp;nbsp; ; &amp;nbsp; &amp;nbsp;mkl_intel_thread_dll.lib &amp;nbsp; &amp;nbsp; ; &amp;nbsp;mkl_core_dll.lib&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;thanks for you.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2014 14:35:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000212#M18449</guid>
      <dc:creator>mmmmm__hamed</dc:creator>
      <dc:date>2014-07-14T14:35:18Z</dc:date>
    </item>
    <item>
      <title>Your MKL version is ages old.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000213#M18450</link>
      <description>&lt;P&gt;Your MKL version is ages old. Please consider upgrading to a recent release, for example, MKL 11.1.3.&lt;/P&gt;

&lt;P&gt;In a threaded application, you should call &lt;STRONG&gt;mkl_thread_free_buffers()&lt;/STRONG&gt; from each thread.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2014 17:49:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000213#M18450</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2014-07-14T17:49:12Z</dc:date>
    </item>
    <item>
      <title>i dont find mkl_thread_free</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000214#M18451</link>
      <description>&lt;P&gt;i dont find mkl_thread_free_buffer() in my mkl library .&lt;/P&gt;

&lt;P&gt;Does this function exist in my library?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 09:58:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000214#M18451</guid>
      <dc:creator>mmmmm__hamed</dc:creator>
      <dc:date>2014-07-16T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Quote:hamed i. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000215#M18452</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;hamed i. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;i dont find mkl_thread_free_buffer() in my mkl library .&lt;/P&gt;

&lt;P&gt;Does this function exist in my library?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;If you don't find it in your MKL installation, then your MKL version is too old. Please update to a recent MKL release (for example, 11.1). At least, you can get a free 30-day trial of the latest release here: &lt;A href="http://software.intel.com/en-us/intel-math-kernel-library-evaluation-options" target="_blank"&gt;http://software.intel.com/en-us/intel-math-kernel-library-evaluation-options&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 17:00:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000215#M18452</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2014-07-16T17:00:00Z</dc:date>
    </item>
    <item>
      <title>Zhang Z (Intel) thanks for</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000216#M18453</link>
      <description>&lt;P&gt;&lt;A href="https://software.intel.com/en-us/user/491056" style="font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;Zhang Z (Intel)&lt;/A&gt;&amp;nbsp;thanks for you.&lt;/P&gt;

&lt;P&gt;i install trial of mkl 11 and use mkl_thread_free_buffer() at the end of each worker thread.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;my leakage has major reduce and my app more time worked.&lt;/P&gt;

&lt;P&gt;whether this happen shows problem is from mkl 10 library or no , problem is from my code?&lt;/P&gt;

&lt;P&gt;i want sure that the problem is not from me , and then buy mkl 11 (it is 500 $) .&lt;/P&gt;

&lt;P&gt;summary ,&amp;nbsp;Do you think mkl 10 has a memory problem?&lt;/P&gt;

&lt;P&gt;thnaks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Aug 2014 07:34:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/intel-mkl-mkl-freeBuffer-access-violation-exception-error/m-p/1000216#M18453</guid>
      <dc:creator>mmmmm__hamed</dc:creator>
      <dc:date>2014-08-03T07:34:34Z</dc:date>
    </item>
  </channel>
</rss>

