Skip to content

[SYCL] Return level_zero loader and header back to install #7867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ set( SYCL_TOOLCHAIN_DEPLOY_COMPONENTS
clang-offload-deps
clang-offload-extract
file-table-tform
level-zero-loader
level-zero-headers
llc
llvm-ar
llvm-foreach
Expand All @@ -381,6 +379,7 @@ set( SYCL_TOOLCHAIN_DEPLOY_COMPONENTS
sycl-headers-extras
sycl
libsycldevice
level-zero-sycl-dev
${XPTIFW_LIBS}
${SYCL_TOOLCHAIN_DEPS}
)
Expand Down
19 changes: 19 additions & 0 deletions sycl/plugins/level_zero/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,25 @@ add_sycl_plugin(level_zero
${XPTI_LIBS}
)

#FIXME: We should stop shipping level zero loader and headers as part of the
# toolchain installation. Instead these should be avaialble in the system.
# We keep shipping it until all environments are updated.
install(TARGETS ze_loader
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT level-zero-sycl-dev
NAMELINK_SKIP
)

file(GLOB LEVEL_ZERO_API_HEADERS "${LEVEL_ZERO_INCLUDE_DIR}/*.h")
install(FILES ${LEVEL_ZERO_API_HEADERS}
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/sycl/level_zero/
COMPONENT level-zero-sycl-dev
)
# end of FIXME

add_dependencies(pi_level_zero ze-api)

if (SYCL_ENABLE_XPTI_TRACING)
Expand Down