<?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: Impossible to link statically MKL from within a DLL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907053#M11804</link>
    <description>&lt;P&gt;If that is because of the new memory manager can it be resolved by redefining memory functions as described in the user guide? &lt;/P&gt;
&lt;P&gt;E.g. redefining i_malloc, i_free etc.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2007 06:15:41 GMT</pubDate>
    <dc:creator>Trifon</dc:creator>
    <dc:date>2007-10-25T06:15:41Z</dc:date>
    <item>
      <title>Impossible to link statically MKL from within a DLL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907048#M11799</link>
      <description>&lt;FONT color="#008000"&gt;&lt;FONT color="#008000"&gt;
&lt;P&gt;&lt;FONT face="Arial" color="#000000" size="2"&gt;Can anyone help with the following issue?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Arial" color="#000000" size="2"&gt;Newer versions 9.* and 10.* do not allow MKL to be linked statically from within a DLL except ifthis DLL is built with the custom DLL builder.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Arial" color="#000000" size="2"&gt;To demonstrate the problem, usingVS2005 create a Class Library project (DLL project) that contains a single class with a single method. Link statically the Class Library project to mkl_c.lib and libguide.lib. Then create a console project and try to callthe DoDGEMM method.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Arial" color="#000000" size="2"&gt;The following code runs fine with version 8.1.1 but fails to run with versions 9.* and 10.*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Arial" color="#000000" size="2"&gt;This is the code for the DLL project&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;PRE&gt;&lt;FONT color="#008000" size="2"&gt;&lt;P&gt;// stdafx.h &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;#pragma&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;once&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"mkl.h"&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;#define&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; ALIGNBYTES 16&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;extern&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"C"&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;void&lt;/FONT&gt;&lt;FONT size="2"&gt;* _aligned_malloc(size_t size, size_t alignment);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;void&lt;/FONT&gt;&lt;FONT size="2"&gt; _aligned_free(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;void&lt;/FONT&gt;&lt;FONT size="2"&gt; *memblock);&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT color="#008000" size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// TEST2005_DLL.h&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;#pragma&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;once&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"stdafx.h"&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;using&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;namespace&lt;/FONT&gt;&lt;FONT size="2"&gt; System;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;namespace&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; TEST2005_DLL {&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;public&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;ref&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;class&lt;/FONT&gt;&lt;FONT size="2"&gt; Class1&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;public&lt;/FONT&gt;&lt;FONT size="2"&gt;:&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;void&lt;/FONT&gt;&lt;FONT size="2"&gt; DoDGEMM()&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// The following code &lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;works fine with version 8.1.1 &lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// but it does not work with versions 9.* and 10.* &lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// Testing matrix multiplicatio c = a * b&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// where a is a m x k matrix&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// where b is a k x n matrix&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// where c is a m x n matrix&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// define m, k, n&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; m = 50;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; k = 60;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; n = 70;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System::Random ^rand = &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;gcnew&lt;/FONT&gt;&lt;FO nt="" size="2"&gt; System::Random(1);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2"&gt;// define matrix "a" with random values&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt; *a = (&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;*) _aligned_malloc( m * k * &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sizeof&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;), ALIGNBYTES); &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;for&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; i=0; i&amp;lt; (m*k); i++) a&lt;I&gt; = rand-&amp;gt;NextDouble();&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// define matrix "b" with random values&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt; *b = (&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;*) _aligned_malloc( k * n * &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sizeof&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;), ALIGNBYTES);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;for&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; i=0; i &amp;lt; (k*n); i++) b&lt;I&gt; = rand-&amp;gt;NextDouble();&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// define space for matrix "c"&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt; *c = (&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;*) _aligned_malloc( m * n * &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sizeof&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;), ALIGNBYTES);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;char&lt;/FONT&gt;&lt;FONT size="2"&gt; transa = &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;'N'&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;char&lt;/FONT&gt;&lt;FONT size="2"&gt; transb = &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;'N'&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt; alpha = 1.0;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt; beta = 0.0;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; lda = m;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; ldb = k;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; ldc = m;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DGEMM(&amp;amp;transa, &amp;amp;transb, &amp;amp;m, &amp;amp;n, &amp;amp;k, α, a, &amp;amp;lda, b, &amp;amp;ldb, β, c, &amp;amp;ldc);&lt;/P&gt;&lt;P&gt;_aligned_free(a);&lt;/P&gt;&lt;P&gt;_aligned_free(b);&lt;/P&gt;&lt;P&gt;_aligned_free(c);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;This is the code for the console application project using theDLL project&lt;/FONT&gt; &lt;/FO&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT color="#008000" size="2"&gt;&lt;P&gt;// TEST2005_EXE.cpp : main project file.&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;#include&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"stdafx.h"&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;using&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;namespace&lt;/FONT&gt;&lt;FONT size="2"&gt; System;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;using&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;namespace&lt;/FONT&gt;&lt;FONT size="2"&gt; TEST2005_DLL;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;int&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; main(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;array&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;:STRING&gt; ^args)&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Class1^ cl = &lt;/P&gt;&lt;/:STRING&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;gcnew&lt;/FONT&gt;&lt;FONT size="2"&gt; Class1();&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl-&amp;gt;DoDGEMM();&lt;/P&gt;&lt;P&gt;Console::WriteLine(&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"Succeded"&lt;/FONT&gt;&lt;FONT size="2"&gt;);&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console::Read();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return
&lt;/FONT&gt;&lt;FONT size="2"&gt; 0;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 26 Sep 2007 08:05:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907048#M11799</guid>
      <dc:creator>Trifon</dc:creator>
      <dc:date>2007-09-26T08:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to link statically MKL from within a DLL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907049#M11800</link>
      <description>I have the same problem. Any solution ?&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Oct 2007 17:19:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907049#M11800</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2007-10-10T17:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to link statically MKL from within a DLL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907050#M11801</link>
      <description>&lt;P&gt;Yes, you are right - it`s impossible to use statical MKL in your own DLL. It happen because in MKL we have thread safe mechanism and this mechanism is different for statical and dynamical libraries at windows. If you are trying to use statical libraries in your dynamical libraries you`ll receive a crash because MKL TLS section will not be initialized.&lt;/P&gt;
