occlum/demos/openvino
LI Qing f9df83f559 Fix the demo's compiling failure in some cases
Some demos based on CMake may search installed packages out of
Occlum toolchain's directory, this could cause some building
errors sometimes. By setting the $PKG_CONFIG_LIBDIR, we can make
CMake searching for packages in Occlum toolchain's directory only.
2020-04-15 14:14:00 +08:00
..
.gitignore Add Intel OpenVINO demo 2019-12-10 06:07:27 +00:00
0001-Fix-passing-pre-increment-parameter-cpu-to-CPU_ISSET.patch Fix incompatibility between OpenVino with musl libc 2020-03-21 08:52:37 +00:00
download_and_build_openvino.sh Fix the demo's compiling failure in some cases 2020-04-15 14:14:00 +08:00
download_openvino_model.sh Add Intel OpenVINO demo 2019-12-10 06:07:27 +00:00
install_cmake.sh Fix the demo's compiling failure in some cases 2020-04-15 14:14:00 +08:00
README.md Add Intel OpenVINO demo 2019-12-10 06:07:27 +00:00
run_benchmark_on_occlum.sh Fix incompatibility between OpenVino with musl libc 2020-03-21 08:52:37 +00:00

Use OpenVINO Inference Engine in SGX with Occlum

This project demonstrates how Occlum enables OpenVINO in SGX enclaves.

Step 1: Install CMake(3.15.5), because OpenVINO depends on a newer version of CMake

./install_cmake.sh

Step 2: Download OpenVINO and build the Inference Engine, it will also download and install OpenCV

./download_and_build_openvino.sh

When completed, the resulting OpenVINO can be found in openvino_src directory. Threading Building Blocks (TBB) is used by default. To use OpenMP, add option --threading OMP when invoking the script above.

Step 3: Download the example of OpenVINO models from 01.org

./download_openvino_model.sh

Step 4: Run OpenVINO Inference Engine benchmark app inside SGX enclave with Occlum

./run_benchmark_on_occlum.sh

Step 5 (Optional): Run OpenVINO Inference Engine benchmark app in Linux

./openvino_src/inference-engine/bin/intel64/Release/benchmark_app -m ./model/age-gender-recognition-retail-0013.xml