Replaced DLDT to OpenVINO (#12580)
* Replaced DLDT to OpenVINO * Fixed samples build dir * Fixed build folders
This commit is contained in:
@@ -5,15 +5,15 @@ Inference Engine build infrastructure provides the Inference Engine Developer Pa
|
||||
Inference Engine Developer Package
|
||||
------------------------
|
||||
|
||||
To automatically generate the Inference Engine Developer Package, run the `cmake` tool during a DLDT build:
|
||||
To automatically generate the Inference Engine Developer Package, run the `cmake` tool during a OpenVINO build:
|
||||
|
||||
```bash
|
||||
$ mkdir dldt-release-build
|
||||
$ cd dldt-release-build
|
||||
$ cmake -DCMAKE_BUILD_TYPE=Release ../dldt
|
||||
$ mkdir openvino-release-build
|
||||
$ cd openvino-release-build
|
||||
$ cmake -DCMAKE_BUILD_TYPE=Release ../openvino
|
||||
```
|
||||
|
||||
Once the commands above are executed, the Inference Engine Developer Package is generated in the `dldt-release-build` folder. It consists of several files:
|
||||
Once the commands above are executed, the Inference Engine Developer Package is generated in the `openvino-release-build` folder. It consists of several files:
|
||||
- `InferenceEngineDeveloperPackageConfig.cmake` - the main CMake script which imports targets and provides compilation flags and CMake options.
|
||||
- `InferenceEngineDeveloperPackageConfig-version.cmake` - a file with a package version.
|
||||
- `targets_developer.cmake` - an automatically generated file which contains all targets exported from the OpenVINO build tree. This file is included by `InferenceEngineDeveloperPackageConfig.cmake` to import the following targets:
|
||||
@@ -46,7 +46,7 @@ To build a plugin source tree using the Inference Engine Developer Package, run
|
||||
```cmake
|
||||
$ mkdir template-plugin-release-build
|
||||
$ cd template-plugin-release-build
|
||||
$ cmake -DInferenceEngineDeveloperPackage_DIR=../dldt-release-build ../template-plugin
|
||||
$ cmake -DInferenceEngineDeveloperPackage_DIR=../openvino-release-build ../template-plugin
|
||||
```
|
||||
|
||||
A common plugin consists of the following components:
|
||||
@@ -83,10 +83,10 @@ if(ENABLE_TESTS)
|
||||
endif()
|
||||
```
|
||||
|
||||
> **NOTE**: The default values of the `ENABLE_TESTS`, `ENABLE_FUNCTIONAL_TESTS` options are shared via the Inference Engine Developer Package and they are the same as for the main DLDT build tree. You can override them during plugin build using the command below:
|
||||
> **NOTE**: The default values of the `ENABLE_TESTS`, `ENABLE_FUNCTIONAL_TESTS` options are shared via the Inference Engine Developer Package and they are the same as for the main OpenVINO build tree. You can override them during plugin build using the command below:
|
||||
|
||||
```bash
|
||||
$ cmake -DENABLE_FUNCTIONAL_TESTS=OFF -DInferenceEngineDeveloperPackage_DIR=../dldt-release-build ../template-plugin
|
||||
$ cmake -DENABLE_FUNCTIONAL_TESTS=OFF -DInferenceEngineDeveloperPackage_DIR=../openvino-release-build ../template-plugin
|
||||
```
|
||||
|
||||
- `src/CMakeLists.txt` to build a plugin shared library from sources:
|
||||
|
||||
@@ -48,7 +48,7 @@ Inference Engine plugin dynamic library consists of several main components:
|
||||
|
||||
> **NOTE**: This documentation is written based on the `Template` plugin, which demonstrates plugin
|
||||
development details. Find the complete code of the `Template`, which is fully compilable and up-to-date,
|
||||
at `<dldt source dir>/docs/template_plugin`.
|
||||
at `<openvino source dir>/docs/template_plugin`.
|
||||
|
||||
Detailed guides
|
||||
-----------------------
|
||||
|
||||
@@ -44,7 +44,7 @@ To build test binaries together with other build artifacts, use the `make all` c
|
||||
### How to Extend Inference Engine Plugin Tests
|
||||
|
||||
Inference Engine Plugin tests are open for contribution.
|
||||
Add common test case definitions applicable for all plugins to the `IE::funcSharedTests` target within the DLDT repository. Then, any other plugin supporting corresponding functionality can instantiate the new test.
|
||||
Add common test case definitions applicable for all plugins to the `IE::funcSharedTests` target within the OpenVINO repository. Then, any other plugin supporting corresponding functionality can instantiate the new test.
|
||||
|
||||
All Inference Engine per-layer tests check test layers functionality. They are developed using ov::Model.
|
||||
as input graphs used by tests. In this case, to test a new layer with layer tests, extend
|
||||
|
||||
@@ -97,8 +97,8 @@ build_samples.sh
|
||||
```
|
||||
|
||||
Once the build is completed, you can find sample binaries in the following folders:
|
||||
* C samples: `~/inference_engine_c_samples_build/intel64/Release`
|
||||
* C++ samples: `~/inference_engine_cpp_samples_build/intel64/Release`
|
||||
* C samples: `~/openvino_c_samples_build/intel64/Release`
|
||||
* C++ samples: `~/openvino_cpp_samples_build/intel64/Release`
|
||||
|
||||
You can also build the sample applications manually:
|
||||
|
||||
@@ -108,7 +108,7 @@ You can also build the sample applications manually:
|
||||
```sh
|
||||
mkdir build
|
||||
```
|
||||
> **NOTE**: If you run the Image Classification verification script during the installation, the C++ samples build directory is created in your home directory: `~/inference_engine_cpp_samples_build/`
|
||||
> **NOTE**: If you run the Image Classification verification script during the installation, the C++ samples build directory is created in your home directory: `~/openvino_cpp_samples_build/`
|
||||
|
||||
2. Go to the created directory:
|
||||
```sh
|
||||
@@ -149,11 +149,11 @@ build_samples_msvc.bat
|
||||
By default, the script automatically detects the highest Microsoft Visual Studio version installed on the machine and uses it to create and build a solution for a sample code
|
||||
|
||||
Once the build is completed, you can find sample binaries in the following folders:
|
||||
* C samples: `C:\Users\<user>\Documents\Intel\OpenVINO\inference_engine_c_samples_build\intel64\Release`
|
||||
* C++ samples: `C:\Users\<user>\Documents\Intel\OpenVINO\inference_engine_cpp_samples_build\intel64\Release`
|
||||
* C samples: `C:\Users\<user>\Documents\Intel\OpenVINO\openvino_c_samples_build\intel64\Release`
|
||||
* C++ samples: `C:\Users\<user>\Documents\Intel\OpenVINO\openvino_cpp_samples_build\intel64\Release`
|
||||
|
||||
You can also build a generated solution manually. For example, if you want to build C++ sample binaries in Debug configuration, run the appropriate version of the
|
||||
Microsoft Visual Studio and open the generated solution file from the `C:\Users\<user>\Documents\Intel\OpenVINO\inference_engine_cpp_samples_build\Samples.sln`
|
||||
Microsoft Visual Studio and open the generated solution file from the `C:\Users\<user>\Documents\Intel\OpenVINO\openvino_cpp_samples_build\Samples.sln`
|
||||
directory.
|
||||
|
||||
### <a name="build_samples_macos"></a>Build the Sample Applications on macOS*
|
||||
@@ -172,8 +172,8 @@ build_samples.sh
|
||||
```
|
||||
|
||||
Once the build is completed, you can find sample binaries in the following folders:
|
||||
* C samples: `~/inference_engine_c_samples_build/intel64/Release`
|
||||
* C++ samples: `~/inference_engine_cpp_samples_build/intel64/Release`
|
||||
* C samples: `~/openvino_c_samples_build/intel64/Release`
|
||||
* C++ samples: `~/openvino_cpp_samples_build/intel64/Release`
|
||||
|
||||
You can also build the sample applications manually:
|
||||
|
||||
@@ -189,7 +189,7 @@ source setupvars.sh
|
||||
```sh
|
||||
mkdir build
|
||||
```
|
||||
> **NOTE**: If you ran the Image Classification verification script during the installation, the C++ samples build directory was already created in your home directory: `~/inference_engine_cpp_samples_build/`
|
||||
> **NOTE**: If you ran the Image Classification verification script during the installation, the C++ samples build directory was already created in your home directory: `~/openvino_cpp_samples_build/`
|
||||
|
||||
2. Go to the created directory:
|
||||
```sh
|
||||
|
||||
@@ -333,19 +333,19 @@ To run the **Image Classification** code sample with an input image using the IR
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
cd ~/inference_engine_cpp_samples_build/intel64/Release
|
||||
cd ~/openvino_cpp_samples_build/intel64/Release
|
||||
|
||||
.. tab:: Windows
|
||||
|
||||
.. code-block:: bat
|
||||
|
||||
cd %USERPROFILE%\Documents\Intel\OpenVINO\inference_engine_samples_build\intel64\Release
|
||||
cd %USERPROFILE%\Documents\Intel\OpenVINO\openvino_samples_build\intel64\Release
|
||||
|
||||
.. tab:: macOS
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
cd ~/inference_engine_cpp_samples_build/intel64/Release
|
||||
cd ~/openvino_cpp_samples_build/intel64/Release
|
||||
|
||||
@endsphinxdirective
|
||||
|
||||
|
||||
Reference in New Issue
Block a user