Skip to content

Commit f0157f6

Browse files
authored
[PTI-LIB] Remove Source from Release Artifacts. (#462)
Remove `pti_api_ids_state_maps.h` (implementation details) from our release package. `${PROJECT_BUILD_DIR}/include/pti` is for autogenerated release artifacts and mirrors `${PROJECT_SOURCE_DIR}/include/pti`. Change usage of `CMAKE_SOURCE_DIR` to `PROJECT_SOURCE_DIR`. Signed-off-by: Schilling, Matthew <[email protected]>
1 parent 07169c3 commit f0157f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sdk/cmake/Modules/macros.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ macro(FindHeadersPath TARGET L0_GEN_SCRIPT GEN_FILE_NAME custom_target L0_TARGET
4646
message(STATUS "Level Zero headers are found at ${L0_INC_PATH}")
4747
endif()
4848

49-
set(L0_GEN_INC_PATH "${CMAKE_BINARY_DIR}")
49+
set(L0_GEN_INC_PATH "${PROJECT_BINARY_DIR}")
5050
if (NOT TARGET unified-runtime::loader)
5151
find_package(unified-runtime)
5252
endif()
@@ -57,7 +57,7 @@ macro(FindHeadersPath TARGET L0_GEN_SCRIPT GEN_FILE_NAME custom_target L0_TARGET
5757
add_custom_command(OUTPUT ${L0_GEN_INC_PATH}/${GEN_FILE_NAME}
5858
COMMAND "${PYTHON_EXECUTABLE}" ${L0_GEN_SCRIPT}
5959
${L0_GEN_INC_PATH} "${L0_INC_PATH}/level_zero"
60-
"${PROJECT_BINARY_DIR}/include/pti" "${PROJECT_SOURCE_DIR}/include/pti" ${UR_HEADER_PATH} ${PTI_API_ID_REGENERATE} ${PTI_L0_LOADER_COMMIT_HASH})
60+
"${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/include/pti" ${UR_HEADER_PATH} ${PTI_API_ID_REGENERATE} ${PTI_L0_LOADER_COMMIT_HASH})
6161
target_include_directories(${TARGET}
6262
PUBLIC "$<BUILD_INTERFACE:${L0_GEN_INC_PATH}>")
6363
add_dependencies(${TARGET}
@@ -377,7 +377,7 @@ macro(AddApiGenTarget L0_GEN_SCRIPT GEN_FILE_NAME L0_TARGET)
377377
message(STATUS "Level Zero headers are found at ${L0_INC_PATH}")
378378
endif()
379379

380-
set(L0_GEN_INC_PATH "${CMAKE_BINARY_DIR}")
380+
set(L0_GEN_INC_PATH "${PROJECT_BINARY_DIR}")
381381
if (NOT TARGET unified-runtime::loader)
382382
find_package(unified-runtime)
383383
endif()

sdk/src/view_handler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
#include "consumer_thread.h"
2424
#include "default_buffer_callbacks.h"
25-
#include "include/pti/pti_api_ids_state_maps.h"
2625
#include "pti/pti_view.h"
26+
#include "pti_api_ids_state_maps.h"
2727

2828
#if defined(PTI_TRACE_SYCL)
2929
#include "sycl_collector.h"

0 commit comments

Comments
 (0)