Skip to content

Commit 90ffef6

Browse files
committed
fix include dir and remove use of 'L0_INC_PATH'
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 4432a72 commit 90ffef6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

scripts/build_pti_data/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ else()
2020
message(STATUS "LEVELZERO_INCLUDE_DIR env var not defined; try to use system version")
2121
endif()
2222

23-
if(DEFINED ENV{LEVELZERO_INCLUDE_DIR})
24-
# When defining `L0_INC_PATH` variable inside PTI, the following is not used: `PATH_SUFFIXES include`
25-
set(L0_INC_PATH "$ENV{LEVELZERO_INCLUDE_DIR}/include/" CACHE PATH "Path to Level Zero includes")
26-
message(STATUS "Using Level Zero from ENV to define L0_INC_PATH: ${L0_INC_PATH}")
27-
else()
28-
message(STATUS "LEVELZERO_INCLUDE_DIR env var not defined; try to use system version")
29-
endif()
30-
3123
if(DEFINED ENV{LEVELZERO_LIBRARY})
3224
set(LevelZero_LIBRARY "$ENV{LEVELZERO_LIBRARY}" CACHE PATH "Path to Level Zero library")
3325
message(STATUS "Using Level Zero from ENV: ${LevelZero_LIBRARY}")

scripts/install-pti.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function build_level_zero {
5555
cmake .. -DCMAKE_INSTALL_PREFIX="$L0_INSTALL_PATH" -DCMAKE_BUILD_TYPE=Release
5656
cmake --build . --config Release --parallel "$(nproc)"
5757
cmake --build . --config Release --target install
58-
export LEVELZERO_INCLUDE_DIR="$L0_INSTALL_PATH"
58+
export LEVELZERO_INCLUDE_DIR="$L0_INSTALL_PATH/include"
5959
export LEVELZERO_LIBRARY="$L0_INSTALL_PATH/lib/libze_loader.so"
6060
}
6161

0 commit comments

Comments
 (0)