Browse Source

增加对CPU平台的检查功,如果是英特尔系列CPU,则安装 libOpenCL.so 库

master
yuanjiajia 3 years ago
parent
commit
d8825eaba7
  1. 7
      first_run.sh

7
first_run.sh

@ -35,6 +35,13 @@ echo -e "\n\n[ libtool-bin cmake flex bison libgtk-3-dev libgl1-mesa-dev python3
read read
sudo apt update sudo apt update
sudo apt install -y libtool-bin cmake flex bison libgtk-3-dev libgl1-mesa-dev python3-dev python3-numpy git patchelf sudo apt install -y libtool-bin cmake flex bison libgtk-3-dev libgl1-mesa-dev python3-dev python3-numpy git patchelf
echo -e "\n\n正在检查 CPU 平台 ……\n"
sleep 1
CPU=`cat /proc/cpuinfo | grep "model name"`
echo -e "$CPU\n\n"
if [ `echo $CPU | grep "Intel(R)"` ] ; then
sudo sudo apt install ocl-icd-opencl-dev
fi
echo -e "\n\n已经安装完成 运行脚本需要的工具 ……\n" echo -e "\n\n已经安装完成 运行脚本需要的工具 ……\n"
echo $BOUNDARYEND echo $BOUNDARYEND

Loading…
Cancel
Save