<?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 Now only OpenMP_CXX_LIB_NAMES in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161806#M229</link>
    <description>&lt;P&gt;Now only&amp;nbsp;OpenMP_CXX_LIB_NAMES is missing:&lt;/P&gt;&lt;P&gt;CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):&lt;BR /&gt;&amp;nbsp; Could NOT find OpenMP_CXX (missing: OpenMP_CXX_LIB_NAMES)&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 10:34:45 GMT</pubDate>
    <dc:creator>Dmitry_Savin</dc:creator>
    <dc:date>2019-12-23T10:34:45Z</dc:date>
    <item>
      <title>Cmake OpenMP not found with dpcpp.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161803#M226</link>
      <description>&lt;P&gt;I'm porting an OpenMP-based program to the OneAPI. To make an incremental transition I try to compile the existing program with dpcpp. The minimal CMakeLists.txt reproducing the problem in the DevCloud is attached. With the default compiler it works fine. However, if invoked with -DCMAKE_CXX_COMPILER=`which dpcpp`, it fails at the cmake configuration step with an error: &amp;gt; CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): &amp;gt; Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 05:18:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161803#M226</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-22T05:18:07Z</dc:date>
    </item>
    <item>
      <title>Hi Dmitry,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161804#M227</link>
      <description>&lt;P&gt;Hi Dmitry,&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;We are working on it&amp;nbsp;and will get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 06:09:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161804#M227</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2019-12-23T06:09:10Z</dc:date>
    </item>
    <item>
      <title>Hi Dmitry,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161805#M228</link>
      <description>&lt;P&gt;Hi Dmitry,&lt;/P&gt;&lt;P&gt;Can you please try compiling your code after setting&amp;nbsp;OpenMP_CXX_FLAGS&amp;nbsp; to -qopenmp&lt;/P&gt;&lt;P&gt;Please let us know if you are facing any issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 10:25:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161805#M228</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2019-12-23T10:25:44Z</dc:date>
    </item>
    <item>
      <title>Now only OpenMP_CXX_LIB_NAMES</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161806#M229</link>
      <description>&lt;P&gt;Now only&amp;nbsp;OpenMP_CXX_LIB_NAMES is missing:&lt;/P&gt;&lt;P&gt;CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):&lt;BR /&gt;&amp;nbsp; Could NOT find OpenMP_CXX (missing: OpenMP_CXX_LIB_NAMES)&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 10:34:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161806#M229</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-23T10:34:45Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161807#M230</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please try setting the OpenMP lib path in your CMake file.&lt;/P&gt;&lt;P&gt;For your reference:&amp;nbsp;&lt;/P&gt;&lt;P&gt;set(OpenMP_CXX_LIB_NAMES "libiomp5" "libomp" "libgomp")&lt;/P&gt;&lt;P&gt;Please let us know if this resolves your issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 12:35:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161807#M230</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2019-12-23T12:35:32Z</dc:date>
    </item>
    <item>
      <title>Hi Goutham,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161808#M231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Goutham,&lt;/P&gt;&lt;P&gt;It does not. Now it fails with:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;Could NOT find OpenMP_CXX (missing: OpenMP_libiomp5_LIBRARY OpenMP_libomp_LIBRARY OpenMP_libgomp_LIBRARY)&lt;/P&gt;&lt;P&gt;Also manually modifying the source of each project using OpenMP does not seem scalable.&lt;/P&gt;&lt;P&gt;cmake merge request 3916 might be related to this issue, I'll try the latest version and get back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:15:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161808#M231</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-23T13:15:55Z</dc:date>
    </item>
    <item>
      <title>I found a combination that</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161809#M232</link>
      <description>&lt;P&gt;I found a combination that works:&lt;/P&gt;&lt;P&gt;set(OpenMP_CXX_LIB_NAMES "libiomp5" "libomp" "libgomp") # in CMakeLists.txt&lt;/P&gt;&lt;P&gt;Invoke the latest cmake with&lt;/P&gt;&lt;P&gt;-DOpenMP_CXX_FLAGS="-qopenmp" -DCMAKE_LIBRARY_PATH="$(llvm-config --libdir)" -DCMAKE_CXX_COMPILER=`which dpcpp`&lt;/P&gt;&lt;P&gt;Passing -DOpenMP_CXX_LIB_NAMES="libiomp5;libomp;libgomp" does not work.&lt;/P&gt;&lt;P&gt;Need to study the matter a bit more, so far this workaround can be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Dmitry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 10:02:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161809#M232</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-24T10:02:17Z</dc:date>
    </item>
    <item>
      <title>Hi all,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161810#M233</link>
      <description>Hi all,

