Browse Source

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

master
yuanjiajia 3 years ago
parent
commit
e47d9d31ec
  1. 2
      first_run.sh

2
first_run.sh

@ -40,7 +40,7 @@ sleep 1
CPU=`cat /proc/cpuinfo | grep "model name"` CPU=`cat /proc/cpuinfo | grep "model name"`
echo -e "$CPU\n\n" echo -e "$CPU\n\n"
if [ `echo $CPU | grep "Intel(R)"` ] ; then if [ `echo $CPU | grep "Intel(R)"` ] ; then
sudo sudo apt install ocl-icd-opencl-dev
sudo apt install ocl-icd-opencl-dev
fi fi
echo -e "\n\n已经安装完成 运行脚本需要的工具 ……\n" echo -e "\n\n已经安装完成 运行脚本需要的工具 ……\n"
echo $BOUNDARYEND echo $BOUNDARYEND

Loading…
Cancel
Save