<?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: How to static link mkl2022 on win platform in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1399333#M33384</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A gentle reminder:&lt;/P&gt;
&lt;P&gt;Has the information provided helped? Is your issue resolved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know if you need any further information?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2022 08:11:44 GMT</pubDate>
    <dc:creator>ShanmukhS_Intel</dc:creator>
    <dc:date>2022-07-18T08:11:44Z</dc:date>
    <item>
      <title>How to static link mkl2022 on win platform</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1397032#M33349</link>
      <description>&lt;P&gt;Hello everyone:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wrote a sample program about matrices multiply. I used the zgemm function of cblas in mkl. I wanted to link it staticly.&amp;nbsp; I tried many methods, but only dynamic link worked correctly. It seems that I can't link the program staticly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My IDE is Visual Studio 2022, my mkl is oneapi 2022.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The dynamic link steps is as follow:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(1) project&amp;gt;property&amp;gt;Intel libraries for oneAPI&amp;gt;use onemkl&amp;gt;sequential&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;The static link steps is as follow:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;(1) project&amp;gt;property&amp;gt;Intel libraries for oneAPI&amp;gt;use onemkl&amp;gt;sequential&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;(2)&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;project&amp;gt;property&amp;gt;link&amp;gt;input&amp;gt;Additional dependencies add&amp;nbsp; mkl_intel_ilp64.lib mkl_sequential.lib mkl_core.lib&lt;/P&gt;
&lt;P&gt;I desire to know how to static link the mkl. The dlls of mkl is to heavy.&lt;/P&gt;
&lt;P&gt;My sample codes:&lt;/P&gt;
&lt;P&gt;_____________________________________________________________&lt;/P&gt;
&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include&amp;lt;complex&amp;gt;&lt;BR /&gt;#define MKL_Complex8 std::complex&amp;lt;float&amp;gt;&lt;BR /&gt;#define MKL_Complex16 std::complex&amp;lt;double&amp;gt;&lt;BR /&gt;#include &amp;lt;mkl.h&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;int foo()&lt;BR /&gt;{&lt;BR /&gt;MKL_Complex16 _alpha[1] = { { 0.23, 3.11 } };&lt;BR /&gt;MKL_Complex16 _beta[1] = { { 1.2, -0.72 } };&lt;BR /&gt;MKL_Complex16 A[6] = { {1.56, 0.1}, {2.06, 0.38},{ 6.32, 0.43}, {-3.22, 0.4}, {-2.78, 1.15}, {3.01, 0.6} };&lt;BR /&gt;MKL_Complex16 B[12] = { {1.11, -1.0}, {2.45, 2.37}, {3.76, 0.0}, {6.32, 0.43}, {1.11, 1.0}, {2.45, 0.04}, {3.67, 0.8}, {6.32, 0.43}, {1.11, -1.0}, {2.45, 0.63}, {3.76, 0.0}, {6.32, 0.43} };&lt;BR /&gt;MKL_Complex16 C[8] = { {0.0, 0.0}, {0.0, 0.1}, {1.0, 0.1}, {1.0, 0.0}, {0.0, 0.0}, {0.0, 0.1}, {1.0, 0.1}, {1.0, 0.0} };&lt;BR /&gt;cblas_zgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, 2, 4, 3, _alpha, A, 3, B, 4, _beta, C, 4);&lt;/P&gt;
&lt;P&gt;for (int i = 0; i &amp;lt; 8; ++i)&lt;BR /&gt;{&lt;BR /&gt;std::cout &amp;lt;&amp;lt; C[i].real &amp;lt;&amp;lt; "," &amp;lt;&amp;lt; C[i].imag &amp;lt;&amp;lt; std::endl;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;foo();&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;______________________________________________________________________&lt;/P&gt;
&lt;P&gt;Thanks for apply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 03:25:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1397032#M33349</guid>
      <dc:creator>xushuhao</dc:creator>
      <dc:date>2022-07-01T03:25:16Z</dc:date>
    </item>
    <item>
      <title>Re:How to static link mkl2022 on win platform</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1397205#M33352</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting on Intel Communities. Could you please check if the below configuration settings were given correctly under your Visual Studio properties page.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In C/C++ -&amp;gt; General -&amp;gt; Additional Include Directories C:\Program Files (x86)\Intel\oneAPI\mkl\2022.1.0\include&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Under Linker-&amp;gt; General -&amp;gt; Additional Library Directories -&amp;gt; C:\Program Files (x86)\Intel\oneAPI\mkl\2022.1.0\lib\intel64&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Various linking options were provided in below link which could help you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/linking-examples/linking-on-intel-64-architecture-systems.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/linking-examples/linking-on-intel-64-architecture-systems.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please get back to us if you still face the issue after modifying the above settings.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jul 2022 16:28:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1397205#M33352</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-07-01T16:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to static link mkl2022 on win platform</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1399333#M33384</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A gentle reminder:&lt;/P&gt;
&lt;P&gt;Has the information provided helped? Is your issue resolved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know if you need any further information?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 08:11:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1399333#M33384</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-07-18T08:11:44Z</dc:date>
    </item>
    <item>
      <title>Re:How to static link mkl2022 on win platform</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1401124#M33405</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jul 2022 08:12:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-static-link-mkl2022-on-win-platform/m-p/1401124#M33405</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-07-18T08:12:13Z</dc:date>
    </item>
  </channel>
</rss>

