<?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 How to add MKL with TBB threading to application that uses TBB under Visual Studio? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-add-MKL-with-TBB-threading-to-application-that-uses-TBB/m-p/1168252#M28364</link>
    <description>&lt;P&gt;I have installed IntelSWTools 2017.4:&lt;BR /&gt;
	c:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows&lt;/P&gt;

&lt;P&gt;My application uses TBB:&lt;BR /&gt;
	Release(/MD): tbb\lib\intel64\vc12\tbb.lib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; redist\intel64\tbb\vc12\tbb.dll&lt;BR /&gt;
	Debug(/MDd):&amp;nbsp; tbb\lib\intel64\vc12\tbb_debug.lib -&amp;gt; redist\intel64\tbb\vc12\tbb_debug.dll&lt;/P&gt;

&lt;P&gt;How to add MKL with TBB threading (so that there would be only one TBB instance) to application that uses TBB?&lt;/P&gt;

&lt;P&gt;The problem is that mkl_tbb_thread_dll.dll (as I understand) linked with:&lt;BR /&gt;
	tbb\lib\intel64\vc_mt\tbb.lib -&amp;gt; redist\intel64\tbb\vc_mt\tbb.dll&lt;BR /&gt;
	which is different from what my application uses.&lt;/P&gt;

&lt;P&gt;Is redist\intel64\tbb\vc_mt\tbb.dll for mkl_tbb_thread_dll.dll can be changed to redist\intel64\tbb\vc12\tbb.dll ?&lt;BR /&gt;
	If yes how to be with Debug build (somehow rename redist\intel64\tbb\vc12\tbb_debug.dll to tbb.dll)?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 14:49:44 GMT</pubDate>
    <dc:creator>ronhartley</dc:creator>
    <dc:date>2017-08-17T14:49:44Z</dc:date>
    <item>
      <title>How to add MKL with TBB threading to application that uses TBB under Visual Studio?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-add-MKL-with-TBB-threading-to-application-that-uses-TBB/m-p/1168252#M28364</link>
      <description>&lt;P&gt;I have installed IntelSWTools 2017.4:&lt;BR /&gt;
	c:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows&lt;/P&gt;

&lt;P&gt;My application uses TBB:&lt;BR /&gt;
	Release(/MD): tbb\lib\intel64\vc12\tbb.lib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; redist\intel64\tbb\vc12\tbb.dll&lt;BR /&gt;
	Debug(/MDd):&amp;nbsp; tbb\lib\intel64\vc12\tbb_debug.lib -&amp;gt; redist\intel64\tbb\vc12\tbb_debug.dll&lt;/P&gt;

&lt;P&gt;How to add MKL with TBB threading (so that there would be only one TBB instance) to application that uses TBB?&lt;/P&gt;

&lt;P&gt;The problem is that mkl_tbb_thread_dll.dll (as I understand) linked with:&lt;BR /&gt;
	tbb\lib\intel64\vc_mt\tbb.lib -&amp;gt; redist\intel64\tbb\vc_mt\tbb.dll&lt;BR /&gt;
	which is different from what my application uses.&lt;/P&gt;

&lt;P&gt;Is redist\intel64\tbb\vc_mt\tbb.dll for mkl_tbb_thread_dll.dll can be changed to redist\intel64\tbb\vc12\tbb.dll ?&lt;BR /&gt;
	If yes how to be with Debug build (somehow rename redist\intel64\tbb\vc12\tbb_debug.dll to tbb.dll)?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 14:49:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-add-MKL-with-TBB-threading-to-application-that-uses-TBB/m-p/1168252#M28364</guid>
      <dc:creator>ronhartley</dc:creator>
      <dc:date>2017-08-17T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-add-MKL-with-TBB-threading-to-application-that-uses-TBB/m-p/1168253#M28365</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;It seems&amp;nbsp;there were discussion about the issue.&amp;nbsp;As i recalled,&amp;nbsp; you should be able to link the wanted tbb library with mkl_tbb_thread.lib .&lt;/P&gt;

&lt;P&gt;vc_mt folder contains dlls which are statically linked to VC runtime.&amp;nbsp; If you want to use the other tbb&amp;nbsp;tied with MSVS version and runtime library.,&amp;nbsp;please try ,&lt;/P&gt;

&lt;P&gt;if with Release(/MD)&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;Under Configuration Properties &amp;gt; linker &amp;nbsp;&amp;gt; General Additional Directory. add the&amp;nbsp;wanted&amp;nbsp;tbb path&amp;nbsp;&amp;nbsp;: &amp;nbsp; tbb\lib\intel64\vc12&lt;/LI&gt;
	&lt;LI&gt;add redist\intel64\tbb\vc12\ in your system environment variable PATH.&lt;/LI&gt;
	&lt;LI&gt;reopen your MSVS and recompiled your exe.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Here i assume you are link MKL manually.&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are link MKL Automatically. (please switch it ) and follow the instruction in manually parts.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc/"&gt;https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and please let us know if any issues.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 06:41:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-add-MKL-with-TBB-threading-to-application-that-uses-TBB/m-p/1168253#M28365</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-08-21T06:41:01Z</dc:date>
    </item>
    <item>
      <title>Thanks for help,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-add-MKL-with-TBB-threading-to-application-that-uses-TBB/m-p/1168254#M28366</link>
      <description>&lt;P&gt;Thanks for help,&lt;BR /&gt;
	link with mkl_tbb_thread.lib (instead of mkl_tbb_thread_dll.lib) solves my issue.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:27:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-add-MKL-with-TBB-threading-to-application-that-uses-TBB/m-p/1168254#M28366</guid>
      <dc:creator>ronhartley</dc:creator>
      <dc:date>2017-08-21T16:27:57Z</dc:date>
    </item>
  </channel>
</rss>

