<?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 Re: Technical question - crash using MKL functions in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853470#M6701</link>
    <description>&lt;P&gt;Liad,&lt;/P&gt;
&lt;P&gt;in general, it`s prohibited to use statical MKL libraries in your own dll. Try to rebuild your dll with mkl_c_dll.lib library.&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2008 05:04:36 GMT</pubDate>
    <dc:creator>Andrey_G_Intel2</dc:creator>
    <dc:date>2008-02-12T05:04:36Z</dc:date>
    <item>
      <title>Technical question - crash using MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853465#M6696</link>
      <description>&lt;P class="MsoNormal"&gt;Hello,&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;I am trying to run my tester, which tests a dll using MKL libraries.&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;It works great on release mode, but on debug mode it crashes and screams  Access Violation.&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;This is my call stack, if it can help in any way:&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;MyTester.exe!_mkl_blas_p4m_dgcopyan() + 0x15b bytesFortran&lt;BR /&gt;MyTester.exe!_mkl_blas_p4m_xdgemm() + 0x32a bytesC&lt;BR /&gt;MyTester.exe!_mkl_blas_p4m_dgemm() + 0xb89 bytesC&lt;BR /&gt;MyTester.exe!_mkl_blas_p4m_dtrsm() + 0x7ff bytesC&lt;BR /&gt;MyTester.exe!_mkl_blas_dgemm() + 0x56 bytesC&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;I would like to know if you have any idea what might cause it.&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;Maybe something in my configurations isnt set right.&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;I am using libguide40.lib, MKL 9.0&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;Thank you in advance,&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;Liad.&lt;P&gt;&lt;/P&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2008 15:53:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853465#M6696</guid>
      <dc:creator>lsheva</dc:creator>
      <dc:date>2008-02-10T15:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Technical question - crash using MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853466#M6697</link>
      <description>Among the possibilities are that the data arrays you supply to DGEMM aren't large enough for the array size parameters you have given.&lt;BR /&gt;</description>
      <pubDate>Sun, 10 Feb 2008 16:44:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853466#M6697</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-02-10T16:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Technical question - crash using MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853467#M6698</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;
&lt;P&gt;I debugged the code that I am testing (the sources of the dll), and saw the crash happens only after more than 2500 calls to the same code.&lt;/P&gt;
&lt;P&gt;It crashes on a call to the dgetrf(...) function, which, as I asume, calls to dgemm(...) .&lt;/P&gt;
&lt;P&gt;I tried to locate memory leaks before the crash, but I couldn't find any.&lt;/P&gt;
&lt;P&gt;Is there anything you know about the impementation of the dgetrf(...) that may cause the stack look like it is in my previous message?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Liad.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#010001" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2008 12:40:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853467#M6698</guid>
      <dc:creator>lsheva</dc:creator>
      <dc:date>2008-02-11T12:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Technical question - crash using MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853468#M6699</link>
      <description>&lt;P&gt;Liad,&lt;/P&gt;
&lt;P&gt;am I understand correctly what you are trying to build your own dll where MKL used?&lt;/P&gt;
&lt;P&gt;With which MKL libraries you are linking your project?&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2008 13:48:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853468#M6699</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2008-02-11T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Technical question - crash using MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853469#M6700</link>
      <description>&lt;P&gt;Hi Andrey,&lt;/P&gt;
&lt;P&gt;I am trying to test my dll.&lt;/P&gt;
&lt;P&gt;The dlluses mkl_c.lib and libguide40.lib, from MKL 9.0.&lt;/P&gt;
&lt;P&gt;In the dll, the following files are included:&lt;/P&gt;&lt;FONT color="#a31515" size="2"&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;mkl_lapack.h, &lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;mkl_vml.h, &lt;/FONT&gt;&lt;FONT size="2"&gt;mkl_service.h&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;I have the dll sources so I can debug it.&lt;/P&gt;
&lt;P&gt;I am not trying to build dll, I have a simple cpp file to allow me using the dll functions. (unit test)&lt;/P&gt;
&lt;P&gt;It crashes inside one of the source files of the dll, exactly when I am calling the dgetrf(...) ( at the 2812th call ).&lt;/P&gt;
&lt;P&gt;On the stack view, I see only a call to dgemm(...) and other MKL functions.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks a lot,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Liad.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2008 14:23:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853469#M6700</guid>
      <dc:creator>lsheva</dc:creator>
      <dc:date>2008-02-11T14:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Technical question - crash using MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853470#M6701</link>
      <description>&lt;P&gt;Liad,&lt;/P&gt;
&lt;P&gt;in general, it`s prohibited to use statical MKL libraries in your own dll. Try to rebuild your dll with mkl_c_dll.lib library.&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:04:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853470#M6701</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2008-02-12T05:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Technical question - crash using MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853471#M6702</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Ok, Thanks, I'll try it.&lt;/P&gt;
&lt;P&gt;Meanwhile, I removed a frequent call to MKLFreeBuffers() , and changed it to one call at the ent of my tester.&lt;/P&gt;
&lt;P&gt;For now it works fine, without any memory leaks or exceptions.&lt;/P&gt;
&lt;P&gt;If you think there might be a problem with it - please let me know.&lt;/P&gt;
&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;
&lt;P&gt;Liad.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:46:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853471#M6702</guid>
      <dc:creator>lsheva</dc:creator>
      <dc:date>2008-02-12T09:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Technical question - crash using MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853472#M6703</link>
      <description>&lt;P&gt;In my best knowledge, some problems (memory leaks) in memory manager exists in MKL 9.0 and these problems were fixed in MKL 10.0 update 1.&lt;/P&gt;
&lt;P&gt;You can try newes version of MKL.&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2008 13:20:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Technical-question-crash-using-MKL-functions/m-p/853472#M6703</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2008-02-13T13:20:26Z</dc:date>
    </item>
  </channel>
</rss>

