NOTE: Since 2023.0 release, you can compile OpenVINO Intel CPU plugin on ARM platforms.
-
Raspberry Pi with Raspbian Stretch OS or Raspberry Pi OS (32 or 64-bit).
NOTE: Despite the Raspberry Pi CPU is ARMv8, 32-bit OS detects ARMv7 CPU instruction set. The default
gcc
compiler applies ARMv6 architecture flag for compatibility with lower versions of boards. For more information, run thegcc -Q --help=target
command and refer to the description of the-march=
option.
You can perform native compilation of the OpenVINO Runtime for Raspberry Pi, which is the most straightforward solution. However, it might take at least one hour to complete on Raspberry Pi 3.
- Install dependencies:
sudo apt-get update
sudo apt-get install -y git cmake scons build-essential
- Clone the repository:
git clone --recurse-submodules --single-branch --branch=master https://github.com/openvinotoolkit/openvino.git
- Go to the cloned
openvino
repository:
cd openvino/
- Create a build folder:
mkdir build && cd build/
- Build the OpenVINO Runtime:
cmake -DCMAKE_BUILD_TYPE=Release \
-DARM_COMPUTE_SCONS_JOBS=$(nproc --all) \
.. && cmake --build . --parallel
NOTE: The build command may fail due to insufficient RAM. To fix this issue, you can increase the swap size:
- Deactivate the current swap:
sudo dphys-swapfile swapoff
- Modify the swap size by setting
CONF_SWAPSIZE=8192
in/etc/dphys-swapfile
. - Recreate the swap file:
sudo dphys-swapfile setup
- Start swap:
sudo dphys-swapfile swapon
- To build Python API, install
libpython3-dev:armhf
andpython3-pip
packages usingapt-get
; add the following options:-DENABLE_PYTHON=ON \ -DPython3_EXECUTABLE=/usr/bin/python3.8