<?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: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870463#M8416</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/443339"&gt;nevineh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Attached is VS project to reproduce the problem. The Debug/Release configurations are for the problem dll case and the Static Debug/Static Release Configurations are for the working static linking case. Change the constant NUM_ELEMENTS defined in MKLTestApp.cpp to change the vector size.Setting the value to3389 or larger, will produce bad results in the dll case.&lt;BR /&gt;Thanks.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Some more info...&lt;BR /&gt;&lt;BR /&gt;The problem happens when openMP support is turned on in the project. My guess is there is some conflict between openMP libraries in Visual Studio 2008and the ones used in MKL. &lt;BR /&gt;&lt;BR /&gt;Also, if I pass the same pointer for the input andoutput (i.e, VdSqrt(n, a, a)) , I get incorrect output for large vectors. Is this a new restrictionin MKL 10.2? It used to work for earlier versions.&lt;BR /&gt;&lt;BR /&gt;Nevine</description>
    <pubDate>Fri, 18 Sep 2009 14:08:14 GMT</pubDate>
    <dc:creator>NevineH</dc:creator>
    <dc:date>2009-09-18T14:08:14Z</dc:date>
    <item>
      <title>VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL version 10.2</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870460#M8413</link>
      <description>I have aa dlllibrary (myLibrary.dll) that links to the MKL libraries (libiomp5md.lib mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_cdft_core_dll.lib mkl_core_dll.lib). I am calling the vdSqrt() functions.We have been using MKL version 10.0.4.023 and everything worked fine.WhenIupgraded to MKL version 10.2.1.019,these functions are generating incorrect results for large vectors (larger than 4000 elements). When I changed my mylibrary.dll to a static library, vdSqrt() works fine for large vectors. I am using Visual Studio 2008.&lt;BR /&gt;&lt;BR /&gt;There was an earlier thread on this forum, with a similar problem relating to an earlier version of MKL. The thread indicated that this was a bug fixed in later versions of MKL!&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.</description>
      <pubDate>Wed, 16 Sep 2009 18:57:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870460#M8413</guid>
      <dc:creator>NevineH</dc:creator>
      <dc:date>2009-09-16T18:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870461#M8414</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/443339"&gt;nevineh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I have aa dlllibrary (myLibrary.dll) that links to the MKL libraries (libiomp5md.lib mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_cdft_core_dll.lib mkl_core_dll.lib). I am calling the vdSqrt() functions.We have been using MKL version 10.0.4.023 and everything worked fine.WhenIupgraded to MKL version 10.2.1.019,these functions are generating incorrect results for large vectors (larger than 4000 elements). When I changed my mylibrary.dll to a static library, vdSqrt() works fine for large vectors. I am using Visual Studio 2008.&lt;BR /&gt;&lt;BR /&gt;There was an earlier thread on this forum, with a similar problem relating to an earlier version of MKL. The thread indicated that this was a bug fixed in later versions of MKL!&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Holtz,&lt;BR /&gt;thanks for letting us know. Can you get the test case?&lt;BR /&gt;--Gennady&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Sep 2009 05:35:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870461#M8414</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-09-17T05:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870462#M8415</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/443339"&gt;nevineh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I have aa dlllibrary (myLibrary.dll) that links to the MKL libraries (libiomp5md.lib mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_cdft_core_dll.lib mkl_core_dll.lib). I am calling the vdSqrt() functions.We have been using MKL version 10.0.4.023 and everything worked fine.WhenIupgraded to MKL version 10.2.1.019,these functions are generating incorrect results for large vectors (larger than 4000 elements). When I changed my mylibrary.dll to a static library, vdSqrt() works fine for large vectors. I am using Visual Studio 2008.&lt;BR /&gt;&lt;BR /&gt;There was an earlier thread on this forum, with a similar problem relating to an earlier version of MKL. The thread indicated that this was a bug fixed in later versions of MKL!&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Attached is VS project to reproduce the problem. The Debug/Release configurations are for the problem dll case and the Static Debug/Static Release Configurations are for the working static linking case. Change the constant NUM_ELEMENTS defined in MKLTestApp.cpp to change the vector size.Setting the value to3389 or larger, will produce bad results in the dll case.&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 17 Sep 2009 16:17:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870462#M8415</guid>
      <dc:creator>NevineH</dc:creator>
      <dc:date>2009-09-17T16:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870463#M8416</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/443339"&gt;nevineh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Attached is VS project to reproduce the problem. The Debug/Release configurations are for the problem dll case and the Static Debug/Static Release Configurations are for the working static linking case. Change the constant NUM_ELEMENTS defined in MKLTestApp.cpp to change the vector size.Setting the value to3389 or larger, will produce bad results in the dll case.&lt;BR /&gt;Thanks.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Some more info...&lt;BR /&gt;&lt;BR /&gt;The problem happens when openMP support is turned on in the project. My guess is there is some conflict between openMP libraries in Visual Studio 2008and the ones used in MKL. &lt;BR /&gt;&lt;BR /&gt;Also, if I pass the same pointer for the input andoutput (i.e, VdSqrt(n, a, a)) , I get incorrect output for large vectors. Is this a new restrictionin MKL 10.2? It used to work for earlier versions.&lt;BR /&gt;&lt;BR /&gt;Nevine</description>
      <pubDate>Fri, 18 Sep 2009 14:08:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870463#M8416</guid>
      <dc:creator>NevineH</dc:creator>
      <dc:date>2009-09-18T14:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870464#M8417</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/443339"&gt;nevineh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt; The problem happens when openMP support is turned on in the project. My guess is there is some conflict between openMP libraries in Visual Studio 2008and the ones used in MKL. &lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
