wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUBsudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUBecho "deb https://apt.repos.intel.com/openvino ubuntu22 main" | sudo tee /etc/apt/sources.list.d/intel-openvino.listsudo apt updateapt-cache search openvinosudo apt install openvino-2025.1.0
Arm系统官方不支持直接安装openvino,需要手动构建:
export GIT_LFS_SKIP_SMUDGE=1git clone https://gitee.com/openvinotoolkit-prc/openvino.gitcd openvinogit checkout 2025.1.0
修改.gitmodule:
[submodule "src/plugins/intel_cpu/thirdparty/onednn"]path = src/plugins/intel_cpu/thirdparty/onednn#url = https://github.com/openvinotoolkit/oneDNN.giturl = https://gitee.com/openvinotoolkit-prc/oneDNN.gitignore = dirty[submodule "thirdparty/xbyak"]path = thirdparty/xbyak#url = https://github.com/herumi/xbyak.giturl = https://gitee.com/Vizl/xbyak.gitignore = dirty[submodule "thirdparty/zlib/zlib"]path = thirdparty/zlib/zliburl = https://github.com/madler/zlib.git#url = https://gitee.com/wu_baihui/zlib.gitignore = dirty[submodule "thirdparty/pugixml"]path = thirdparty/pugixml#url = https://github.com/zeux/pugixml.giturl = https://gitee.com/Vizl/pugixml.gitignore = dirty[submodule "thirdparty/gflags/gflags"]path = thirdparty/gflags/gflags#url = https://github.com/gflags/gflags.giturl = https://gitee.com/minhanghuang/gflags.gitignore = dirty[submodule "thirdparty/gtest/gtest"]path = thirdparty/gtest/gtesturl = https://github.com/openvinotoolkit/googletest.git#url = https://gitee.com/Vizl/googletest.git#url = https://gitee.com/pandeng2079/googletest.gitignore = dirty[submodule "thirdparty/ocl/icd_loader"]path = thirdparty/ocl/icd_loader#url = https://github.com/KhronosGroup/OpenCL-ICD-Loader.giturl = https://gitee.com/mirrors_KhronosGroup/OpenCL-ICD-Loader.gitignore = dirty[submodule "thirdparty/ocl/cl_headers"]path = thirdparty/ocl/cl_headers#url = https://github.com/KhronosGroup/OpenCL-Headers.giturl = https://gitee.com/mirrors_GerHobbelt/OpenCL-Headers.gitignore = dirty[submodule "thirdparty/ocl/clhpp_headers"]path = thirdparty/ocl/clhpp_headers#url = https://github.com/KhronosGroup/OpenCL-CLHPP.giturl = https://gitee.com/mirrors_GerHobbelt/OpenCL-CLHPP.gitignore = dirty[submodule "thirdparty/onnx"]path = thirdparty/onnx/onnx#url = https://github.com/onnx/onnx.giturl = https://gitee.com/shtoutman/onnx.git[submodule "thirdparty/protobuf"]path = thirdparty/protobuf/protobuf#url = https://github.com/protocolbuffers/protobuf.giturl = https://gitee.com/shtoutman/protobuf.git[submodule "src/bindings/python/thirdparty/pybind11"]path = src/bindings/python/thirdparty/pybind11#url = https://github.com/pybind/pybind11.git#url = https://gitee.com/yunfeiliu/pybind11.giturl = https://gitee.com/miao123456miao/pybind11.git[submodule "thirdparty/ittapi/ittapi"]path = thirdparty/ittapi/ittapi#url = https://github.com/intel/ittapi.giturl = https://gitee.com/Vizl/ittapi.git[submodule "ncc"]path = cmake/developer_package/ncc_naming_style/ncc#url = https://github.com/nithinn/ncc.giturl = https://gitee.com/Vizl/ncc.git[submodule "thirdparty/onednn_gpu"]path = src/plugins/intel_gpu/thirdparty/onednn_gpu#url = https://github.com/oneapi-src/oneDNN.git#url = https://gitee.com/openvinotoolkit-prc/oneDNN.git#url = https://gitee.com/cumt/onednn_gpu.giturl = https://gitee.com/Vizl/oneDNN_GPU.git[submodule "thirdparty/json/nlohmann_json"]path = thirdparty/json/nlohmann_json#url = https://github.com/nlohmann/json.giturl = https://gitee.com/shtoutman/json.gitshallow = true[submodule "thirdparty/flatbuffers/flatbuffers"]path = thirdparty/flatbuffers/flatbuffers#url = https://github.com/google/flatbuffers.giturl = https://gitee.com/shtoutman/flatbuffers.git[submodule "thirdparty/snappy"]path = thirdparty/snappy#url = https://github.com/google/snappy.giturl = https://gitee.com/Vizl/snappy.git[submodule "ARMComputeLibrary"]path = src/plugins/intel_cpu/thirdparty/ComputeLibrary#url = https://github.com/ARM-software/ComputeLibrary.giturl = https://gitee.com/Vizl/armcompute-library.gitignore = dirty[submodule "src/plugins/intel_cpu/thirdparty/mlas"]path = src/plugins/intel_cpu/thirdparty/mlas#url = https://github.com/openvinotoolkit/mlas.giturl = https://gitee.com/Vizl/mlas.git[submodule "thirdparty/level_zero/level-zero"]path = thirdparty/level_zero/level-zero#url = https://github.com/oneapi-src/level-zero.giturl = https://gitee.com/Vizl/level-zero.git[submodule "src/plugins/intel_npu/thirdparty/level-zero-ext"]path = src/plugins/intel_npu/thirdparty/level-zero-ext#url = https://github.com/intel/level-zero-npu-extensions.giturl = https://gitee.com/Vizl/level-zero-npu-extensions.git[submodule "src/plugins/intel_npu/thirdparty/yaml-cpp"]path = src/plugins/intel_npu/thirdparty/yaml-cpp#url = https://github.com/jbeder/yaml-cpp.giturl = https://gitee.com/Vizl/yaml-cpp.git[submodule "thirdparty/telemetry"]path = thirdparty/telemetry#url = https://github.com/openvinotoolkit/telemetry.giturl = https://gitee.com/Vizl/telemetry.git[submodule "src/plugins/intel_cpu/thirdparty/libxsmm"]path = src/plugins/intel_cpu/thirdparty/libxsmm#url = https://github.com/libxsmm/libxsmm.giturl = https://gitee.com/Vizl/libxsmm.git[submodule "src/plugins/intel_cpu/thirdparty/shl"]path = src/plugins/intel_cpu/thirdparty/shl#url = https://github.com/openvinotoolkit/shl.giturl = https://gitee.com/Vizl/shl.git[submodule "src/plugins/intel_cpu/thirdparty/kleidiai"]path = src/plugins/intel_cpu/thirdparty/kleidiai#url = https://github.com/ARM-software/kleidiai.giturl = https://gitee.com/mirrors_ARM-software/kleidiai.git[submodule "src/plugins/intel_cpu/thirdparty/xbyak_riscv"]path = src/plugins/intel_cpu/thirdparty/xbyak_riscvurl = https://github.com/herumi/xbyak_riscv.git
然后运行:
git submodule syncgit submodule update --init --recursive
sudo apt install -y build-essential cmake git python3 python3-pipsudo apt install -y libpython3-dev libboost-all-dev libgtk2.0-dev pkg-config \libavcodec-dev libavformat-dev libswscale-dev \libpng-dev libjpeg-dev libtiff-dev libopenblas-devsudo apt install -y sconspip3 install numpy cython
mkdir build && cd buildcmake -DCMAKE_BUILD_TYPE=Release \-DENABLE_PYTHON=ON \-DPYTHON_EXECUTABLE=$(which python3) \-DENABLE_CPPLINT=OFF \-DENABLE_NVIDIA=ON \-DENABLE_CUDA=ON \-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda \-DNVIDIA_GPU_ARCHS=87 \-DENABLE_TESTS=OFF \-DCMAKE_INSTALL_PREFIX=/opt/openvino \..make -j4sudo make install