<?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:Intel MKL fails to link with Intel C++ compiler... in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-fails-to-link-with-Intel-C-compiler-2019-04-and-newer/m-p/1187744#M29644</link>
    <description>&lt;P&gt;Have you had a chance to try version 2020.1?&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 28 Jun 2020 05:25:30 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2020-06-28T05:25:30Z</dc:date>
    <item>
      <title>Intel MKL fails to link with Intel C++ compiler 2019.04 and newer</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-fails-to-link-with-Intel-C-compiler-2019-04-and-newer/m-p/1134855#M25951</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm using Intel MKL to calculate some complex to real DFT transforms and their inverse. In my project I also use `std::exp` math function with float data type. The issue is, that for some reason the `ldexpf` function is both exported from the Intel math library and Intel MKL and the linking step fails:&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark; wrap-lines:false;"&gt;libmmd.lib(libmmd.dll) : : error LNK2005: ldexpf already defined in mkl_intel_ilp64_dll.lib(dfticreatedescriptor_s_md.obj)&lt;/PRE&gt;

&lt;P&gt;This applies to the static library builds as well:&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark; wrap-lines:false;"&gt;libmmd.lib(libmmd.dll) : : error LNK2005: ldexpf already defined in mkl_intel_ilp64.lib(dfticreatedescriptor_s_md.obj)&lt;/PRE&gt;

&lt;P&gt;The important change that triggered this behavior can be found in `math.h`, Intel C++ 2019.03 version, starting at line 89:&lt;/P&gt;

&lt;PRE class="brush:cpp; class-name:dark; wrap-lines:false;"&gt;/* _ldexpf already defined libcpmt.lib, may cause conflict */
/* temporarily allow inline implementation in MS header file */
//#    define ldexpf    __MS_ldexpf&lt;/PRE&gt;

&lt;P&gt;Intel C++ Compiler 2019.04 and later:&lt;/P&gt;

&lt;PRE class="brush:cpp; class-name:dark; wrap-lines:false;"&gt;#    define ldexpf    __MS_ldexpf&lt;/PRE&gt;

&lt;P&gt;As a workaround, one may a) comment out the above mentioned line again in the `math.h` b) pass `/FORCE:MULTIPLE` to the linker.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Linking:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I did not make a minimal example since the error seems to be straightforward and you dealt with similar issues before: &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/805616" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/805616&lt;/A&gt; . I usually link "manually" due to the use of different compilers and static linking support (with link line confirmed to be identical to the one generated with MKL link line advisor for Windows, ILP64 API, OpenMP threading) but I get the same result by simply using `-DMKL_ILP64 /Qmkl:parallel`.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Intel C++ Compiler Version 19.1.0.166 (but you can use any version starting from 2019.04)&lt;BR /&gt;Visual Studio 2017 Version 15.9.15 (VS 2019 tested a while ago with the same outcome), the bug doesn't affect GNU/Linux builds&lt;BR /&gt;Intel MKL Version 2020 (tested several versions between 2019 Update 3 and 2020, all affected)&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:11:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-fails-to-link-with-Intel-C-compiler-2019-04-and-newer/m-p/1134855#M25951</guid>
      <dc:creator>Budisky__Jakub</dc:creator>
      <dc:date>2020-03-02T14:11:21Z</dc:date>
    </item>
    <item>
      <title>this is a known issue and the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-fails-to-link-with-Intel-C-compiler-2019-04-and-newer/m-p/1134856#M25952</link>
      <description>&lt;P&gt;this is a known issue and the fix of the problem will be available into one of the next updates. We will keep this thread updated.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:36:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-fails-to-link-with-Intel-C-compiler-2019-04-and-newer/m-p/1134856#M25952</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-03-02T14:36:39Z</dc:date>
    </item>
    <item>
      <title>Re:Intel MKL fails to link with Intel C++ compiler...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-fails-to-link-with-Intel-C-compiler-2019-04-and-newer/m-p/1187744#M29644</link>
      <description>&lt;P&gt;Have you had a chance to try version 2020.1?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 28 Jun 2020 05:25:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-fails-to-link-with-Intel-C-compiler-2019-04-and-newer/m-p/1187744#M29644</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-06-28T05:25:30Z</dc:date>
    </item>
  </channel>
</rss>

