<?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: Can you do static (or dynamic?) linking of MKL functions in in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858631#M7302</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;It is possible to create such static library, but it is not "one button" solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;You should determine which files from MKL static libraries is required, extract them and add to your static library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;To determine which files are required you can build your application or "custom" DLL (tools/builder) with generation of map file.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2008 11:57:38 GMT</pubDate>
    <dc:creator>Andrey_Bespalov</dc:creator>
    <dc:date>2008-10-28T11:57:38Z</dc:date>
    <item>
      <title>Can you do static (or dynamic?) linking of MKL functions into user's static library?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858629#M7300</link>
      <description>&lt;P&gt;Can you do static (or dynamic?) linking of MKL functions into a user's static library?&lt;/P&gt;
&lt;P&gt;(Visual studio 8, VC++)&lt;/P&gt;
&lt;P&gt;If so, how do you avoid the unresolved external symbol errors for all the MKL functions called from the user's library?&lt;/P&gt;
&lt;P&gt;I can do linking just find into executable codes, but haven't had any luck getting my static library with mkl calls to link in.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2008 21:52:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858629#M7300</guid>
      <dc:creator>CCar</dc:creator>
      <dc:date>2008-10-27T21:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do static (or dynamic?) linking of MKL functions in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858630#M7301</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/406421"&gt;CCar&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Can you do static (or dynamic?) linking of MKL functions into a user's static library?&lt;/P&gt;
&lt;P&gt;(Visual studio 8, VC++)&lt;/P&gt;
&lt;P&gt;If so, how do you avoid the unresolved external symbol errors for all the MKL functions called from the user's library?&lt;/P&gt;
&lt;P&gt;I can do linking just find into executable codes, but haven't had any luck getting my static library with mkl calls to link in.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for any help.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;You can do both static and dynamic linking using MKL function into user static library. The high level libraries and threading   softwares of MKL makes this possible , the libguide.a for static and libguide.so for dynamic &lt;STRONG&gt;&lt;CODE&gt;. &lt;/CODE&gt;&lt;/STRONG&gt;Turn off the Basic Runtime Checks (disable /RTC) and Buffer Security Checks (/GS) and try out .&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2008 04:02:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858630#M7301</guid>
      <dc:creator>Cijo_Abraham_Mani</dc:creator>
      <dc:date>2008-10-28T04:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do static (or dynamic?) linking of MKL functions in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858631#M7302</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;It is possible to create such static library, but it is not "one button" solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;You should determine which files from MKL static libraries is required, extract them and add to your static library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;To determine which files are required you can build your application or "custom" DLL (tools/builder) with generation of map file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2008 11:57:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858631#M7302</guid>
      <dc:creator>Andrey_Bespalov</dc:creator>
      <dc:date>2008-10-28T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do static (or dynamic?) linking of MKL functions in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858632#M7303</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/206171"&gt;Andrey Bespalov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;It is possible to create such static library, but it is not "one button" solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;You should determine which files from MKL static libraries is required, extract them and add to your static library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;To determine which files are required you can build your application or "custom" DLL (tools/builder) with generation of map file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;I have been able to link the MKL libraries dynamically to my static library. As expected, then my project settings on my executable program also needed to include the mkl_c_dll.lib, etc libraries so that it would not have unresolved external function errors. This is not quite how I wanted it to work, but it does work this way.&lt;/P&gt;
&lt;P&gt;Also, I was trying to use the non-threading libraries in my static library, but I don't understand why it forced me to include the mkl_intel_thread_dll.lib for the executable or else it wouldn't finish linking.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2008 23:35:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858632#M7303</guid>
      <dc:creator>CCar</dc:creator>
      <dc:date>2008-10-29T23:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do static (or dynamic?) linking of MKL functions in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858633#M7304</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/262179"&gt;cijoaj2003&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;You can do both static and dynamic linking using MKL function into user static library. The high level libraries and threading   softwares of MKL makes this possible , the libguide.a for static and libguide.so for dynamic &lt;STRONG&gt;&lt;CODE&gt;. &lt;/CODE&gt;&lt;/STRONG&gt;Turn off the Basic Runtime Checks (disable /RTC) and Buffer Security Checks (/GS) and try out .&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Aren't .a and .so libraries for UNIX type compilations? Don't you have to use .lib under windows?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2008 23:37:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858633#M7304</guid>
      <dc:creator>CCar</dc:creator>
      <dc:date>2008-10-29T23:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do static (or dynamic?) linking of MKL functions in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858634#M7305</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/406421"&gt;CCar&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;I have been able to link the MKL libraries dynamically to my static library. As expected, then my project settings on my executable program also needed to include the mkl_c_dll.lib, etc libraries so that it would not have unresolved external function errors. This is not quite how I wanted it to work, but it does work this way.&lt;/P&gt;
&lt;P&gt;Also, I was trying to use the non-threading libraries in my static library, but I don't understand why it forced me to include the mkl_intel_thread_dll.lib for the executable or else it wouldn't finish linking.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;You should use mkl_sequential_dll.lib instead of mkl_intel_thread_dll.libif you want to use non-threaded version.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:38:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-you-do-static-or-dynamic-linking-of-MKL-functions-into-user/m-p/858634#M7305</guid>
      <dc:creator>Andrey_Bespalov</dc:creator>
      <dc:date>2008-10-30T09:38:05Z</dc:date>
    </item>
  </channel>
</rss>

