You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
953 B
Bash
35 lines
953 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright (C) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
set -e
|
|
|
|
if [[ `lscpu | grep -o "GenuineIntel"` != "GenuineIntel" ]]; then
|
|
echo "OpenVINO supports only Intel CPUs"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ `lscpu | grep -o "sse4" | head -1` != "sse4" ]] && [[ `lscpu | grep -o "avx2" | head -1` != "avx2" ]]; then
|
|
echo "OpenVINO expects your CPU to support SSE4 or AVX2 instructions"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
cd /tmp/components/openvino
|
|
|
|
tar -xzf `ls | grep "openvino_toolkit"`
|
|
cd `ls -d */ | grep "openvino_toolkit"`
|
|
|
|
apt-get update && apt-get install -y sudo cpio && \
|
|
./install_cv_sdk_dependencies.sh && SUDO_FORCE_REMOVE=yes apt-get remove -y sudo
|
|
|
|
cat ../eula.cfg >> silent.cfg
|
|
./install.sh -s silent.cfg
|
|
|
|
cd /tmp/components && rm openvino -r
|
|
|
|
echo "source /opt/intel/computer_vision_sdk/bin/setupvars.sh" >> ${HOME}/.bashrc
|
|
echo -e '\nexport IE_PLUGINS_PATH=${IE_PLUGINS_PATH}' >> /opt/intel/computer_vision_sdk/bin/setupvars.sh
|