Skip to content

Commit fdb1ccf

Browse files
mayavijxMaajidKhan
authored andcommitted
Updated README
1 parent 9b26cdd commit fdb1ccf

File tree

1 file changed

+12
-12
lines changed
  • c_cxx/OpenVINO_EP/Linux/squeezenet_classification

1 file changed

+12
-12
lines changed

c_cxx/OpenVINO_EP/Linux/squeezenet_classification/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ The source code for this sample is available [here](https://github.com/microsoft
1010

1111
## Prerequisites
1212
1. [The Intel<sup>®</sup> Distribution of OpenVINO toolkit](https://docs.openvinotoolkit.org/latest/index.html)
13-
1413
2. Use opencv (use the same opencv package that comes builtin with Intel<sup>®</sup> Distribution of OpenVINO toolkit)
15-
3. Use any sample image as input to the sample.
16-
4. Download the latest Squeezenet model from the ONNX Model Zoo.
14+
3. Use opencl for IO buffer sample (squeezenet_cpp_app_io.cpp).
15+
4. Use any sample image as input to the sample.
16+
5. Download the latest Squeezenet model from the ONNX Model Zoo.
1717
This example was adapted from [ONNX Model Zoo](https://github.com/onnx/models).Download the latest version of the [Squeezenet](https://github.com/onnx/models/tree/master/vision/classification/squeezenet) model from here.
1818

1919

@@ -49,15 +49,15 @@ export OPENCL_INCS=path/to/your/directory/openvino/thirdparty/ocl/clhpp_headers/
4949
Note: This build command is using the opencv location from OpenVINO 2021.4.1 Release Installation. You can use any version of OpenVINO and change the location path accordingly.
5050
5151
- For the sample using IO Buffer Optimization feature
52-
Set the OpenCL lib and headers path. For example if you are setting the path from openvino source build folder, the paths will be like:
53-
```
54-
export OPENCL_LIBS=path/to/your/directory/openvino/bin/intel64/Debug/lib/
55-
export OPENCL_INCS=path/to/your/directory/openvino/thirdparty/ocl/clhpp_headers/include/
56-
```
57-
Now based on tghe above path, compile command will be:
58-
```
59-
g++ -o run_squeezenet_io squeezenet_cpp_app_io.cpp -I ../../../include/onnxruntime/core/session/ -I $OPENCL_INCS -I $OPENCL_INCS/../../cl_headers/ -I /opt/intel/openvino_2021.4.752/opencv/include/ -I /opt/intel/openvino_2021.4.752/opencv/lib/ -L ./ -lonnxruntime_providers_openvino -lonnxruntime_providers_shared -lonnxruntime -L /opt/intel/openvino_2021.4.752/opencv/lib/ -lopencv_imgcodecs -lopencv_dnn -lopencv_core -lopencv_imgproc -L $OPENCL_LIBS -lOpenCL
60-
```
52+
Set the OpenCL lib and headers path. For example if you are setting the path from openvino source build folder, the paths will be like:
53+
```
54+
export OPENCL_LIBS=path/to/your/directory/openvino/bin/intel64/Debug/lib/
55+
export OPENCL_INCS=path/to/your/directory/openvino/thirdparty/ocl/clhpp_headers/include/
56+
```
57+
Now based on the above path, compile command will be:
58+
```
59+
g++ -o run_squeezenet squeezenet_cpp_app_io.cpp -I ../../../include/onnxruntime/core/session/ -I $OPENCL_INCS -I $OPENCL_INCS/../../cl_headers/ -I /opt/intel/openvino_2021.4.752/opencv/include/ -I /opt/intel/openvino_2021.4.752/opencv/lib/ -L ./ -lonnxruntime_providers_openvino -lonnxruntime_providers_shared -lonnxruntime -L /opt/intel/openvino_2021.4.752/opencv/lib/ -lopencv_imgcodecs -lopencv_dnn -lopencv_core -lopencv_imgproc -L $OPENCL_LIBS -lOpenCL
60+
```
6161
6262
4. Run the sample
6363

0 commit comments

Comments
 (0)