<?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 Tim, in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172142#M8018</link>
    <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;thank you for the response. After some extra&amp;nbsp;research I found one additional requirement which I was not aware of. I was mixing ifort with unsupported version of GCC (ifort 18.0 supports GCC up to version 6). Our code does not compile with GCC 6 so I tested with ifort 19.0 and GCC 8. To my big surprise everything works as expected.&lt;/P&gt;&lt;P&gt;Just to summarize: it is possible to mix Fortran code with OpenMP directives complied with ifort 19.0 and C/C++ code with OpenMP directives compiled with GCC 8 and&amp;nbsp;link against iomp5 without any issues.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Goran&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 15:44:22 GMT</pubDate>
    <dc:creator>Zauhar__Goran</dc:creator>
    <dc:date>2020-02-13T15:44:22Z</dc:date>
    <item>
      <title>Mixing ifort, GCC and iomp5</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172140#M8016</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a question about mixing Fortran/OpenMP application with C++/OpenMP library. For simplicity let us assume we are working on Linux with GCC and ifort (in reality we are also working&amp;nbsp;on Windows/MSVC and macOS/clang). Mixing Fortran and C++ is not a problem. The problem is how to compile Fortran files&amp;nbsp;with ifort, C++ files with GCC and link everything against one OpenMP implementation (ideally Intel's OpenMP implementation).&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/cpp-compiler-developer-guide-and-reference-using-the-openmp-libraries"&gt;Using the OpenMP* Libraries&lt;/A&gt;&amp;nbsp;suggests it possible and easy, but my experience and&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/25986091/telling-gcc-to-not-link-libgomp-so-it-links-libiomp5-instead"&gt;this stackoverflow question&lt;/A&gt;&amp;nbsp;disagrees. The issue is that GCC transforms OpenMP command to GCC's function calls (e.g. GOMP_loop_nonmonotonic_dynamic_start) which are obviously not implemented in iomp5.&lt;/P&gt;&lt;P&gt;Is there any other way of mixing ifort/OpenMP, GCC/OpenMP and iomp5 other than using Intel's C++ compiler? With ifort, icpc and iomp5 everything works as expected but I am looking for alternative.&lt;/P&gt;&lt;P&gt;We are using ifort 18.0 and GCC 8.&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;BR /&gt;Goran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 14:46:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172140#M8016</guid>
      <dc:creator>Zauhar__Goran</dc:creator>
      <dc:date>2020-01-15T14:46:39Z</dc:date>
    </item>
    <item>
      <title>Libiomp5 accepts both libgomp</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172141#M8017</link>
      <description>&lt;P&gt;Libiomp5 accepts both libgomp and libiomp5 function calls. Either Intel C÷÷ or g÷÷ are supported together with ifort with both languages having full access to OpenMP.&amp;nbsp; By linking explicitly to libiomp5 (or by using the Intel compiler to drive the linking), you satisfy all the dependencies on libgomp and avoid linking the latter.&amp;nbsp; You must not link more than 1 copy of OpenMP library.&lt;/P&gt;&lt;P&gt;Similarly in Windows libiomp supports OpenMP in Microsoft C++ but with the limitation of OpenMP 2.0.&amp;nbsp; Performance of libiomp5 should be better than vcomp. Again you must take care to link only one OpenMP library, likely with use of nodefaultlib to exclude vcomp.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 13:48:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172141#M8017</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2020-02-02T13:48:51Z</dc:date>
    </item>
    <item>
      <title>Hi Tim,</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172142#M8018</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;thank you for the response. After some extra&amp;nbsp;research I found one additional requirement which I was not aware of. I was mixing ifort with unsupported version of GCC (ifort 18.0 supports GCC up to version 6). Our code does not compile with GCC 6 so I tested with ifort 19.0 and GCC 8. To my big surprise everything works as expected.&lt;/P&gt;&lt;P&gt;Just to summarize: it is possible to mix Fortran code with OpenMP directives complied with ifort 19.0 and C/C++ code with OpenMP directives compiled with GCC 8 and&amp;nbsp;link against iomp5 without any issues.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Goran&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 15:44:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172142#M8018</guid>
      <dc:creator>Zauhar__Goran</dc:creator>
      <dc:date>2020-02-13T15:44:22Z</dc:date>
    </item>
    <item>
      <title>It's possible when a major</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172143#M8019</link>
      <description>&lt;P&gt;It's possible when a major version of gcc involves an ABI change that libiomp5 might not support it until a linux distro including that gcc is supported.&amp;nbsp; This doesn't happen often, and it's not easy to infer from release notes exactly where that stands.&amp;nbsp; Release notes (if they are even up to date) reflect which compatibilities undergo the full rounds of testing, rather than&amp;nbsp;what the actual limits might be.&amp;nbsp; OpenMP interfaces don't have much C++ as opposed to C and Fortran in them, so an ABI change in g++ alone may not be a problem.&amp;nbsp; It's hard to believe that gcc 6 could be the limit of current working versions, even if that is what comes with RedHat.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 12:37:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Mixing-ifort-GCC-and-iomp5/m-p/1172143#M8019</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2020-02-15T12:37:06Z</dc:date>
    </item>
  </channel>
</rss>

