- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I was unable to use the intel compiler + cmake with the docker image intel/oneapi-basekit:devel-ubuntu22.04
It complains :
-- 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)
I reproduce the problem with this CMakeLists.txt
cmake_minimum_required(VERSION 3.25.1)
project(myproject)
find_package(IntelDPCPP REQUIRED)
Here is a standalone script to reproduce the problem (it is also attached to the message )
#!/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)" > myproject/CMakeLists.txt
echo "project(myproject)" >> myproject/CMakeLists.txt
echo "find_package(IntelDPCPP REQUIRED)" >> myproject/CMakeLists.txt
# run the test
docker run -v $(pwd):/test -it "$image" /bin/bash -c "cd /test && mkdir -p build && cd build && cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx ../myproject"
Here is the result of the script :
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 && mkdir -p build && cd build && 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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
Could you please try with below command while building the CMakeLists.txt file?
cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ../myproject
We have tried modifying it as mentioned above and did not observe any issues
Please try with above changes and let us know if you face any issues.
Thanks & Regards,
Noorjahan.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
Could you please try with below command while building the CMakeLists.txt file?
cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ../myproject
We have tried modifying it as mentioned above and did not observe any issues
Please try with above changes and let us know if you face any issues.
Thanks & Regards,
Noorjahan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for the solution ,
I was using icx instead of icpx for c++ compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting our solution.
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
Thanks & Regards,
Noorjahan.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page