You must assure that only a single copy of the Intel libiomp "compatibility" OpenMP library is linked, not the Microsoft vcomp library. libiomp will take care of any MSVC openmp parallelism consistently with MKL.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Sep 2009 16:26:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870464#M8417</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-09-18T16:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870465#M8418</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
You must assure that only a single copy of the Intel libiomp "compatibility" OpenMP library is linked, not the Microsoft vcomp library. libiomp will take care of any MSVC openmp parallelism consistently with MKL.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;How can I configure my projectto use the the MKL libiomp libraries instead of Microsoft's?&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Sep 2009 17:34:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870465#M8418</guid>
      <dc:creator>NevineH</dc:creator>
      <dc:date>2009-09-18T17:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870466#M8419</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/443339"&gt;nevineh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;How can I configure my projectto use the the MKL libiomp libraries instead of Microsoft's?&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I believe you would put the libiomp which you want (dll version safest) in the additional library dependencies. If you don't have an Intel compiler, you would specify the one from you MKL library installation. If the link still tries to use the Microsoft vcomp, perhaps a nodefaultlib might be needed in additional command line options.&lt;BR /&gt;The link advisor on the forum page would indicate how the command line version of linking should go (possibly the static version).&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Sep 2009 23:15:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870466#M8419</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-09-18T23:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870467#M8420</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/443339"&gt;nevineh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;Some more info...&lt;BR /&gt;&lt;BR /&gt;The problem happens when openMP support is turned on in the project. My guess is there is some conflict between openMP libraries in Visual Studio 2008and the ones used in MKL. &lt;BR /&gt;&lt;BR /&gt;Also, if I pass the same pointer for the input andoutput (i.e, VdSqrt(n, a, a)) , &lt;STRONG&gt;I get incorrect output for large vectors. Is this a new restrictionin MKL 10.2&lt;/STRONG&gt;? It used to work for earlier versions.&lt;BR /&gt;&lt;BR /&gt;Nevine&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Nevine,&lt;BR /&gt;Thanks for test case. No, this is an unknown problem for 10.2 and there are no restriction for this functionality.&lt;BR /&gt;I didn't build and run your application yet, however the linking line you are using:&lt;/P&gt;
&lt;P&gt;AdditionalDependencies="libiomp5md.lib mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib"&lt;/P&gt;
&lt;P&gt;Is looks correct to me.&lt;BR /&gt;We need to check the problem on our side.&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2009 04:23:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870467#M8420</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-09-20T04:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870468#M8421</link>
      <description>&lt;DIV style="margin:0px;"&gt;Nevine,&lt;BR /&gt;i used the test you proveided and I couldn't reproduce the result.&lt;BR /&gt;&lt;BR /&gt;the output I got:&lt;BR /&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;Success!&lt;/STRONG&gt;&lt;BR /&gt;Press any key to continue . . .&lt;/P&gt;