I found that passing the path to the library to cmake explicitly tricks it into "finding" OpenMP. Also it is not recommended to mix different OpenMP implementations, so libiomp5 Intel implementation should be used. The working cmake command line arguments for me are:

-DCMAKE_CXX_COMPILER=dpcpp -DOpenMP_CXX_FLAGS="-qopenmp" -DOpenMP_CXX_LIB_NAMES="libiomp5" -DOpenMP_libiomp5_LIBRARY=/opt/intel/inteloneapi/compiler/2021.1-beta03/linux/compiler/lib/intel64_lin/libiomp5.so

Tested in the DevCloud with the default cmake.</description>
      <pubDate>Wed, 25 Dec 2019 04:40:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161810#M233</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-25T04:40:04Z</dc:date>
    </item>
    <item>
      <title>Hi Dmitry,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161811#M234</link>
      <description>&lt;P&gt;Hi Dmitry,&lt;/P&gt;&lt;P&gt;We tried compiling our sample application&amp;nbsp;with dpcpp using -qopenmp flag alone and we don't see any errors during compilation.&lt;/P&gt;&lt;P&gt;We couldn't reproduce your error as we don't have access to your source code. So, kindly if you can share your source code along with the CMake file we will try to&amp;nbsp;reproduce the same error that you are facing. Please share the steps to reproduce document also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 10:35:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161811#M234</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2019-12-26T10:35:08Z</dc:date>
    </item>
    <item>
      <title>Hi Goutham,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161812#M235</link>
      <description>&lt;P&gt;Hi Goutham,&lt;/P&gt;&lt;P&gt;The error emerges before the compilation, at the cmake step. The minimal CMakeLists.txt is attached to the original post. The contents of the script submitted to theDevCloud&amp;nbsp; queue is straightforward:&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;source /opt/intel/inteloneapi/setvars.sh&lt;/P&gt;&lt;P&gt;cd &amp;lt;a working directory, choose yours&amp;gt;&lt;/P&gt;&lt;P&gt;cmake -DCMAKE_CXX_COMPILER=dpcpp -DOpenMP_CXX_FLAGS="-qopenmp" &amp;lt;path to the directory containing CMakeLists.txt, choose yours&amp;gt;&lt;/P&gt;&lt;P&gt;Substitute the paths in the angle brackets accordingly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;P&gt;UPD: I'll prepare a single-script reproduction when I get to the laptop.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 10:58:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161812#M235</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-26T10:58:00Z</dc:date>
    </item>
    <item>
      <title>Attached a script to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161813#M236</link>
      <description>Attached a script to reproduce. Run it in the DevCloud in a directory where you can write.</description>
      <pubDate>Thu, 26 Dec 2019 20:16:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161813#M236</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-26T20:16:59Z</dc:date>
    </item>
    <item>
      <title>Hi Dmitry,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161814#M237</link>
      <description>&lt;P&gt;Hi Dmitry,&lt;/P&gt;&lt;P&gt;Thank you for providing all the required information. we are able to reproduce the same error which you are facing, we found out that CMake is working fine with icpc/icc/icx/icpx compilers but not with dpcpp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We will forward this issue to the concerned team to further investigate on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are glad to&amp;nbsp;see that your issue is resolved with workarounds, Please let us know whether we can close this thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 09:37:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161814#M237</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2019-12-27T09:37:03Z</dc:date>
    </item>
    <item>
      <title>Hi Goutham,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161815#M238</link>
      <description>&lt;P&gt;Hi Goutham,&lt;/P&gt;&lt;P&gt;You can close this thread.&lt;/P&gt;&lt;P&gt;Please let me know if a relevant cmake or llvm issue is opened.&lt;/P&gt;&lt;P&gt;- Dmitry&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 10:04:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cmake-OpenMP-not-found-with-dpcpp/m-p/1161815#M238</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-27T10:04:51Z</dc:date>
    </item>
  </channel>
</rss>

