Skip to content

Commit

Permalink
[SYCL] Remove builtins_generator.py (#12451)
Browse files Browse the repository at this point in the history
Not used after #11956.
  • Loading branch information
aelovikov-intel authored Jan 24, 2024
1 parent 2414a15 commit 48ec4dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2,442 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 48ec4dd

Please sign in to comment.