Skip to content

Commit

Permalink
[SYCL] Fix missing dependency on UR headers (#16261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrumm authored Dec 4, 2024
1 parent b56ffc5 commit 6d2fa74
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ add_custom_target(sycl-headers
sycl-device-aspect-macros-header
boost_mp11-headers)

list(APPEND UR_HEADERS_TO_COPY
${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api.h
${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api_funcs.def
${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_print.hpp
)
add_custom_command(
OUTPUT ${OUT_HEADERS_IN_SYCL_DIR}
${OUT_HEADERS_IN_CL_DIR}
Expand All @@ -252,14 +257,13 @@ add_custom_command(
${HEADERS_IN_CL_DIR}
${HEADERS_IN_STD_DIR}
${HEADERS_IN_SYCLCOMPAT_DIR}
${UR_HEADERS_TO_COPY}
COMMAND ${CMAKE_COMMAND} -E copy_directory ${sycl_inc_dir}/sycl ${SYCL_INCLUDE_BUILD_DIR}/sycl
COMMAND ${CMAKE_COMMAND} -E copy_directory ${sycl_inc_dir}/CL ${SYCL_INCLUDE_BUILD_DIR}/CL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${sycl_inc_dir}/std ${SYCL_INCLUDE_BUILD_DIR}/std
COMMAND ${CMAKE_COMMAND} -E copy_directory ${sycl_inc_dir}/syclcompat ${SYCL_INCLUDE_BUILD_DIR}/syclcompat
COMMAND ${CMAKE_COMMAND} -E copy ${sycl_inc_dir}/syclcompat.hpp ${SYCL_INCLUDE_BUILD_DIR}/syclcompat.hpp
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api.h ${SYCL_INCLUDE_BUILD_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api_funcs.def ${SYCL_INCLUDE_BUILD_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_print.hpp ${SYCL_INCLUDE_BUILD_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${UR_HEADERS_TO_COPY} ${SYCL_INCLUDE_BUILD_DIR}
COMMENT "Copying SYCL headers ...")

# Copy SYCL headers from source to install directory
Expand Down

0 comments on commit 6d2fa74

Please sign in to comment.