Intel® oneAPI Base Toolkit
Support for the core tools and libraries within the base toolkit that are used to build and deploy high-performance data-centric applications.

CMake integration

breyerml
Novice
1,235 Views

Is there a CMake integration for the oneAPI SYCL implementation?

For example for the ComputeCpp SYCL implementation (https://developer.codeplay.com/products/computecpp/ce/guides/integration-guide#UsingCmake

project(my_sycl_program)

cmake_minimum_required(VERSION 3.4.3)
set(CMAKE_MODULE_PATH /path/to/computecpp-sdk/cmake/Modules/)

include(FindComputeCpp)
include_directories(${COMPUTECPP_INCLUDE_DIRECTORY})

add_executable(syclProgram ${CMAKE_CURRENT_SOURCE_DIR}/syclProgram.cpp)
add_sycl_to_target(syclProgram ${CMAKE_CURRENT_SOURCE_DIR}/syclProgram.cpp
                    ${CMAKE_CURRENT_BINARY_DIR})

 

Or hipSYCL (https://github.com/illuhad/hipSYCL/issues/322#issuecomment-701346003

cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 17)

find_package(hipSYCL REQUIRED)

project(LANGUAGES CXX)

# create executable
add_executable(prog main.cpp)
add_sycl_to_target(TARGET prog)

 

Note the calls to find_package and add_sycl_to_target.

0 Kudos
3 Replies
AbhishekD_Intel
Moderator
1,216 Views

Hi,


Thanks for reaching out to us.

We are forwarding this issue to the concerned team, they will be the right people to answer your question.



Warm Regards,

Abhishek.


0 Kudos
Igor_V_Intel
Employee
1,212 Views

We do have a feature request addressing the Cmake integration. I will double check the current state and add you as a one more customer asking for it. I think it should be implemented soon.


breyerml
Novice
1,193 Views
0 Kudos
Reply