Set up Caffe on Ubuntu14.04 64bit+NVIDIA GTX970M+CUDA7.0
来源:互联网 发布:零用钱软件赚钱靠谱吗 编辑:程序博客网 时间:2024/05/18 03:58
Install OpenBLAS
- download source code from OpenBLAS official website and extract the archive
- (optional) install gfortran by
sudo apt-get install gfortran
- change directory to the position of extracted folder the and compile
make FC=gfortran
- install by
make PREFIX=/your/path install
- add paths to envrionment:
PATH=/your/path/to/openblas/include:$PATH
andLD_LIBRARY_PATH=/your/path/to/openblas/lib:$LD_LIBRARY_PATH
and export the pathes.
Install Anaconda
- download the script from http://continuum.io/downloads
- change mode
sudo chmod +x Anaconda*.sh
- execute the installer by
bash Anaconda*.sh
in ~/.bashrc add
LD_LIBRARY_PATH=your_anaconda_path/lib:$LD_LIBRARY_PATHexport LD_LIBRARY_PATH
NEVER put it in /etc !!! Otherwise, one may in danger of unable to get into GUI.
config HDF5 version
cd /usr/lib/x86_64-linux-gnusudo ln -s libhdf5.so.7 libhdf5.so.10sudo ln -s libhdf5_hl.so.7 libhdf5_hl.so.10sudo ldconfig
Install OpenCV
One can conveniently install OpenCV by run a shell script from a Github repository
- download the script. For me, I use OpenCV 2.4.10.
- change mode of the shell
sudo chmod +x opencv2_4_10.sh
- run the script
sudo ./opencv2_4_10.sh
. Note that one may need to modify the cmake settings, such as eliminating QT.
Install a Set of Dpendencies
Following the guideline in Caffe, we can set up the dependencies by commond sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler
Compile Caffe
- get Caffe from github
git clone https://github.com/BVLC/caffe.git
- edit Makefile.config to set correct paths. Firstly create Makefile.config by
cp Makefile.config.example Makefile.config
. Then modify several paths. For me, I set blas to openblas and set blas path to /opt/OpenBLAS/include and /opt/OpenBLAS/lib where I install OpenBLAS; Python is set to Anaconda as well as its paths. - compile Caffe by
make -j
andmake pycaffe
- In addition, so far Caffe should be able to be compiled without any problem. However, when running exampls such as MNIST, some libs might be missing. My solution is to add libraries to the system library cache. For example, create a file called cuda.conf in /etc/ld.so.conf.d/ and add the path “/usr/local/cuda-7.0/lib64” to this file.
0 0
- Set up Caffe on Ubuntu14.04 64bit+NVIDIA GTX970M+CUDA7.0
- Caffe + Ubuntu14.04 64bit(位)+ Cuda6.5/Cuda7.0 安装配置教程
- ubuntu14.04+cuda7.5+caffe
- Ubuntu14.04 NVIDIA显卡驱动安装 + Cuda7.5 + cudnn6.0
- Caffe安装:Ubuntu14.04+caffe+cuda7.0+cudnnv3.0
- Ubuntu14.04 + Nvidia Cuda8.0 + Caffe
- Ubuntu14.04 + Nvidia Cuda8.0 + Caffe
- 这段折腾 caffe 的日子……(Ubuntu14.04 + Nvidia Driver + CUDA7.5 + cuDNN v2.0/ v4.0/ v5.1 + caffe)
- Ubuntu14.04+CUDA7.0+Opencv3.0+Caffe 配置
- cuda7.0 + caffe + ubuntu14.04(笔记本) 配置过程
- caffe+cuda7.0+opencv3.0.0+mkl ubuntu14.04配置
- 在Ubuntu14.04下编译caffe + cuda7.0
- Ubuntu14.04 CuDNN安装(Caffe + Cuda7.0下)
- Ubuntu14.04+CUDA7.5+opencv3.0+MKL+Caffe配置
- caffe+cuda7.0+opencv3.0.0+mkl ubuntu14.04配置
- Ubuntu14.04+CUDA7.0+Anaconda2+Cudnn+caffe安装配置
- ubuntu14.04+cuda7.5+opencv3.0+cudnn+caffe
- Ubuntu14.04(64位)+Cuda7.5+Cudnn7.0+Caffe+Matlab(Linux版)
- XML的优势及应用领域
- HDU 5423 Rikka with Tree(水题)
- Android网络编程之使用post方式提交数据
- 遍历ArrayList删除指定元素
- TreeSet
- Set up Caffe on Ubuntu14.04 64bit+NVIDIA GTX970M+CUDA7.0
- Generate Parentheses
- Autoit3 安装
- 图的割点
- 从图片数据获取高度宽度
- 平台总线驱动设计
- apache kafka技术分享系列(目录索引)
- 在Ubuntu中安装Eclipse与创建桌面快捷方式
- 关于windows7开机黑屏的解决办法