<?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 Nathan, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Application-in-Debug-MTd-with-MKL/m-p/1067509#M21998</link>
    <description>&lt;P&gt;Hi Nathan,&lt;/P&gt;

&lt;P&gt;I used MKL2017 &amp;amp; ICC 2017 integrated in the VS2015. But I could not reproduce your problem even I changed runtime lib to MTd. I just wonder how you link and compile your MKL lib, did you also used other Intel library except MKL? Did you link libs manually or automatically?&lt;/P&gt;

&lt;P&gt;For your problem, I searched that some one has similar problem but not using Intel MKL. It probably problem of VS. Normally, 2 is for debug &amp;amp; 0 for release. But&amp;nbsp;for some version of VS,&amp;nbsp;The default value of&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/hh697468(v=vs.120).aspx"&gt;_ITERATOR_DEBUG_LEVEL&lt;/A&gt; might be different, depending on configuration. Did you also change the configuration to "Debug" when you set to use multi-thread debug runtime library? There's a method that you could set &amp;nbsp;_ITERATOR_DEBUG_LEVEL=2 in&amp;nbsp;Configuration Properties / C,C++ / Preprocessor / Preprocessor Definitions. Please have a try with it.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2016 07:50:46 GMT</pubDate>
    <dc:creator>Zhen_Z_Intel</dc:creator>
    <dc:date>2016-10-28T07:50:46Z</dc:date>
    <item>
      <title>Compiling Application in Debug (/MTd) with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Application-in-Debug-MTd-with-MKL/m-p/1067508#M21997</link>
      <description>&lt;P&gt;I am using MS Studio 2015 and incorporating the MKL (2017)&amp;nbsp;library.&amp;nbsp; Everything compile fine when code generation is in release mode:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;EM&gt; Configuration Properties&amp;gt;C/C++&amp;gt;Code Generation&amp;gt;Runtime Library = /MT&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;However, it seems impossible to correctly build and link a debug version of the application.&amp;nbsp; Where the runtime is set to debug&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;EM&gt; Configuration Properties&amp;gt;C/C++&amp;gt;Code Generation&amp;gt;Runtime Library = /MTd&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;This results in link errors related to debug symbols:&lt;/P&gt;

&lt;P&gt;error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in ...&lt;BR /&gt;
	error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in ...&lt;/P&gt;

&lt;P&gt;Other libraries (such as the TBB library) supply _debug versions of the library just for this reason. For example, the TBB has these libraries:tbb.lib and tbb_debug.lib.&lt;/P&gt;

&lt;P&gt;I don't find and _debug versions of the MKL libraries.&amp;nbsp; Are they available or is there some other way to properly link an application in debug mode with the MKL.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 14:13:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Application-in-Debug-MTd-with-MKL/m-p/1067508#M21997</guid>
      <dc:creator>Nathan_K_6</dc:creator>
      <dc:date>2016-10-27T14:13:09Z</dc:date>
    </item>
    <item>
      <title>Hi Nathan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Application-in-Debug-MTd-with-MKL/m-p/1067509#M21998</link>
      <description>&lt;P&gt;Hi Nathan,&lt;/P&gt;

&lt;P&gt;I used MKL2017 &amp;amp; ICC 2017 integrated in the VS2015. But I could not reproduce your problem even I changed runtime lib to MTd. I just wonder how you link and compile your MKL lib, did you also used other Intel library except MKL? Did you link libs manually or automatically?&lt;/P&gt;

&lt;P&gt;For your problem, I searched that some one has similar problem but not using Intel MKL. It probably problem of VS. Normally, 2 is for debug &amp;amp; 0 for release. But&amp;nbsp;for some version of VS,&amp;nbsp;The default value of&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/hh697468(v=vs.120).aspx"&gt;_ITERATOR_DEBUG_LEVEL&lt;/A&gt; might be different, depending on configuration. Did you also change the configuration to "Debug" when you set to use multi-thread debug runtime library? There's a method that you could set &amp;nbsp;_ITERATOR_DEBUG_LEVEL=2 in&amp;nbsp;Configuration Properties / C,C++ / Preprocessor / Preprocessor Definitions. Please have a try with it.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 07:50:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Application-in-Debug-MTd-with-MKL/m-p/1067509#M21998</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2016-10-28T07:50:46Z</dc:date>
    </item>
    <item>
      <title>Thanks for the feedback...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Application-in-Debug-MTd-with-MKL/m-p/1067510#M21999</link>
      <description>&lt;P&gt;Thanks for the feedback...&lt;/P&gt;

&lt;P&gt;Based on what you said I created a new basically empty solution and found that you are quite right.&amp;nbsp; The MKL compile and links with the application in both release and debug modes.&lt;/P&gt;

&lt;P&gt;So I went back to the main application and I removed libraries one at a time to find what was conflicting with MKL in the debug link.&amp;nbsp;&amp;nbsp; It turns out in my case it was the MS Parallel Patterns Library.&amp;nbsp; Since I have access to TBB as I switch to this library and the link errors were resolved.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 17:47:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Application-in-Debug-MTd-with-MKL/m-p/1067510#M21999</guid>
      <dc:creator>Nathan_K_6</dc:creator>
      <dc:date>2016-10-28T17:47:40Z</dc:date>
    </item>
  </channel>
</rss>

