occlum/demos/openvino
2021-01-20 12:42:00 +08:00
..
.gitignore Rename "occlum_context" to "occlum_instance" for demos 2020-08-15 19:12:39 +08: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 Install zlib in occlum-gcc toolchians 2020-07-17 17:31:41 +00: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 Add ProcFS 2021-01-20 12:42:00 +08: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