- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I seem to be unable to compile intelSYCL in the recommended way using cmake.
The CMakeLists I am using is this one.
cmake_minimum_required(VERSION 3.20)
project(SYCLOneMKLProject CXX)
set(CMAKE_C_COMPILER "icx")
set(CMAKE_CXX_COMPILER "icpx")
# Set C++ standard
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find SYCL and oneMKL packages
find_package(IntelSYCL REQUIRED)
find_package(MKL CONFIG REQUIRED)
# Add executable
add_executable(${PROJECT_NAME} main.cpp)
# Link SYCL and oneMKL libraries
target_link_libraries(${PROJECT_NAME}
PRIVATE
Intel::DPCPP
MKL::MKL
)
# Optional: Add include directories if needed
target_include_directories(${PROJECT_NAME}
PRIVATE
${ONEAPI_ROOT}/mkl/latest/include)
But I still keep getting the error:
CMake Error at CMakeLists.txt:12 (find_package):
Found package configuration file:
/home/luca/intel/oneapi/compiler/2025.0/lib/cmake/IntelSYCL/IntelSYCLConfig.cmake
but it set IntelSYCL_FOUND to FALSE so package "IntelSYCL" is considered to
be NOT FOUND. Reason given by package:
Unsupported compiler family GNU and compiler icpx!!
Even though I already sourced the setvars script
- Tags:
- cmake
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @LukeTheWalker,
The minimum CMake version required for IntelSYCL is 3.23.5 on Linux and 3.25 on Windows.
Are you using one of these or a more recent version and still running into this issue?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page