- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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