<?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 Crash when repeatedly load/free a dll which calling mkl ?potrf function in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-when-repeatedly-load-free-a-dll-which-calling-mkl-potrf/m-p/1079203#M22720</link>
    <description>&lt;P&gt;We need to use LoadLibrary() and FreeLibrary() to dynamically load/unload a dll, which, among other things, calling mkl ?potrf() function. But the calling often ends up with a crash in a few (2 or 3) cycles.&lt;/P&gt;

&lt;P&gt;This problem is isolated into a tiny demo code attached below. The testDll.f90 is the code for the dll; and client.f90 does the loading, calling and freeing which is based on the dll sample code coming with the compiler.&lt;/P&gt;

&lt;P&gt;This crash can also be duplicated by calling from C code.&lt;/P&gt;

&lt;P&gt;Did I miss any critical initialisation and/or clean up function from the code?&lt;/P&gt;

&lt;P&gt;The code was built using Intel(R) Visual Fortran Compiler for IA-32, Version 16.0.3.207.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2016 15:11:26 GMT</pubDate>
    <dc:creator>a_b_4</dc:creator>
    <dc:date>2016-09-16T15:11:26Z</dc:date>
    <item>
      <title>Crash when repeatedly load/free a dll which calling mkl ?potrf function</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-when-repeatedly-load-free-a-dll-which-calling-mkl-potrf/m-p/1079203#M22720</link>
      <description>&lt;P&gt;We need to use LoadLibrary() and FreeLibrary() to dynamically load/unload a dll, which, among other things, calling mkl ?potrf() function. But the calling often ends up with a crash in a few (2 or 3) cycles.&lt;/P&gt;

&lt;P&gt;This problem is isolated into a tiny demo code attached below. The testDll.f90 is the code for the dll; and client.f90 does the loading, calling and freeing which is based on the dll sample code coming with the compiler.&lt;/P&gt;

&lt;P&gt;This crash can also be duplicated by calling from C code.&lt;/P&gt;

&lt;P&gt;Did I miss any critical initialisation and/or clean up function from the code?&lt;/P&gt;

&lt;P&gt;The code was built using Intel(R) Visual Fortran Compiler for IA-32, Version 16.0.3.207.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 15:11:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-when-repeatedly-load-free-a-dll-which-calling-mkl-potrf/m-p/1079203#M22720</guid>
      <dc:creator>a_b_4</dc:creator>
      <dc:date>2016-09-16T15:11:26Z</dc:date>
    </item>
  </channel>
</rss>

