You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike local build of Driver Compiler related targets, we need to apply some patches to [OpenVINO Project] and [NPU-Plugin Project] and also pack the elf, pdb and tbb files together to meet driver requirements.
76
-
77
-
To get more info about Driver Compiler package, refer to [introduction of Driver Compiler package](https://github.com/intel-innersource/applications.ai.vpu-accelerators.flex-cid-tools/blob/develop/docs/introductio-of-driver_compiler_package.md) in [CiD project] repo.
78
-
79
-
To build Driver Compiler package, refer to [How to Release Driver Compiler package.md](https://github.com/intel-innersource/applications.ai.vpu-accelerators.flex-cid-tools/blob/develop/docs/how-to-release-package.md) in [CiD project] repo.
80
-
81
-
82
-
## How to test
83
-
84
-
Please refer to [How to test](./docs/how_to_test.md).
85
-
86
-
87
-
## How to debug
88
-
89
-
Please refer to [How to debug](./docs/how_to_debug.md).
1) According to OV/install_build_dependencie.sh and how-to-build.md, the minor python version is `3.9`. Here choose the Python 3.9.10 to use. download with the following link to and turn to the download path.
1) According to OV/install_build_dependencie.sh and how-to-build.md, the minor python version is `3.9`. Here choose the Python 3.9.10 to use. Download with the [link](https://www.python.org/ftp/python/3.9.10/python-3.9.10-amd64.exe)
1) According to [OV/install_build_dependencie.sh](https://github.com/openvinotoolkit/openvino/blob/master/install_build_dependencies.sh#L208), the Visual Studio needed to use is 2019 with version 16.3 or higher. Here choose Visual Studio 2019 community version 16.11 in the [link](https://my.visualstudio.com/Downloads?q=visual%20studio%202019&wt.mc_id=o~msft~vscom~older-downloads). Click the `Download` and then turn to the download path.
71
+
1) According to [OpenVINO Project]/install_build_dependencie.sh, the Visual Studio needed to use is 2019 with version 16.3 or higher. Here choose Visual Studio 2019 community version 16.11 in the [link](https://my.visualstudio.com/Downloads?q=visual%20studio%202019&wt.mc_id=o~msft~vscom~older-downloads). Click the `Download` and then turn to the download path.
Note: Please note that api validator tool is part of WDK for Windows 10. If you did not special the install path in the beginning of installation WDK, this tool is located in C:\Program Files (x86)\Windows Kits\10\bin. Otherwise, it will be in the path you specified.
137
+
Note: Please note that api validator tool is part of WDK for Windows 10. If you did not special the install path in the beginning of installation WDK, this tool is located in C:\Program Files (x86)\Windows Kits\10\bin. Otherwise, it will be in the path you specified.
139
138
140
-
**More setup detil info, please refer to this [link](https://jira.devtools.intel.com/browse/EISW-86721).**
Here are the steps for generating the TBB library on both Windows and Linux. To successfully pass some binary scanning tools, some patches are applied prior to building the TBB library.
3
+
Here are the steps for generating the TBB library on both Windows and Linux. To successfully pass some binary scanning tools on Windows, some patches are applied prior to building the TBB library.
4
4
5
5
## Content
6
-
*[Build Windows TBB library](#Build_Windows_TBB_library)
7
6
*[Build Linux TBB library](#Build_Linux_TBB_library)
7
+
*[Build Windows TBB library](#Build_Windows_TBB_library)
8
+
9
+
## <spanid="Build_Linux_TBB_library">Build Linux TBB library</span>
10
+
11
+
`hwloc_2_9_2.diff` patch is located in [here](./patch/linux/hwloc_2_9_2.diff).
Finally, you need to set the environment variable TBBROOT to this oneTBB install folder `export TBBROOT="${WORKDIR}/oneTBB-2021.2.4/install"` to perform Driver compiler build.
8
113
9
114
10
115
## <span id="Build_Windows_TBB_library">Build Windows oneTBB library</span>
@@ -31,7 +136,7 @@ cd %TBB_HOME%
31
136
git checkout v20xx.x
32
137
```
33
138
34
-
To generate pdb file for TBB release, need to add following code to CMakeLists.txt. Or you can use [this patch](../release-tools/manual/tbb_patch/windows/1.static_patch.diff) in oneTBB repo.
139
+
To generate pdb file forTBB release, need to add following code to CMakeLists.txt. Or you can use [this patch](./patch/winodws/1.static_patch.diff)in oneTBB repo.
@@ -87,7 +192,7 @@ To avoid BinSkim issue for TBB, need to add following code to CMakeLists.txt
87
192
88
193
And need to change tbbmalloc warning level from ```set(TBB_WARNING_SUPPRESS ${TBB_WARNING_SUPPRESS} /wd4267 /wd4244 /wd4245 /wd4018 /wd4458)``` to ```set(TBB_WARNING_SUPPRESS ${TBB_WARNING_SUPPRESS} /W3 /wd4245 /wd4458)``` on [oneTBB/src/tbbmalloc/CMakeLists.txt](https://github.com/oneapi-src/oneTBB/blob/47061f128b14f758d1a9d5e90d0cfc5fa9793b89/src/tbbmalloc/CMakeLists.txt#L50)
89
194
90
-
Or to fix the above issue, you can use [this patch](../release-tools/manual/tbb_patch/windows/2.2tbb_dynmaic.diff) in oneTBB repo.
195
+
Or to fix the above issue, you can use [this patch](./patch/winodws/2.2tbb_dynmaic.diff) in oneTBB repo.
91
196
92
197
Then, build dynamic onecore TBB
93
198
@@ -117,110 +222,5 @@ The install folder contains all the dynamic TBB library, which is named as relea
117
222
118
223
**Do NOT forget to copy pdb files into final TBB package.**
119
224
120
-
## <spanid="Build_Linux_TBB_library">Build Linux TBB library</span>
121
-
122
-
dynmaic TBB use OpenVINO official TBB library, please follow the steps to build static Linux TBB library:
Copy file name to clipboardExpand all lines: src/vpux_driver_compiler/docs/how_to_build_driver_compiler_on_windows.md
+2-9Lines changed: 2 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,8 +59,6 @@ All instructions are perfromed on **x64 Native Tools Command Prompt for VS XXXX*
59
59
2. Create build folder and run build commands:
60
60
61
61
2.1 Build instructions
62
-
63
-
Please ensure that you are performing a clean build, or that you have not previously built CID targets; otherwise, you may encounter a link mismatch issue as the second `Notice`.
64
62
65
63
<details>
66
64
<summary>Executed in x64 Native Tools Command Prompt for VS XXXX</summary>
@@ -136,7 +134,7 @@ All instructions are perfromed on **x64 Native Tools Command Prompt for VS XXXX*
136
134
<details>
137
135
<summary>2.2.2 Build option list in OpenVino Project</summary>
138
136
139
-
For more details on the build options, please refer to this [OpenVino features.cmake](https://github.com/openvinotoolkit/openvino/blob/13a6f317dc4ed18c2fca83d601f54e8a7319b018/cmake/features.cmake) and this [NPU features.cmake](https://github.com/openvinotoolkit/openvino/blob/13a6f317dc4ed18c2fca83d601f54e8a7319b018/src/plugins/intel_npu/cmake/features.cmake) in [OpenVINO Project], which provides explanations for all the available build options.
137
+
For more details on the build options, please refer to this [OpenVino features.cmake](https://github.com/openvinotoolkit/openvino/blob/13a6f317dc4ed18c2fca83d601f54e8a7319b018/cmake/features.cmake) and this [NPU features.cmake](https://github.com/openvinotoolkit/openvino/blob/13a6f317dc4ed18c2fca83d601f54e8a7319b018/src/plugins/intel_npu/cmake/features.cmake) in [OpenVINO Project], which provides explanations for all the available build options.
140
138
141
139
```sh
142
140
# Specify external repo
@@ -256,14 +254,9 @@ All instructions are perfromed on **x64 Native Tools Command Prompt for VS XXXX*
256
254
257
255
### See also
258
256
259
-
Follow the blow guide to build the Driver Compiler library and test targets with Ninja:
260
-
*`Using ninja` section of [how-to-build.md](../../../guides/how-to-build.md) of [NPU-Plugin Project].
261
-
262
-
To use cmake presets to build, please see
257
+
To use cmake presets and ninja to build, please see
263
258
* [how to build Driver Compiler with Cmake Presets on Windows](./how_to_build_driver_compiler_withCmakePresets_on_windows.md)
264
259
265
-
Driver compiler build is a static build, to get a static build of [NPU-Plugin Project] repo, please see
266
-
* [how to build static](../../../guides/how-to-build-static.md).
0 commit comments