From d8825eaba7d83095a5e67a5673ea9fa09255ed15 Mon Sep 17 00:00:00 2001 From: yuanjiajia <1139393632@qq.com> Date: Mon, 30 May 2022 23:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9CPU=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E7=9A=84=E6=A3=80=E6=9F=A5=E5=8A=9F=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E6=98=AF=E8=8B=B1=E7=89=B9=E5=B0=94=E7=B3=BB=E5=88=97?= =?UTF-8?q?CPU=EF=BC=8C=E5=88=99=E5=AE=89=E8=A3=85=20libOpenCL.so=20?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- first_run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/first_run.sh b/first_run.sh index ea5f3ab..c30ae99 100755 --- a/first_run.sh +++ b/first_run.sh @@ -35,6 +35,13 @@ echo -e "\n\n[ libtool-bin cmake flex bison libgtk-3-dev libgl1-mesa-dev python3 read sudo apt update 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 $BOUNDARYEND