<?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: Using OpenMP and MKL with Visual Studio 2005/8 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853731#M6735</link>
    <description>&lt;P&gt;The linkage with libiomp5 and VD9 is the same as you would use with MKL with no OpenMP in the VC code. It should work in accordance with MKL docs. If you have an example with libguide, replace that with libiomp5. In case it's of any use, here's my log from a 32-bit Microsoft link, where both VC9 and Intel OpenMP compilations are in use.&lt;/P&gt;
&lt;P&gt;Microsoft  Incremental Linker Version 9.00.30428.01&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;-out:mains.exe&lt;BR /&gt;-subsystem:console&lt;BR /&gt;-nodefaultlib:libiompprof5mt.lib&lt;BR /&gt;-nodefaultlib:libiompprof5md.lib&lt;BR /&gt;-defaultlib:libiomp5mt.lib&lt;BR /&gt;mains.obj&lt;BR /&gt;loopstlm.obj&lt;BR /&gt;f90_msrdtsc.obj&lt;/P&gt;
&lt;P&gt;If there was /openmp in VC8, I wasn't aware of it, and it may not be supported by libiomp5.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2008 23:47:30 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2008-07-21T23:47:30Z</dc:date>
    <item>
      <title>Using OpenMP and MKL with Visual Studio 2005/8</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853728#M6732</link>
      <description>&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt;We are integrating both OpenMP and the Intel Math Kernel library into our product, a library of mathematical, scientific, and statistical algorithms written in C. We are using Microsoft Visual Studio 2005/8 as our development platforms. Attempts to enable multi-threading in OpenMP and the MKL simultaneously have led to crashes. &lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;P&gt;&lt;FONT face="Lucida Sans Unicode" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt;We note that Visual Studio and MKL use different threading libraries, and that information out on the Web suggests this to be the cause of the crashes. We also note that recent answers to questions on this Intel forum suggest there is no way to remedy the situation unless either (1) MKL is forced to run serially when OpenMP is running (using MKL_SEQUENTIAL) or (2) Visual Studio is abandoned as a development platform in favor of Intel compilers. The posts (and Intel manuals) all indicate that if an application using Intel MKL and OpenMP is built on Intel compilers , the Intel compilers will ensure the application code gracefully handles the thread demands of both. &lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;P&gt;&lt;FONT face="Lucida Sans Unicode" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt;However, additional reading on the Web did indicate the existence of a new library (libiomp5mt.lib) which  rumor has it &lt;IMG src="https://community.intel.com/isn/Community/en-US/emoticons/emotion-1.gif" alt="smiley [:-)]" /&gt; - will allow us to have our cake and eat it too; that is, use Visual Studio, OpenMP and MKL, e.g. post &lt;SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="https://community.intel.com/en-us/forums//topic/59392#59326"&gt;&lt;FONT face="Lucida Sans Unicode" color="#800080" size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=59392#60984" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=59392#60984&lt;/A&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt; At least, that is our understanding of this post. &lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;P&gt;&lt;FONT face="Lucida Sans Unicode" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt;We have three questions:&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI class="MsoNormal"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt;Can libiomp5mt.lib be used to build applications, using Visual Studio, that allow simultaneous multi-threading for both OpenMP and the MKL, allowing e.g. a call to MKL within an OpenMP pragma?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="MsoNormal"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt;Does libiomp5mt.lib replace libguide40.lib, or does it work in conjunction with it? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="MsoNormal"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;&lt;FONT face="Lucida Sans Unicode"&gt;Assuming libiomp5mt.lib is what we think it is, how does one incorporate it into a Visual Studio project? We have been wholly unsuccessful in that regard. &lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 20 Jul 2008 06:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853728#M6732</guid>
      <dc:creator>alvaroafernandez</dc:creator>
      <dc:date>2008-07-20T06:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP and MKL with Visual Studio 2005/8</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853729#M6733</link>
      <description>&lt;UL&gt;&lt;LI&gt;Visual Studio 2005 has no OpenMP of its own. As the documents for the current Intel compilers tell you, the Intel libiomp5 libraries (also included with current MKL) are compatible with VC9 -openmp. The products which provide both libguide and libiomp5 work interchangeably with either of them (not both at the same time), when you don't use VC9 -openmp. &lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;I don't know what you mean about abandoning Visual Studio (unless you mean switching to linux). Intel compilers and MKL for Windows don't work without Microsoft components; if not Visual Studio, the PPE which comes with ifort.&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;If you are using MKL with VC9, you specify the libiomp library instead of the libguide in your library dependencies. Libiomp satisfies all of the openmp library references made by VC9 or MKL. &lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 20 Jul 2008 13:00:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853729#M6733</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-07-20T13:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP and MKL with Visual Studio 2005/8</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853730#M6734</link>
      <description>&lt;P&gt;1. I'm surprised that Visual Studio 2005 has no OpenMP of its own, since we have developers in house who are throwing the /openmp switch and using Visual Studio 2005 with no issues. Do you mean Visual Studio 2005 OpenMP is an Intel product...? &lt;/P&gt;
&lt;P&gt;2. It's unclear to me how to use libiomp in this context, which is the crux of my post. Do I add it to the solution? I haven't been able to find an export library for libguide40 or libiomp*. &lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2008 22:21:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853730#M6734</guid>
      <dc:creator>alvaroafernandez</dc:creator>
      <dc:date>2008-07-21T22:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP and MKL with Visual Studio 2005/8</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853731#M6735</link>
      <description>&lt;P&gt;The linkage with libiomp5 and VD9 is the same as you would use with MKL with no OpenMP in the VC code. It should work in accordance with MKL docs. If you have an example with libguide, replace that with libiomp5. In case it's of any use, here's my log from a 32-bit Microsoft link, where both VC9 and Intel OpenMP compilations are in use.&lt;/P&gt;
&lt;P&gt;Microsoft  Incremental Linker Version 9.00.30428.01&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;-out:mains.exe&lt;BR /&gt;-subsystem:console&lt;BR /&gt;-nodefaultlib:libiompprof5mt.lib&lt;BR /&gt;-nodefaultlib:libiompprof5md.lib&lt;BR /&gt;-defaultlib:libiomp5mt.lib&lt;BR /&gt;mains.obj&lt;BR /&gt;loopstlm.obj&lt;BR /&gt;f90_msrdtsc.obj&lt;/P&gt;
&lt;P&gt;If there was /openmp in VC8, I wasn't aware of it, and it may not be supported by libiomp5.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2008 23:47:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-OpenMP-and-MKL-with-Visual-Studio-2005-8/m-p/853731#M6735</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-07-21T23:47:30Z</dc:date>
    </item>
  </channel>
</rss>

