Community
cancel
Showing results for 
Search instead for 
Did you mean: 
breyerml
Novice
415 Views

CMake integration

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
396 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.


Igor_V_Intel
Employee
392 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
373 Views

Thanks for the quick answer.

Reply