<?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:Custom MKL DLL generating unwanted dependencies in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1382834#M33130</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.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We would like to request you to try creating oneMKL custom dll using command prompt.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;In past experiences in building custom DLLs for MKL, I was expecting the custom DLL to only be dependent on the "libiomp5md.dll", and not on the "mkl_intel_thread.2.dll".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know the previous version you used which was only dependent on libiomp5md.dll and current oneAPI version as well.&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, 09 May 2022 11:22:27 GMT</pubDate>
    <dc:creator>ShanmukhS_Intel</dc:creator>
    <dc:date>2022-05-09T11:22:27Z</dc:date>
    <item>
      <title>Custom MKL DLL generating unwanted dependencies</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1382688#M33126</link>
      <description>&lt;P&gt;I am trying to create a custom MKL DLL via Visual Studio using the builder found in the "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\tools\builder\MSVS_Projects\VS2022\libintel64" directory.&amp;nbsp; I am also following the instructions found here:&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/building-custom-dynamic-linked-shared-libraries/building-a-custom-dll-in-visual-studio-dev-system.html" target="_blank" rel="noopener"&gt;Building a Custom Dynamic-link Library in the Visual Studio*... (intel.com)&lt;/A&gt;. I am simply trying to export the "cblas_dgemm" function. However, the generated DLL has the following dependencies:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;Dump of file libmkl.dll

File Type: DLL

Image has the following dependencies:

mkl_intel_thread.2.dll
VCRUNTIME140.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
KERNEL32.dll
api-ms-win-crt-stdio-l1-1-0.dll&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is the "mkl_intel_thread.2.dll", which in turn has the following dependencies (and so on):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;Dump of file mkl_intel_thread.2.dll

File Type: DLL

  Image has the following dependencies:

    KERNEL32.dll

  Image has the following delay load dependencies:

    mkl_core.2.dll
    libiomp5md.dll&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In past experiences in building custom DLLs for MKL, I was expecting the custom DLL to only be dependent on the "libiomp5md.dll", and not on the "mkl_intel_thread.2.dll". According to&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/building-custom-dynamic-linked-shared-libraries/distributing-custom-dynamic-linked-shared-lib.html" target="_blank" rel="noopener"&gt;Distributing Your Custom Dynamic-link Library (intel.com)&lt;/A&gt;, this should indeed be the case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 00:44:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1382688#M33126</guid>
      <dc:creator>carsou</dc:creator>
      <dc:date>2022-05-09T00:44:03Z</dc:date>
    </item>
    <item>
      <title>Re:Custom MKL DLL generating unwanted dependencies</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1382834#M33130</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.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We would like to request you to try creating oneMKL custom dll using command prompt.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;In past experiences in building custom DLLs for MKL, I was expecting the custom DLL to only be dependent on the "libiomp5md.dll", and not on the "mkl_intel_thread.2.dll".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know the previous version you used which was only dependent on libiomp5md.dll and current oneAPI version as well.&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, 09 May 2022 11:22:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1382834#M33130</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-05-09T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Custom MKL DLL generating unwanted dependencies</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1382842#M33131</link>
      <description>&lt;P&gt;Thank you for you suggestion.&lt;/P&gt;
&lt;P&gt;If I build using the command prompt, as shown here:&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/building-custom-dynamic-linked-shared-libraries/using-the-custom-dll-builder-in-command-line-mode.html" target="_blank"&gt;Using the Custom Dynamic-link Library Builder in the Command-line... (intel.com)&lt;/A&gt;, it works fine (in the sense that the custom DLL is only dependent on "libiomp5md.dll", and not on other MKL libraries):&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;Dump of file mkl_custom.dll

File Type: DLL

  Image has the following dependencies:

    KERNEL32.dll
    VCRUNTIME140.dll
    api-ms-win-crt-heap-l1-1-0.dll
    api-ms-win-crt-string-l1-1-0.dll
    api-ms-win-crt-convert-l1-1-0.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    api-ms-win-crt-environment-l1-1-0.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    libiomp5md.dll
    api-ms-win-crt-time-l1-1-0.dll&lt;/LI-CODE&gt;
&lt;P&gt;And the size of the custom DLL is now much larger (7 600 KB vs 18 KB).&lt;/P&gt;
&lt;P&gt;So it appears that the problem is within the provided Visual Studio projects (I am using VS 2022).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt; &lt;EM&gt;Could you please let us know the previous version you used which was only dependent on libiomp5md.dll and current oneAPI version as well.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The previous version I used (where I ran into no problems regarding the DLL dependencies) was via one of latest Intel Parallel Studio XE 2020 distributions (can't recall exact version). Currently, I am using MKL via the latest oneAPI distribution (2022.1.0).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 12:20:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1382842#M33131</guid>
      <dc:creator>carsou</dc:creator>
      <dc:date>2022-05-09T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re:Custom MKL DLL generating unwanted dependencies</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1383574#M33149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since your initial query is resolved, Could you please let us know if we could close the thread at our end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&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>Wed, 11 May 2022 16:14:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1383574#M33149</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-05-11T16:14:52Z</dc:date>
    </item>
    <item>
      <title>Re:Custom MKL DLL generating unwanted dependencies</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1385829#M33179</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Reminder:&lt;/P&gt;&lt;P&gt;Has the solution provided helped? Is your issue resolved? Kindly let us know if we could close this thread at our end.&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, 20 May 2022 03:34:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1385829#M33179</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-05-20T03:34:09Z</dc:date>
    </item>
    <item>
      <title>Re:Custom MKL DLL generating unwanted dependencies</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1387938#M33197</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>Fri, 27 May 2022 04:00:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Custom-MKL-DLL-generating-unwanted-dependencies/m-p/1387938#M33197</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-05-27T04:00:41Z</dc:date>
    </item>
  </channel>
</rss>

