<?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 Hi, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955503#M15466</link>
    <description>Hi,

In the reference manual, I can use single dynamic library on custom build of mkl.
And the two functions are in the single dynamic library.
What is the mean of use single dynamic library on custom build of mkl?
and how can I use the custom build with MKL_Set_Threading_Layer, MKL_Set_Interface_Layer APIs?
I attached the mkl function list which I use.
Thanks.</description>
    <pubDate>Fri, 23 Nov 2012 01:08:15 GMT</pubDate>
    <dc:creator>dusunim</dc:creator>
    <dc:date>2012-11-23T01:08:15Z</dc:date>
    <item>
      <title>How to Build Custom Dynamic-link Libraries with MKL_Set_Threading_Layer, MKL_Set_Interface_Layer?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955501#M15464</link>
      <description>&lt;P&gt;I use&amp;nbsp;MKL_Set_Threading_Layer, MKL_Set_Interface_Layer APIs on my program.&lt;/P&gt;
&lt;P&gt;And I want to build a dynamic-link library of mkl to reduce dll size.&lt;/P&gt;
&lt;P&gt;But I received error messages like blow from linking stage even I choosed single dynamic library option(dllia32).&lt;/P&gt;
&lt;P&gt;I use MKL 11.0.1&lt;/P&gt;
&lt;P&gt;How can I build the Custom Dynamic-link Libraries with&amp;nbsp;MKL_Set_Threading_Layer, MKL_Set_Interface_Layer APIs?&lt;/P&gt;
&lt;P&gt;Error messages :&lt;/P&gt;
&lt;P&gt;user_def_file.def : error LNK2001 : unresolved external symbol MKL_Set_Interface_Layer&lt;/P&gt;
&lt;P&gt;mkl_custom.lib : fatal error LNK1120: 2 unresolved externals&lt;/P&gt;
&lt;P&gt;NMAKE : fatal error U1077: '"C:\Program Files &amp;lt;x86&amp;gt;\Microsoft Visual Studio 9.0\VC\BIN\link.EXE"' : return code '0x460'&lt;/P&gt;
&lt;P&gt;Stop.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 09:01:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955501#M15464</guid>
      <dc:creator>dusunim</dc:creator>
      <dc:date>2012-11-22T09:01:45Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955502#M15465</link>
      <description>Hi,

That functions are part of mkl_rt only and will require all MKL DLLs.
To reduce DLL-size please use static targets:
  libia32    - for IA-32 architecture from static Intel(R) MKL libraries
  libintel64 - for Intel(R) 64 architecture from static Intel(R) MKL libraries
which will create needed small custom DLL for selected MKL functions.</description>
      <pubDate>Thu, 22 Nov 2012 11:57:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955502#M15465</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2012-11-22T11:57:30Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955503#M15466</link>
      <description>Hi,

In the reference manual, I can use single dynamic library on custom build of mkl.
And the two functions are in the single dynamic library.
What is the mean of use single dynamic library on custom build of mkl?
and how can I use the custom build with MKL_Set_Threading_Layer, MKL_Set_Interface_Layer APIs?
I attached the mkl function list which I use.
Thanks.</description>
      <pubDate>Fri, 23 Nov 2012 01:08:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955503#M15466</guid>
      <dc:creator>dusunim</dc:creator>
      <dc:date>2012-11-23T01:08:15Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955504#M15467</link>
      <description>Hi,

In order to build MKL custom DLL for specific interface and threading please use additional settings for nmake:

    interface=lp64|ilp64   Specifies programming interface for intel64.
                                   Default: lp64.
    threading=parallel|sequential    Specifies whether to use Intel(R) MKL in the threaded or sequential mode.
                                   Default: parallel.

You can run
   nmake help
to see all possible cases to build MKL custom DLL

As to your question: "What is the mean of use single dynamic library on custom build of mkl?"
Single Dynamic Library is to easy linking with MKL. But all dynamic MKL will be loaded additionally and required on run-time.
But MKL custom DLL is the only one dynamic library which will contain only limited set of MKL functions and therefore is much smaller and may be simply redistributed.</description>
      <pubDate>Fri, 23 Nov 2012 06:07:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-Build-Custom-Dynamic-link-Libraries-with-MKL-Set/m-p/955504#M15467</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2012-11-23T06:07:10Z</dc:date>
    </item>
  </channel>
</rss>

