<?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:Unable to use cmake + intel compiler + docker image in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1478686#M2997</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please try with below command while building the CMakeLists.txt file?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ../myproject&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have tried modifying it as mentioned above and did not observe any issues&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please try with above changes and let us know if you face any issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Apr 2023 12:18:51 GMT</pubDate>
    <dc:creator>NoorjahanSk_Intel</dc:creator>
    <dc:date>2023-04-20T12:18:51Z</dc:date>
    <item>
      <title>Unable to use cmake + intel compiler + intel/oneapi-basekit:devel-ubuntu22.04</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1477858#M2984</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I was unable to use the intel compiler + cmake with the docker image&amp;nbsp;intel/oneapi-basekit:devel-ubuntu22.04&lt;/P&gt;
&lt;P&gt;It complains :&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;
&lt;LI-CODE lang="markup"&gt;-- Detecting CXX compile features - done
SYCL feature test compile failed!
compile output is: 
CMake Error at /opt/intel/oneapi/compiler/2023.0.0/linux/IntelDPCPP/IntelDPCPPConfig.cmake:270 (SYCL_FEATURE_TEST_EXTRACT):
  SYCL_FEATURE_TEST_EXTRACT Function invoked with incorrect arguments for
  function named: SYCL_FEATURE_TEST_EXTRACT
Call Stack (most recent call first):
  CMakeLists.txt:3 (find_package)&lt;/LI-CODE&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;
&lt;P&gt;&lt;BR /&gt;I reproduce the problem with this CMakeLists.txt&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;
&lt;LI-CODE lang="markup"&gt;cmake_minimum_required(VERSION 3.25.1)
project(myproject)
find_package(IntelDPCPP REQUIRED)&lt;/LI-CODE&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;
&lt;P&gt;Here is a standalone script to reproduce the problem (it is also attached to the message )&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;
&lt;LI-CODE lang="markup"&gt;#!/bin/bash -x

image=intel/oneapi-basekit:devel-ubuntu22.04
docker pull "$image"

mkdir -p myproject

# cmake_minimum_required(VERSION 3.25.1)
# project(myproject)
# find_package(IntelDPCPP REQUIRED)
echo "cmake_minimum_required(VERSION 3.25.1)" &amp;gt; myproject/CMakeLists.txt
echo "project(myproject)" &amp;gt;&amp;gt; myproject/CMakeLists.txt
echo "find_package(IntelDPCPP REQUIRED)" &amp;gt;&amp;gt; myproject/CMakeLists.txt

# run the test
docker run -v $(pwd):/test -it "$image" /bin/bash -c "cd /test &amp;amp;&amp;amp; mkdir -p build &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx ../myproject"&lt;/LI-CODE&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;
&lt;P&gt;&amp;nbsp; Here is the result of the script :&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;
&lt;LI-CODE lang="bash"&gt;ubuntu@ip-10-0-187-190:~/work2023/dockerbugreport$ ./mytest.sh 
+ image=intel/oneapi-basekit:devel-ubuntu22.04
+ docker pull intel/oneapi-basekit:devel-ubuntu22.04
devel-ubuntu22.04: Pulling from intel/oneapi-basekit
Digest: sha256:99220a923d7509285bd60e46e6261d39ff730d6ac23164106eaa9f1e6511d159
Status: Image is up to date for intel/oneapi-basekit:devel-ubuntu22.04
docker.io/intel/oneapi-basekit:devel-ubuntu22.04
+ mkdir -p myproject
+ echo 'cmake_minimum_required(VERSION 3.25.1)'
+ echo 'project(myproject)'
+ echo 'find_package(IntelDPCPP REQUIRED)'
++ pwd
+ docker run -v /home/ubuntu/work2023/dockerbugreport:/test -it intel/oneapi-basekit:devel-ubuntu22.04 /bin/bash -c 'cd /test &amp;amp;&amp;amp; mkdir -p build &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx ../myproject'
-- The C compiler identification is IntelLLVM 2023.0.0
-- The CXX compiler identification is IntelLLVM 2023.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
SYCL feature test compile failed!
compile output is: 
CMake Error at /opt/intel/oneapi/compiler/2023.0.0/linux/IntelDPCPP/IntelDPCPPConfig.cmake:270 (SYCL_FEATURE_TEST_EXTRACT):
  SYCL_FEATURE_TEST_EXTRACT Function invoked with incorrect arguments for
  function named: SYCL_FEATURE_TEST_EXTRACT
Call Stack (most recent call first):
  CMakeLists.txt:3 (find_package)


-- The SYCL compiler is /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icx
-- The SYCL Flags are -fsycl 
-- The SYCL Language Version is 
-- Found IntelDPCPP: /opt/intel/oneapi/compiler/2023.0.0/linux/include  
-- Configuring incomplete, errors occurred!
See also "/test/build/CMakeFiles/CMakeOutput.log".&lt;/LI-CODE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 07:46:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1477858#M2984</guid>
      <dc:creator>bungeetux</dc:creator>
      <dc:date>2023-04-19T07:46:59Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to use cmake + intel compiler + docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1478686#M2997</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please try with below command while building the CMakeLists.txt file?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ../myproject&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have tried modifying it as mentioned above and did not observe any issues&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please try with above changes and let us know if you face any issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2023 12:18:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1478686#M2997</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-04-20T12:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Unable to use cmake + intel compiler + docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1478963#M3000</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the solution ,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I was using icx instead of icpx for c++ compiler.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 07:01:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1478963#M3000</guid>
      <dc:creator>bungeetux</dc:creator>
      <dc:date>2023-04-21T07:01:47Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to use cmake + intel compiler + docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1478972#M3001</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our solution.&lt;/P&gt;&lt;P&gt;As this issue has been resolved, we will no longer respond to this thread. If you need any additional information, please post a new question&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Apr 2023 07:53:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-use-cmake-intel-compiler-intel-oneapi-basekit-devel/m-p/1478972#M3001</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-04-21T07:53:42Z</dc:date>
    </item>
  </channel>
</rss>