&lt;P&gt;#define NUM_ELEMENTS &lt;STRONG&gt;33890&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;some more details aboutthe environment I tested:&lt;BR /&gt;CPU -- Intel Core2 Quad CPU @ 2.66GHz&lt;BR /&gt;MKL version -- Package ID: w_mkl_p_10.2.1.019&lt;BR /&gt;win32&lt;BR /&gt;VS2008&lt;BR /&gt;&lt;BR /&gt;What is the CPU type you are working on?&lt;BR /&gt;&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:32:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870468#M8421</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-09-21T08:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870469#M8422</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Nevine,&lt;BR /&gt;i used the test you proveided and I couldn't reproduce the result.&lt;BR /&gt;&lt;BR /&gt;the output I got:&lt;BR /&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;Success!&lt;/STRONG&gt;&lt;BR /&gt;Press any key to continue . . .&lt;/P&gt;
&lt;P&gt;#define NUM_ELEMENTS &lt;STRONG&gt;33890&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;some more details aboutthe environment I tested:&lt;BR /&gt;CPU -- Intel Core2 Quad CPU @ 2.66GHz&lt;BR /&gt;MKL version -- Package ID: w_mkl_p_10.2.1.019&lt;BR /&gt;win32&lt;BR /&gt;VS2008&lt;BR /&gt;&lt;BR /&gt;What is the CPU type you are working on?&lt;BR /&gt;&lt;BR /&gt;--Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Gennady,&lt;BR /&gt;&lt;BR /&gt;My enviroment is:&lt;BR /&gt;CPU: Intel Core2 Quad CPU Q6600 @2.40GHz&lt;BR /&gt;win32&lt;BR /&gt;VS2008&lt;BR /&gt;MKL 10.2.1.019&lt;BR /&gt;&lt;BR /&gt;Nevine&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Sep 2009 15:19:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870469#M8422</guid>
      <dc:creator>NevineH</dc:creator>
      <dc:date>2009-09-21T15:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870470#M8423</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I believe you would put the libiomp which you want (dll version safest) in the additional library dependencies. If you don't have an Intel compiler, you would specify the one from you MKL library installation. If the link still tries to use the Microsoft vcomp, perhaps a nodefaultlib might be needed in additional command line options.&lt;BR /&gt;The link advisor on the forum page would indicate how the command line version of linking should go (possibly the static version).&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Tim,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. I was successful in configuring the project and run it with the MKL libiomp5md instead of the Microsoft vcomp90 libraries only if I do not link to any other mkl libraries. When I link with the mkl libraries (mkl_intel_thread_dll.lib mkl_intel_c_dll.lib mkl_core_dll.lib), it tries tolink tothe Microsoft vcomp90 library. &lt;BR /&gt;&lt;BR /&gt;I have added compiler option /D_OPENMP_NOFORCE_MANIFEST and used /nodefaultlib:vcomp90 as recommended in this article &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/how-to-use-intelr-compiler-openmp-compatibility-libraries-on-windows/" target="_blank"&gt;http://software.intel.com/en-us/articles/how-to-use-intelr-compiler-openmp-compatibility-libraries-on-windows/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I can't get it to work with the MKL libraries.&lt;BR /&gt;&lt;BR /&gt;Nevine</description>
      <pubDate>Mon, 21 Sep 2009 20:25:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870470#M8423</guid>
      <dc:creator>NevineH</dc:creator>
      <dc:date>2009-09-21T20:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870471#M8424</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
