1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
--- a/src/npu_interpreter_runtime/CMakeLists.txt
+++ b/src/npu_interpreter_runtime/CMakeLists.txt
@@ -70,11 +70,11 @@ install(TARGETS ${TARGET_NAME}
RUNTIME DESTINATION ${OV_CPACK_RUNTIMEDIR} COMPONENT ${VPUX_INTERNAL_COMPONENT})
# Install openvino_intel_npu_vm_runtime to the CID or CIP package selected by BUILD_COMPILER_FOR_DRIVER
-install_target_with_debug_files(${TARGET_NAME} ${INSTALL_DESTINATION}/lib ${INSTALL_COMPONENT})
+install_target_with_debug_files(${TARGET_NAME} lib ${INSTALL_COMPONENT})
# Install npu_interpreter_runtime public header
install(
FILES
"${CMAKE_CURRENT_SOURCE_DIR}/include/npu_interpreter_runtime/npu_vm_runtime.hpp"
- DESTINATION ${INSTALL_DESTINATION}/include/npu_interpreter_runtime
+ DESTINATION include/npu_interpreter_runtime
COMPONENT ${INSTALL_COMPONENT})
--- a/src/vpux_compiler/CMakeLists.txt
+++ b/src/vpux_compiler/CMakeLists.txt
@@ -151,7 +151,7 @@ endif()
include(${PROJECT_SOURCE_DIR}/cmake/npu_compiler_version.cmake)
npu_compiler_configure_version(${COMPILER_LIB})
-install_target_with_debug_files(${COMPILER_LIB} ${INSTALL_DESTINATION}/lib ${INSTALL_COMPONENT})
+install_target_with_debug_files(${COMPILER_LIB} lib ${INSTALL_COMPONENT})
install(TARGETS ${COMPILER_LIB}
ARCHIVE DESTINATION ${OV_CPACK_RUNTIMEDIR} COMPONENT ${VPUX_INTERNAL_COMPONENT}
--- a/src/vpux_driver_compiler/CMakeLists.txt
+++ b/src/vpux_driver_compiler/CMakeLists.txt
@@ -16,7 +16,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_subdirectory(src)
add_subdirectory(test)
-install(
+#[[install(
FILES
"${PROJECT_SOURCE_DIR}/src/vpux_driver_compiler/CHANGES.txt"
DESTINATION ${INSTALL_DESTINATION}
@@ -26,4 +26,4 @@ install(
FILES
"${PROJECT_SOURCE_DIR}/src/vpux_driver_compiler/README.md"
DESTINATION ${INSTALL_DESTINATION}
- COMPONENT ${INSTALL_COMPONENT})
+ COMPONENT ${INSTALL_COMPONENT})]]
--- a/src/vpux_driver_compiler/cmake/build_manifest.cmake
+++ b/src/vpux_driver_compiler/cmake/build_manifest.cmake
@@ -54,5 +54,5 @@ configure_file(
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/build_manifest.json
- DESTINATION ${INSTALL_DESTINATION}
+ DESTINATION share/intel-npu-compiler
COMPONENT ${INSTALL_COMPONENT})
--- a/src/vpux_driver_compiler/src/vpux_compiler_l0/CMakeLists.txt
+++ b/src/vpux_driver_compiler/src/vpux_compiler_l0/CMakeLists.txt
@@ -55,21 +55,21 @@ add_dependencies(${TARGET_NAME} VPUXLoader)
ov_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
# Install library related files to component
-install_target_with_debug_files(${TARGET_NAME} ${INSTALL_DESTINATION}/lib ${INSTALL_COMPONENT})
+install_target_with_debug_files(${TARGET_NAME} lib ${INSTALL_COMPONENT})
# Install library header
install(
FILES
"${PROJECT_SOURCE_DIR}/src/vpux_driver_compiler/include/npu_driver_compiler.h"
- DESTINATION ${INSTALL_DESTINATION}
+ DESTINATION include
COMPONENT ${INSTALL_COMPONENT})
# Also install under include/ for standard include paths (keep root install above for backward compatibility).
-install(
+#[[install(
FILES
"${PROJECT_SOURCE_DIR}/src/vpux_driver_compiler/include/npu_driver_compiler.h"
DESTINATION ${INSTALL_DESTINATION}/include
- COMPONENT ${INSTALL_COMPONENT})
+ COMPONENT ${INSTALL_COMPONENT})]]
# Install the openvino_intel_npu_compiler library to the same path of mlir_compiler
# TODO: check if ARCHIVE is needed and then remove it.
--- a/src/vpux_driver_compiler/test/functional/CMakeLists.txt
+++ b/src/vpux_driver_compiler/test/functional/CMakeLists.txt
@@ -66,7 +66,7 @@ endif()
if(ENABLE_PREBUILT_LLVM_MLIR_LIBS)
find_package(MLIR REQUIRED CONFIG)
endif()
-
+set_target_properties(${FUNCTIONAL_TARGET} PROPERTIES OUTPUT_NAME intel-npu-${FUNCTIONAL_TARGET})
target_include_directories(${FUNCTIONAL_TARGET}
SYSTEM PRIVATE
$<BUILD_INTERFACE:${LLVM_SOURCE_DIR}/include>
@@ -84,7 +84,7 @@ endif()
ov_add_api_validator_post_build_step(TARGET vpuxCompilerL0Test)
install(TARGETS ${FUNCTIONAL_TARGET}
- RUNTIME DESTINATION tests
+ RUNTIME DESTINATION bin
COMPONENT ${VPUX_TESTS_COMPONENT}
EXCLUDE_FROM_ALL
)
--- a/src/vpux_driver_compiler/test/smoke/CMakeLists.txt
+++ b/src/vpux_driver_compiler/test/smoke/CMakeLists.txt
@@ -12,6 +12,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
# compilerTest as smoke test
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
add_executable(compilerTest compilerTest.cpp)
+set_target_properties(compilerTest PROPERTIES OUTPUT_NAME intel-npu-compilerTest)
target_link_libraries(compilerTest
PRIVATE
npu_compiler_loader_utils # VCL function
@@ -23,6 +24,7 @@ ov_add_api_validator_post_build_step(TARGET compilerTest)
# profilingTest to check profiling API
add_executable(profilingTest profilingTest.cpp)
+set_target_properties(profilingTest PROPERTIES OUTPUT_NAME intel-npu-profilingTest)
target_link_libraries(profilingTest
PRIVATE
npu_compiler_loader_utils # VCL function
@@ -33,6 +35,7 @@ ov_add_api_validator_post_build_step(TARGET profilingTest)
# loaderTest to check npu_elf
add_executable(loaderTest loaderTest.cpp)
+set_target_properties(loaderTest PROPERTIES OUTPUT_NAME intel-npu-loaderTest)
target_link_libraries(loaderTest
PRIVATE
npu_elf
@@ -41,17 +44,17 @@ target_link_libraries(loaderTest
ov_add_api_validator_post_build_step(TARGET loaderTest)
install(TARGETS loaderTest
- RUNTIME DESTINATION tests
+ RUNTIME DESTINATION bin
COMPONENT ${VPUX_TESTS_COMPONENT}
EXCLUDE_FROM_ALL
)
install(TARGETS compilerTest
- RUNTIME DESTINATION tests
+ RUNTIME DESTINATION bin
COMPONENT ${VPUX_TESTS_COMPONENT}
EXCLUDE_FROM_ALL
)
install(TARGETS profilingTest
- RUNTIME DESTINATION tests
+ RUNTIME DESTINATION bin
COMPONENT ${VPUX_TESTS_COMPONENT}
EXCLUDE_FROM_ALL
)
|