CaffeOnSpark in Ubuntu 15.04
check nvidia:
lspci | grep -i nvidia
check gcc:
gcc --version
install cuda:
apt-get install build-essential
ll /etc/X11/xorg.conf
cd /etc/X11
mv xorg.conf xorg.conf.bak
vim /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau option nouveau modeset=0
update-initramfs -u
Ctrl + Alt + F1 to tty
service lightdm stop
./cuda_7.5.18_linux.run --no-opengl-libs
modprobe nvidia
ll /dev/nvidia*
service lightdm start
vim /etc/ld.so.conf.d/cuda.conf
/usr/local/cuda/lib64
/lib
ldconfig -v
vim /etc/profile
export PATH=/usr/local/cuda-7.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH
source /etc/profile
check:
cat /proc/driver/nvidia/version
nvcc -V
service lightdm start
Ctrl+Alt+F7
Go to NVIDIA_CUDA-7.5_Samples folder through terminal:
make
cd bin/x86_64/linux/release/
./deviceQuery
./bandwidthTest
reboot
prepare :
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev
sudo apt-get install --no-install-recommends libboost-all-dev build-essential libtool autoconf
note:
protobuf-compiler is not in the list.
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
gedit /etc/ld.so.conf.d/intel_mkl.conf
/opt/intel/lib/intel64
/opt/intel/mkl/lib/intel64
ldconfig -v
OpenCV
3.0.0 install:
sh
Ubuntu/dependencies.sh
sh
opencv3_0_0.sh
glog install:
tar zxvf glog-0.3.3.tar.gz
./configure
make
sudo make install
install dependences:
apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler protobuf-c-compiler protobuf-compiler
apt-get install -y python-numpy python-scipy python-matplotlib python-sklearn python-skimage python-h5py python-protobuf python-leveldb python-networkx python-nose python-pandas python-gflags Cython ipython
install nVidia cuDNN:
cp include/cudnn.h /usr/local/include
cp lib64/libcudnn.* /usr/local/lib
make link:
ln -sf /usr/local/lib/libcudnn.so.4.0.7 /usr/local/lib/libcudnn.so.4
ln -sf /usr/local/lib/libcudnn.so.4 /usr/local/lib/libcudnn.so
ldconfig -v
prepare caffe:
cp Makefile.config.example Makefile.config
example like this:
vim caffe-public/Makefile.config
USE_CUDNN := 1
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/lib/x86_64-linux-gnu/hdf5/serial/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
BLAS := mklPYTHON_LIB := /usr/local/lib
OPENCV_VERSION
=3
vim caffe-public/Makefile
at line 198:
# LIBRARIES += opencv_imgcodecs
vim caffe-distri/Makefile
at line 128:
# LIBRARIES += opencv_imgcodecs
install protobuf 2.5.0
cd protobuf-2.5.0
./autogen.sh
./configure
make
make check
make install
ldconfig
protoc --version
make -j8 ALL
http://ouxinyu.github.io/Blogs/20151108001.html
http://caffe.berkeleyvision.org/install_apt.html
相關文章
- 如何在 Ubuntu 15.04 中安裝 puppetUbuntu
- 在Ubuntu 15.04中安裝Ruby on RailsUbuntuAI
- 不是橙色,Ubuntu 15.04預設桌布釋出Ubuntu
- Caffe + Ubuntu 15.04 + CUDA 7.0 安裝以及配置Ubuntu
- 在Ubuntu 15.04下安裝Android StudioUbuntuAndroid
- 如何在 Ubuntu 15.04 中安裝 nginx 和 google pagespeedUbuntuNginxGo
- 如何在 Ubuntu 15.04 系統中安裝 LogwatchUbuntu
- 如何在 Ubuntu 15.04 / CentOS 7 上安裝 Android StudioUbuntuCentOSAndroid
- CentOS 7 / Ubuntu 15.04 上安裝 PHP Laravel 過程詳解CentOSUbuntuPHPLaravel
- 在 Ubuntu 15.04 上配置 OpenVPN 伺服器和客戶端Ubuntu伺服器客戶端
- [重灌系統系列]fcitx 小企鵝輸入法 安裝 in ubuntu 15.04Ubuntu
- Ubuntu 15.04編譯Android 6.0.1原始碼-Nexus5真機編譯Ubuntu編譯Android原始碼
- CVE-2015-1328 Ubuntu 12.04, 14.04, 14.10, 15.04 overlayfs Local RootUbuntu
- Linux有問必答:如何在 Ubuntu 15.04 的 GNOME 終端中開啟多個標籤LinuxUbuntu
- 在 Kubuntu 15.04 中升級 KDE Plasma 5.3UbuntuASM
- 【Ubuntu】Ubuntu 24 配置映象源Ubuntu
- UbuntuUbuntu
- 【Ubuntu】在Ubuntu上安裝微信Ubuntu
- ubuntu 安裝 Microsoft To-Do (unofficial) on UbuntuUbuntuROS
- ubuntu 開啟/關閉ubuntu防火牆Ubuntu防火牆
- ubuntu java .............UbuntuJava
- Ubuntu 配置Ubuntu
- Ubuntu 映象Ubuntu
- swarm on ubuntuSwarmUbuntu
- Ubuntu命令Ubuntu
- Ubuntu baseUbuntu
- 【Ubuntu】Ubuntu常用的更新、清理命令指令碼Ubuntu指令碼
- 【上海站】Ubuntu手機駭客松 - Celebrate UbuntuUbuntu
- ubuntu:舊版本配置apt源(ubuntu 21.10)UbuntuAPT
- Ubuntu 17.04 (Zesty Zapus)/Ubuntu 16.04.2 LTS (Xenial Xerus)Ubuntu
- 在 Ubuntu 14.04 上安裝 Ubuntu Tweak 0.8.8Ubuntu
- Ubuntu Linux:定製Ubuntu安裝CD(轉)UbuntuLinux
- Ubuntu修改hostsUbuntu
- ubuntu 修改源Ubuntu
- enjoy TIM on UbuntuUbuntu
- 優化 Ubuntu優化Ubuntu
- Ubuntu小配置Ubuntu
- ubuntu換源Ubuntu