Skip to content

Commit c46894d

Browse files
committed
Set RPATH for Level Zero and Sycl wrapper library dependencies.
1 parent e9918c1 commit c46894d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/ExecutionEngine/LEVELZERORUNTIME/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if(NOT LEVEL_ZERO_DIR)
1616
message(FATAL_ERROR "LEVEL_ZERO_DIR is not set")
1717
endif()
1818

19+
set(CMAKE_INSTALL_RPATH ${LEVEL_ZERO_DIR}/lib)
1920
add_mlir_library(level-zero-runtime
2021
SHARED
2122
LevelZeroRuntimeWrappers.cpp

lib/ExecutionEngine/SYCLRUNTIME/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if(NOT LEVEL_ZERO_DIR)
2020
message(FATAL_ERROR "LEVEL_ZERO_DIR is not set")
2121
endif()
2222

23+
set(CMAKE_INSTALL_RPATH "${LEVEL_ZERO_DIR}/lib;${SYCL_DIR}/lib")
2324
add_mlir_library(sycl-runtime
2425
SHARED
2526
SyclRuntimeWrappers.cpp

0 commit comments

Comments
 (0)