&lt;P&gt;If you plan to create your own DLL you should use dynamical MKL libraries.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2007 07:37:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907050#M11801</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2007-10-22T07:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to link statically MKL from within a DLL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907051#M11802</link>
      <description>&lt;P&gt;Yes, but it did work with older versions of MKL. Newer versions should not reduce functionality.&lt;/P&gt;
&lt;P&gt;At least there should be an option or a switch which allow this to be done. For example MKL TLS section would require a "manual" initialization before MKL is used.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2007 05:43:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907051#M11802</guid>
      <dc:creator>Trifon</dc:creator>
      <dc:date>2007-10-25T05:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to link statically MKL from within a DLL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907052#M11803</link>
      <description>As I can see you are using BLAS functionality. In newest MKL version we have new feature - memory manager what used in BLAS. This feature is thread safety and used TLS. In older MKL we have not memory manager and you are able to use statical MKL in your dynamical libraries, but not in case of VML&amp;amp;VSL.</description>
      <pubDate>Thu, 25 Oct 2007 05:51:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907052#M11803</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2007-10-25T05:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to link statically MKL from within a DLL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907053#M11804</link>
      <description>&lt;P&gt;If that is because of the new memory manager can it be resolved by redefining memory functions as described in the user guide? &lt;/P&gt;
&lt;P&gt;E.g. redefining i_malloc, i_free etc.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2007 06:15:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907053#M11804</guid>
      <dc:creator>Trifon</dc:creator>
      <dc:date>2007-10-25T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to link statically MKL from within a DLL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907054#M11805</link>
      <description>No, redefining default memory managers functions will not resolve your problem.</description>
      <pubDate>Thu, 25 Oct 2007 06:21:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907054#M11805</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2007-10-25T06:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Impossible to link statically MKL from within a DLL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907055#M11806</link>
      <description>&lt;P&gt;I am trying to use the Pardiso solver in Intel MKL in a matlab mex dll using IVF 10.1 on Windows. The program crashes when Pardiso is called. I have statically linked libs: &lt;FONT face="Courier New" color="#228b22" size="2"&gt;libguide40.lib mkl_c.lib mkl_solver.lib. &lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Can I do this with dynamic linking? Which libs do I then need and howdo I link to them?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color="#228b22" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color="#228b22" size="2"&gt;&lt;FONT face="Times New Roman" color="#000000" size="3"&gt;/ Mats Landervik&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2008 12:12:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Impossible-to-link-statically-MKL-from-within-a-DLL/m-p/907055#M11806</guid>
      <dc:creator>lanmat</dc:creator>
      <dc:date>2008-06-11T12:12:23Z</dc:date>
    </item>
  </channel>
</rss>

