CPU 基本信息 最好支持 avx512 指令集
# 查看物理CPU个数
cpu_count=$(cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l)
echo "物理CPU个数: "$cpu_count
# 查看每个物理CPU中core的个数(即核数)
cpu_cores=$(cat /proc/cpuinfo| grep "cpu cores"| uniq)
echo "物理CPU中core的个数 "$cpu_cores
# 查看逻辑CPU的个数
cpu_logic=$(cat /proc/cpuinfo| grep "processor"| wc -l)
echo "逻辑CPU的个数: "$cpu_logic
cpu_avx512=$(cat /proc/cpuinfo | grep "avx512" | wc -l)
echo "avx512 指令集 CPU的个数: "$cpu_avx512
# 查看CPU信息(型号)
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
# 查看内 存信息
# cat /proc/meminfo
安装配置 zsh & oh-my-zsh
$ sudo apt-get install -y zsh
$ sudo apt-get install -y git
$ wget "https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh"
$ sh install.sh -O -
$ chsh -s /bin/zsh sijiu.duan
$ vi ~/.zshrc
# 设置不同样式
#ZSH_THEME="robbyrussell"
#ZSH_THEME="bira"
#ZSH_THEME="amuse"
#ZSH_THEME="frisk"
#ZSH_THEME="agnoster"
ZSH_THEME="bureau"
安装OpenVINO
Download and Install OpenVINO
https://software.intel.com/en-us/openvino-toolkit/choose-download/free-download-linux
Install External Software Dependencies
Manual install Dependencies
- CMake 2.4 or higher
# sudo su
# apt-get install cmake
- Intel® Graphics Compute Runtime for OpenCL™ Driver
OpenCL™ Runtimes for Intel® Processors
https://software.intel.com/en-us/articles/opencl-drivers#proc-graph-section
a. Create temporary directory
# mkdir neo
b. Download all *.deb packages
# cd neo
# wget https://github.com/intel/compute-runtime/releases/download/19.36.14103/intel-gmmlib_19.2.3_amd64.deb
# wget https://github.com/intel/compute-runtime/releases/download/19.36.14103/intel-igc-core_1.0.11-2500_amd64.deb
# wget https://github.com/intel/compute-runtime/releases/download/19.36.14103/intel-igc-opencl_1.0.11-2500_amd64.deb
# wget https://github.com/intel/compute-runtime/releases/download/19.36.14103/intel-opencl_19.36.14103_amd64.deb
# wget https://github.com/intel/compute-runtime/releases/download/19.36.14103/intel-ocloc_19.36.14103_amd64.deb
c. Verify sha256 sums for packages
# wget https://github.com/intel/compute-runtime/releases/download/19.36.14103/ww36.sum
# sha256sum -c ww36.sum
d. Install all packages as root
# sudo dpkg -i *.deb
- Install the following libraries or packages required for Intel-optimized OpenCV,
the Inference Engine, and the Model Optimizer tools: - libcairo2-dev- libpango1.0-dev
- libglib2.0-dev
- libgtk2.0-dev
- libgstreamer1.0-0
- libswscale-dev
- libavcodec-dev
- libavformat-dev
- gstreamer1.0-plugins-base
# apt-get install libpango1.0-dev
# apt-get install libglib2.0-dev
# apt-get install libgtk2.0-dev
# apt-get install libgstreamer1.0-0
# apt-get install libswscale-dev
# apt-get install libavcodec-dev
# apt-get install libavformat-dev
# apt-get install gstreamer1.0-plugins-base
Other Dependents
# cd /opt/intel/openvino/install_dependencies
# sudo -E ./install_openvino_dependencies.sh
Set the Environment Variables
Add this line to the end of the file.
# vi ~/.bashrc
source /opt/intel/openvino/bin/setupvars.sh
Configure the Model Optimizer
- Go to the Model Optimizer prerequisites directory:
cd /opt/intel/openvino/deployment_tools/model_optimizer/install_prerequisites
- Run the script to configure the Model Optimizer for Caffe, TensorFlow, MXNet, Kaldi*, and ONNX:
sudo ./install_prerequisites.sh
Run the Verification Scripts to Verify Installation
- Go to the Inference Engine demo directory:
cd /opt/intel/openvino/deployment_tools/demo
- Run the Image Classification verification script:
./demo_squeezenet_download_convert_run.sh
- Run the Inference Pipeline verification script:
./demo_security_barrier_camera.sh
网友评论