Skip to content

Commit

Permalink
Merge branch 'sycl' into pietro/barriers
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroGhg committed Jan 24, 2024
2 parents 4917157 + f694c84 commit 256f3ae
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 2,455 deletions.
21 changes: 0 additions & 21 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,30 +180,10 @@ string(TIMESTAMP __SYCL_COMPILER_VERSION "%Y%m%d")
configure_file("source/version.hpp.in" "${SYCL_INCLUDE_BUILD_DIR}/sycl/version.hpp")
configure_file("source/feature_test.hpp.in" "${SYCL_INCLUDE_BUILD_DIR}/sycl/feature_test.hpp")

# Generate SYCL builtins
find_package(Python3 REQUIRED)
add_custom_command(
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/source/builtins_generator.py ${SYCL_INCLUDE_BUILD_DIR}/sycl
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/source/builtins_generator.py
OUTPUT "${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_scalar_gen.hpp"
"${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_vector_gen.hpp"
"${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_marray_gen.hpp"
COMMENT "Generating SYCL builtin headers"
)

add_custom_target(sycl-builtins-header
DEPENDS "${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_scalar_gen.hpp"
"${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_vector_gen.hpp"
"${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_marray_gen.hpp"
)

# Install generated headers.
install(FILES
"${SYCL_INCLUDE_BUILD_DIR}/sycl/feature_test.hpp"
"${SYCL_INCLUDE_BUILD_DIR}/sycl/version.hpp"
"${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_scalar_gen.hpp"
"${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_vector_gen.hpp"
"${SYCL_INCLUDE_BUILD_DIR}/sycl/builtins_marray_gen.hpp"
DESTINATION "${SYCL_INCLUDE_DIR}/sycl"
COMPONENT sycl-headers)

Expand Down Expand Up @@ -233,7 +213,6 @@ add_custom_target(sycl-headers
${OUT_HEADERS_IN_CL_DIR}
${OUT_HEADERS_IN_STD_DIR}
${OUT_HEADERS_IN_SYCLCOMPAT_DIR}
sycl-builtins-header
boost_mp11-headers)

add_custom_command(
Expand Down
Loading

0 comments on commit 256f3ae

Please sign in to comment.