<?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 Sorry, my error.  I was not in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trust-Region-solver-memory-corruption/m-p/928647#M13555</link>
    <description>&lt;P&gt;Sorry, my error. &amp;nbsp;I was not creating the fjac vector correctly - it was too small. &amp;nbsp;I had only m elements.&lt;/P&gt;

&lt;P&gt;Sorry for the noise!&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2013 00:56:07 GMT</pubDate>
    <dc:creator>Michael_Sarahan</dc:creator>
    <dc:date>2013-12-06T00:56:07Z</dc:date>
    <item>
      <title>Trust Region solver memory corruption</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trust-Region-solver-memory-corruption/m-p/928645#M13553</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I'm trying to use MKL to replace existing Levenberg-Marquardt fitting using MINPACK or MPFit. &amp;nbsp;As a test case, I'm fitting a Gaussian function. &amp;nbsp;Things work pretty well, except that my program crashes at the final MKL_FreeBuffers call. &amp;nbsp;I don't know if this is an MKL problem, as this crash occurs even when I comment out that MKL_FreeBuffers call.&lt;/P&gt;

&lt;P&gt;I've pasted part of my code here:&amp;nbsp;&lt;A href="http://pastebin.com/SXuQ8egA"&gt;http://pastebin.com/SXuQ8egA&lt;/A&gt;&amp;nbsp;- if more of the code would be helpful, I'll upload it. &amp;nbsp;It's just a rather large codebase to ask you to crawl through.&lt;/P&gt;

&lt;P&gt;I had a few questions, just to make sure I'm not doing anything dumb:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Is it OK to use vectors as I've done, instead of malloc? &amp;nbsp;It seems to work (the algorithm fits my test Gaussian correctly), but memory corruption occurs at the end occurs in a vector's destructor. &amp;nbsp;(Do you have a good way to identify which vector is causing the problem? &amp;nbsp;I'm afraid I don't know how to debug that.)&lt;/LI&gt;
	&lt;LI&gt;Does MKL keep any handle on any of the temporary arrays that would cause that destructor problem?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;For reference, I'm using VS2008, x64 and MKL 10.3.1.&lt;/P&gt;

&lt;P&gt;Thanks for any tips...&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 01:37:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trust-Region-solver-memory-corruption/m-p/928645#M13553</guid>
      <dc:creator>Michael_Sarahan</dc:creator>
      <dc:date>2013-12-05T01:37:57Z</dc:date>
    </item>
    <item>
      <title>PS: I also sometimes get</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trust-Region-solver-memory-corruption/m-p/928646#M13554</link>
      <description>&lt;P&gt;PS: I also sometimes get access violation errors in my djacobix call, but that's not every time.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 01:41:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trust-Region-solver-memory-corruption/m-p/928646#M13554</guid>
      <dc:creator>Michael_Sarahan</dc:creator>
      <dc:date>2013-12-05T01:41:58Z</dc:date>
    </item>
    <item>
      <title>Sorry, my error.  I was not</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trust-Region-solver-memory-corruption/m-p/928647#M13555</link>
      <description>&lt;P&gt;Sorry, my error. &amp;nbsp;I was not creating the fjac vector correctly - it was too small. &amp;nbsp;I had only m elements.&lt;/P&gt;

&lt;P&gt;Sorry for the noise!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 00:56:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trust-Region-solver-memory-corruption/m-p/928647#M13555</guid>
      <dc:creator>Michael_Sarahan</dc:creator>
      <dc:date>2013-12-06T00:56:07Z</dc:date>
    </item>
  </channel>
</rss>

