Skip to content

Commit

Permalink
Update caffe-riscv64.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
6eanut authored Jul 11, 2024
1 parent 3cb0e36 commit d6cce71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 24-07/caffe/shell/caffe-riscv64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e # 在遇到非零返回值时立即退出

echo "step1: 安装依赖包"
sudo dnf install -y leveldb-devel snappy-devel opencv.riscv64 boost-devel hdf5-devel gflags-devel glog-devel lmdb-devel openblas.riscv64
sudo dnf install -y leveldb-devel snappy-devel opencv.riscv64 boost-devel hdf5-devel gflags-devel glog-devel lmdb-devel openblas.riscv64 protobuf-devel.riscv64
sudo dnf install -y git wget tar gcc-c++ unzip automake libtool autoconf

echo "step2: 编译caffe"
Expand Down Expand Up @@ -33,4 +33,4 @@ echo "# caffe" >> ~/.bashrc
echo "export CAFFE=$CAFFE" >> ~/.bashrc
echo "export PATH=$PATH" >> ~/.bashrc
source ~/.bashrc
caffe --version || { echo "Caffe build failed"; exit 1; }
caffe --version || { echo "Caffe build failed"; exit 1; }

0 comments on commit d6cce71

Please sign in to comment.