<?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 MKL 2020.1, VS2019 linking bug in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153138#M27303</link>
    <description>&lt;P&gt;I updated to version 2020.1 and got the following error recompiling my dll&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;Error	MSB3073	The command "mkl_link_tool.exe -libs -c ms_c -a intel64 -l static 2&amp;gt; NUL" exited with code 9009.	LNM_Lapack	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\v142\ImportBefore\Intel.Libs.MKL.v142.targets	64	&lt;/PRE&gt;

&lt;P&gt;line 64 in the&amp;nbsp;Intel.Libs.MKL.v142.targets file corresponds to&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;&amp;lt;Exec ConsoleToMSBuild="true" EchoOff="true" StandardOutputImportance="low" Command="mkl_link_tool.exe $(MKLArguments) 2&amp;amp;gt; NUL" WorkingDirectory="$(MKLProductDir)\mkl\tools"&amp;gt;
    &amp;lt;Output TaskParameter="ConsoleOutput" ItemName="_MKLLibraries" /&amp;gt;
&amp;lt;/Exec&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;So VS is trying to start mkl_link_tool in the directory&amp;nbsp;"$(MKLProductDir)\mkl\tools". The problem is that there is no such file in the directory.&amp;nbsp;mkl_link_tool is located in the bin\&amp;nbsp;directory. Making a copy of the executable in the tool\ solves the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 13:50:41 GMT</pubDate>
    <dc:creator>Usievich__Boris</dc:creator>
    <dc:date>2020-04-01T13:50:41Z</dc:date>
    <item>
      <title>MKL 2020.1, VS2019 linking bug</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153138#M27303</link>
      <description>&lt;P&gt;I updated to version 2020.1 and got the following error recompiling my dll&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;Error	MSB3073	The command "mkl_link_tool.exe -libs -c ms_c -a intel64 -l static 2&amp;gt; NUL" exited with code 9009.	LNM_Lapack	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\v142\ImportBefore\Intel.Libs.MKL.v142.targets	64	&lt;/PRE&gt;

&lt;P&gt;line 64 in the&amp;nbsp;Intel.Libs.MKL.v142.targets file corresponds to&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;&amp;lt;Exec ConsoleToMSBuild="true" EchoOff="true" StandardOutputImportance="low" Command="mkl_link_tool.exe $(MKLArguments) 2&amp;amp;gt; NUL" WorkingDirectory="$(MKLProductDir)\mkl\tools"&amp;gt;
    &amp;lt;Output TaskParameter="ConsoleOutput" ItemName="_MKLLibraries" /&amp;gt;
&amp;lt;/Exec&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;So VS is trying to start mkl_link_tool in the directory&amp;nbsp;"$(MKLProductDir)\mkl\tools". The problem is that there is no such file in the directory.&amp;nbsp;mkl_link_tool is located in the bin\&amp;nbsp;directory. Making a copy of the executable in the tool\ solves the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:50:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153138#M27303</guid>
      <dc:creator>Usievich__Boris</dc:creator>
      <dc:date>2020-04-01T13:50:41Z</dc:date>
    </item>
    <item>
      <title>It's not a bug. The mkl_link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153139#M27304</link>
      <description>&lt;P&gt;It's not a bug. The mkl_link_tool&amp;nbsp;was moved to another folder only. We are sorry w/o notification the changes we did.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 15:47:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153139#M27304</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-04-01T15:47:51Z</dc:date>
    </item>
    <item>
      <title>But the file Intel.Libs.MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153140#M27305</link>
      <description>&lt;P&gt;But the file&amp;nbsp;Intel.Libs.MKL.v142.targets is a part of Intel-supplied integration with VS, I suppose it is the Intel responsibility to change it according to the new placement of the link tool.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 16:46:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153140#M27305</guid>
      <dc:creator>Usievich__Boris</dc:creator>
      <dc:date>2020-04-01T16:46:00Z</dc:date>
    </item>
    <item>
      <title>Any fixes/workarounds?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153141#M27306</link>
      <description>&lt;P&gt;Any fixes/workarounds? Unlucky day to start trying to work with MKL.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 04:27:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153141#M27306</guid>
      <dc:creator>Dietrich__Alexander</dc:creator>
      <dc:date>2020-04-02T04:27:40Z</dc:date>
    </item>
    <item>
      <title>Possible Quick Fix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153142#M27307</link>
      <description>&lt;P&gt;Possible Quick Fix&lt;/P&gt;&lt;P&gt;If you need a quick fix, here is what worked for me.&amp;nbsp; Change the file Intel.Libs.MKL.v142.targets in your visual studio install (my path was under \Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\v142\ImportBefore).&lt;/P&gt;&lt;P&gt;On line 64, find the WorkingDirectory attribute:&lt;/P&gt;&lt;P&gt;WorkingDirectory="$(MKLProductDir)\mkl\tools"&lt;/P&gt;&lt;P&gt;and change it to:&lt;/P&gt;&lt;P&gt;WorkingDirectory="$(MKLProductDir)\mkl\bin"&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 00:07:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153142#M27307</guid>
      <dc:creator>West__Phil</dc:creator>
      <dc:date>2020-04-04T00:07:45Z</dc:date>
    </item>
    <item>
      <title>Me, lazy fix:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153143#M27308</link>
      <description>&lt;P&gt;Me, lazy fix:&lt;/P&gt;&lt;P&gt;Copy everything in:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\mkl\bin&lt;/PRE&gt;

&lt;P&gt;And paste in:&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\mkl\tools&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 22:42:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153143#M27308</guid>
      <dc:creator>Siv__Ratha</dc:creator>
      <dc:date>2020-04-08T22:42:07Z</dc:date>
    </item>
    <item>
      <title>@Ratha, +1, that fixed the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153144#M27309</link>
      <description>&lt;P&gt;@Ratha, +1, that fixed the issue for me, thanks.&lt;/P&gt;&lt;P&gt;It's a bug, IMO.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 00:29:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2020-1-VS2019-linking-bug/m-p/1153144#M27309</guid>
      <dc:creator>Eric_P_Intel</dc:creator>
      <dc:date>2020-05-15T00:29:35Z</dc:date>
    </item>
  </channel>
</rss>

