<?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: Cannot use IntelSYCL with CMake in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cannot-use-IntelSYCL-with-CMake/m-p/1664161#M4294</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/408338"&gt;@LukeTheWalker&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The minimum CMake version required for IntelSYCL is 3.23.5 on Linux and 3.25 on Windows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using one of these or a more recent version and still running into this issue?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 22:02:02 GMT</pubDate>
    <dc:creator>Sravani_K_Intel</dc:creator>
    <dc:date>2025-02-07T22:02:02Z</dc:date>
    <item>
      <title>Cannot use IntelSYCL with CMake</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cannot-use-IntelSYCL-with-CMake/m-p/1660511#M4285</link>
      <description>&lt;P&gt;I seem to be unable to compile intelSYCL in the recommended way using cmake.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CMakeLists I am using is this one.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="none"&gt;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)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But I still keep getting the error:&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="none"&gt;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!!​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though I already sourced the setvars script&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Jan 2025 11:29:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cannot-use-IntelSYCL-with-CMake/m-p/1660511#M4285</guid>
      <dc:creator>LukeTheWalker</dc:creator>
      <dc:date>2025-01-26T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use IntelSYCL with CMake</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cannot-use-IntelSYCL-with-CMake/m-p/1664161#M4294</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/408338"&gt;@LukeTheWalker&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The minimum CMake version required for IntelSYCL is 3.23.5 on Linux and 3.25 on Windows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using one of these or a more recent version and still running into this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 22:02:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Cannot-use-IntelSYCL-with-CMake/m-p/1664161#M4294</guid>
      <dc:creator>Sravani_K_Intel</dc:creator>
      <dc:date>2025-02-07T22:02:02Z</dc:date>
    </item>
  </channel>
</rss>

