<?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 this is my code  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999108#M18428</link>
    <description>&lt;P&gt;this is my code&amp;nbsp;&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;/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;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dfti_computeforward(fft_handle,input);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dftifreedescriptor(&amp;amp;fft_handle);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mkl_FreeBuffers();&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return input; &amp;nbsp; &amp;nbsp; ===&amp;gt;cursor stop here&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;}&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;MKL_Complex16* &amp;nbsp;Convolution(MKL_Complex16* &amp;nbsp;x,int &amp;nbsp; xlength, &lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;MKL_Complex16* &amp;nbsp;y &amp;nbsp;, &amp;nbsp;int ylength&lt;/SPAN&gt;&amp;nbsp;)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;{&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int convResLength=xlength+ylength-1;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VSLCONVTASKPTR &amp;nbsp; task;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;VSLCONVTASKPTR* &amp;nbsp; task-ptr;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int &amp;nbsp; iy0=0;&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;int &amp;nbsp; *start=&amp;amp;iy0;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;MKL_Complex16* res= (MKL_Complex16*) &amp;nbsp;malloc(sizeof(MKL_Complex16) &amp;nbsp;* &amp;nbsp;convResLength);&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;memset( res, &amp;nbsp;0 , &amp;nbsp;sizeof(&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;MKL_Complex16&lt;/SPAN&gt;) * ConvResLength );&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int status;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int &amp;nbsp; a= vslzConvNewTask1D( task_ptr , VSL_Conv_Mode_Auto , xlength , ylength ,convResLength &amp;nbsp;);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int &amp;nbsp;b = vslzConvSetStart( task &amp;nbsp;, start);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status &amp;nbsp;= vslzConvExec1D( task , x ,1 , y ,1, res , 1 );&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vslconvdeletetask(task_ptr);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mkl_FreeBuffers();&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return res;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2014 08:00:02 GMT</pubDate>
    <dc:creator>mmmmm__hamed</dc:creator>
    <dc:date>2014-07-16T08:00:02Z</dc:date>
    <item>
      <title>mkl_freeBuffer() access violation exception error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999103#M18423</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;

&lt;P&gt;i use mkl c++ compiler 11.0.066 and mkl10.1 and c++/clr vs2008&lt;/P&gt;

&lt;P&gt;i use&lt;STRONG&gt; fft and conv&lt;/STRONG&gt; function from mkl in &lt;STRONG&gt;multi thread&lt;/STRONG&gt; realtime application (each thread exec fft and conv parallel)&lt;/P&gt;

&lt;P&gt;but after little time usage memory go up and application crash.&lt;/P&gt;

&lt;P&gt;with any leak detector i cant find any leakage in my code .&lt;/P&gt;

&lt;P&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&gt;but when i call mkl_freeBuffer Application crash with &lt;STRONG&gt;access violation exception.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;what shoud i do?&lt;/P&gt;

&lt;P&gt;i use 64 bit mkl&lt;/P&gt;

&lt;P&gt;&amp;nbsp;additional library directory &amp;nbsp;-&amp;gt; em64t\lib&amp;nbsp;&lt;/P&gt;

&lt;P&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&gt;thanks for you.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2014 13:15:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999103#M18423</guid>
      <dc:creator>mmmmm__hamed</dc:creator>
      <dc:date>2014-07-13T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Do you have callstack info?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999104#M18424</link>
      <description>&lt;P&gt;Do you have callstack info?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2014 09:19:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999104#M18424</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-07-14T09:19:51Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999105#M18425</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This question would probably be more appropriate for the MKL forum not the compiler forum.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Good luck,&lt;/P&gt;

&lt;P&gt;Judy&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2014 14:03:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999105#M18425</guid>
      <dc:creator>Judith_W_Intel</dc:creator>
      <dc:date>2014-07-14T14:03:01Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999106#M18426</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'll transfer this issue to MKL forum so someone from that group can address this accordingly....&lt;/P&gt;

&lt;P&gt;_Kittur&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2014 23:15:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999106#M18426</guid>
      <dc:creator>KitturGanesh</dc:creator>
      <dc:date>2014-07-14T23:15:18Z</dc:date>
    </item>
    <item>
      <title>Can you give us the example</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999107#M18427</link>
      <description>&lt;P&gt;Can you give us the example of your test which we can compile and check the problem with the latest version of MKL?&lt;/P&gt;

&lt;P&gt;or you can try to evaluate the latest updates by yourself.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 02:59:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999107#M18427</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-07-15T02:59:29Z</dc:date>
    </item>
    <item>
      <title>this is my code </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999108#M18428</link>
      <description>&lt;P&gt;this is my code&amp;nbsp;&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;/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;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dfti_computeforward(fft_handle,input);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dftifreedescriptor(&amp;amp;fft_handle);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mkl_FreeBuffers();&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return input; &amp;nbsp; &amp;nbsp; ===&amp;gt;cursor stop here&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;}&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;MKL_Complex16* &amp;nbsp;Convolution(MKL_Complex16* &amp;nbsp;x,int &amp;nbsp; xlength, &lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;MKL_Complex16* &amp;nbsp;y &amp;nbsp;, &amp;nbsp;int ylength&lt;/SPAN&gt;&amp;nbsp;)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;{&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int convResLength=xlength+ylength-1;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VSLCONVTASKPTR &amp;nbsp; task;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;VSLCONVTASKPTR* &amp;nbsp; task-ptr;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int &amp;nbsp; iy0=0;&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;int &amp;nbsp; *start=&amp;amp;iy0;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;MKL_Complex16* res= (MKL_Complex16*) &amp;nbsp;malloc(sizeof(MKL_Complex16) &amp;nbsp;* &amp;nbsp;convResLength);&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;memset( res, &amp;nbsp;0 , &amp;nbsp;sizeof(&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;MKL_Complex16&lt;/SPAN&gt;) * ConvResLength );&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int status;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int &amp;nbsp; a= vslzConvNewTask1D( task_ptr , VSL_Conv_Mode_Auto , xlength , ylength ,convResLength &amp;nbsp;);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int &amp;nbsp;b = vslzConvSetStart( task &amp;nbsp;, start);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status &amp;nbsp;= vslzConvExec1D( task , x ,1 , y ,1, res , 1 );&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vslconvdeletetask(task_ptr);&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mkl_FreeBuffers();&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return res;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 08:00:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999108#M18428</guid>
      <dc:creator>mmmmm__hamed</dc:creator>
      <dc:date>2014-07-16T08:00:02Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;&gt;but when i call mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999109#M18429</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;but when i call mkl_freeBuffer Application crash with &lt;STRONG&gt;access violation exception&amp;gt;&amp;gt;&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Probably heap corruption or double free.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 09:16:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999109#M18429</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-07-16T09:16:35Z</dc:date>
    </item>
    <item>
      <title>Hi iliyapolak my code exist</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999110#M18430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/542548" style="font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;iliyapolak&lt;/A&gt;&amp;nbsp;my code exist in above comment . no double free.&lt;/P&gt;

&lt;P&gt;only function Result ( res variable ) will be released after use.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;are you have idea?&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 10:08:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999110#M18430</guid>
      <dc:creator>mmmmm__hamed</dc:creator>
      <dc:date>2014-07-16T10:08:56Z</dc:date>
    </item>
    <item>
      <title>Without the callstack of</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999111#M18431</link>
      <description>&lt;P&gt;Without the callstack of crash is very hard to tell what has happend&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 11:27:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-freeBuffer-access-violation-exception-error/m-p/999111#M18431</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-07-16T11:27:22Z</dc:date>
    </item>
  </channel>
</rss>

