<?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 Evarist, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090410#M23230</link>
    <description>&lt;P&gt;Hi Evarist,&lt;/P&gt;

&lt;P&gt;thanks for your reply. The analysis of U and T symbols is exactly what we are doing right now. We definitely need a static library, a dynamic one will not do. So it looks like we are stuck with more or less manual selection of the object files.&lt;/P&gt;

&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Mon, 29 Feb 2016 06:37:13 GMT</pubDate>
    <dc:creator>djunglas</dc:creator>
    <dc:date>2016-02-29T06:37:13Z</dc:date>
    <item>
      <title>Is there an easy way to create a static library that contains the required MKL functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090408#M23228</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;when building an executable or dynamic library that uses MKL functions, all I need to do is specify -mkl=sequential on the compiler and linker command line. icc will automatically do everything that is required (add include-directions, pull in libraries, ...). That is nice and easy.&lt;/P&gt;

&lt;P&gt;Now I want to build a static library (.a archive). The objects in this library invoke functions from MKL so I want to pack the required MKL objects into the static library as well so that I have only one static library that contains anything -- and preferably only those MKL objects that are actually required. I know how to do that by explicitly collecting the required MKL objects into the static library. But this feels cumbersome and also a little error prone. Is there anything similar to -mkl=sequential for this scenario? Would using xiar instead of ar help in any way?&lt;/P&gt;

&lt;P&gt;I looked at &lt;A href="https://software.intel.com/en-us/node/528519"&gt;https://software.intel.com/en-us/node/528519&lt;/A&gt; (the linking examples) but nothing seemed related to what I am trying to do.&lt;/P&gt;

&lt;P&gt;Thanks a lot,&lt;/P&gt;

&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 12:53:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090408#M23228</guid>
      <dc:creator>djunglas</dc:creator>
      <dc:date>2016-02-27T12:53:23Z</dc:date>
    </item>
    <item>
      <title>Hi Daniel,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090409#M23229</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;

&lt;P&gt;There is no an easy way to do that. Probably one can write some sort of script and collect required objects by analyzing U-symbols and finding objects with corresponding T-symbols.&lt;/P&gt;

&lt;P&gt;Though, if dynamic library with the same property (i.e. it contains only needed functions from MKL) suites you -- please take a look at MKL custom dll builder ($MKLROOT/tools/builder or &lt;A href="https://software.intel.com/en-us/node/528363)" target="_blank"&gt;https://software.intel.com/en-us/node/528363)&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 11:41:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090409#M23229</guid>
      <dc:creator>Evarist_F_Intel</dc:creator>
      <dc:date>2016-02-28T11:41:28Z</dc:date>
    </item>
    <item>
      <title>Hi Evarist,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090410#M23230</link>
      <description>&lt;P&gt;Hi Evarist,&lt;/P&gt;

&lt;P&gt;thanks for your reply. The analysis of U and T symbols is exactly what we are doing right now. We definitely need a static library, a dynamic one will not do. So it looks like we are stuck with more or less manual selection of the object files.&lt;/P&gt;

&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 06:37:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090410#M23230</guid>
      <dc:creator>djunglas</dc:creator>
      <dc:date>2016-02-29T06:37:13Z</dc:date>
    </item>
    <item>
      <title>Just one additional idea -- "</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090411#M23231</link>
      <description>&lt;P&gt;Just one additional idea -- "-Map" linker option may help you a little (put it in custom dll builder or your initial application and parse the output for required objects)...&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 06:52:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Is-there-an-easy-way-to-create-a-static-library-that-contains/m-p/1090411#M23231</guid>
      <dc:creator>Evarist_F_Intel</dc:creator>
      <dc:date>2016-02-29T06:52:41Z</dc:date>
    </item>
  </channel>
</rss>