I've never tried -DOPENMP_NOFORCE_MANIFEST. Here's one of my screen echos when linking a release build, with debug symbols, with Microsoft /openmp built .obj with libiomp (note that any of these options which you specify are preceded by /link if you use a command line compiler to drive the link, as I do):&lt;BR /&gt;Microsoft  Incremental Linker Version 9.00.30729.01&lt;BR /&gt;Copyright (C) Microsoft Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;-out:mains.exe&lt;BR /&gt;-debug&lt;BR /&gt;-pdb:mains.pdb&lt;BR /&gt;-subsystem:console&lt;BR /&gt;-nodefaultlib:libiompprof5mt.lib&lt;BR /&gt;-nodefaultlib:libiompprof5md.lib&lt;BR /&gt;-defaultlib:libiomp5md.lib&lt;BR /&gt;-nodefaultlib:vcomp.lib&lt;BR /&gt;-nodefaultlib:vcompd.lib&lt;BR /&gt;mains.obj&lt;BR /&gt;...&lt;BR /&gt;so it appears that nodefaultlib requires vcomp.lib and vcompd.lib to be spelled out. In fact, there is no vcomp90 in my installation of VC9, so the spellings I quote are correct.&lt;BR /&gt;&lt;BR /&gt;In case it's of interest, if you link with libiompprof5md, (as is recommended for thread profiler), but run normally without thread profiler, a file name guide.gvs is written each time you run, which contains statistics on OpenMP performance. All parallel regions in MSVC compiled code are lumped together, but the MKL parallel regions should be summarized separately.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Sep 2009 21:34:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870471#M8424</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-09-21T21:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: VML vsSqrt/vdSqrt Bad Results with dynamic linking with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870472#M8425</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I've never tried -DOPENMP_NOFORCE_MANIFEST. Here's one of my screen echos when linking a release build, with debug symbols, with Microsoft /openmp built .obj with libiomp (note that any of these options which you specify are preceded by /link if you use a command line compiler to drive the link, as I do):&lt;BR /&gt;Microsoft  Incremental Linker Version 9.00.30729.01&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;-out:mains.exe&lt;BR /&gt;-debug&lt;BR /&gt;-pdb:mains.pdb&lt;BR /&gt;-subsystem:console&lt;BR /&gt;-nodefaultlib:libiompprof5mt.lib&lt;BR /&gt;-nodefaultlib:libiompprof5md.lib&lt;BR /&gt;-defaultlib:libiomp5md.lib&lt;BR /&gt;-nodefaultlib:vcomp.lib&lt;BR /&gt;-nodefaultlib:vcompd.lib&lt;BR /&gt;mains.obj&lt;BR /&gt;...&lt;BR /&gt;so it appears that nodefaultlib requires vcomp.lib and vcompd.lib to be spelled out. In fact, there is no vcomp90 in my installation of VC9, so the spellings I quote are correct.&lt;BR /&gt;&lt;BR /&gt;In case it's of interest, if you link with libiompprof5md, (as is recommended for thread profiler), but run normally without thread profiler, a file name guide.gvs is written each time you run, which contains statistics on OpenMP performance. All parallel regions in MSVC compiled code are lumped together, but the MKL parallel regions should be summarized separately.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Tim,&lt;BR /&gt;&lt;BR /&gt;I was finally able to get it to work by adding /NODEFAULTLIB:"vcomp.lib" /NODEFAULTLIB:"vcompd.lib".&lt;BR /&gt;&lt;BR /&gt;The vcomp90 is actually the dll name but the stub libraries are vcomp.lib and vcompd.lib.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;Nevine&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Sep 2009 14:51:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870472#M8425</guid>
      <dc:creator>NevineH</dc:creator>
      <dc:date>2009-09-22T14:51:45Z</dc:date>
    </item>
    <item>
      <title>I just started using vsSqrt</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870473#M8426</link>
      <description>&lt;P&gt;I just started using vsSqrt and am noticing the same behaviors.&amp;nbsp; vsSqrt seems to be wrong in a similar manner as described in this post.&amp;nbsp; I am using the MKL v11 and Composer 13 with Visual Studio 2010.&amp;nbsp; Any explicit instruction on how to get the right version of OpenMP in place would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 20:25:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870473#M8426</guid>
      <dc:creator>Kirk_D_</dc:creator>
      <dc:date>2013-07-31T20:25:06Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;... Any explicit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870474#M8427</link>
      <description>&amp;gt;&amp;gt;... Any explicit instruction on how to get the right version of OpenMP in place would be greatly appreciated...

Please take a look at &lt;STRONG&gt;Intel Software Registration Center&lt;/STRONG&gt; and all Redistributable Packages could be downloaded.</description>
      <pubDate>Sun, 04 Aug 2013 00:01:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VML-vsSqrt-vdSqrt-Bad-Results-with-dynamic-linking-with-MKL/m-p/870474#M8427</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-08-04T00:01:19Z</dc:date>
    </item>
  </channel>
</rss>

