Skip to content

Instantly share code, notes, and snippets.

@krared
Created September 4, 2016 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krared/c033caee1bad307d124c9852ca49862a to your computer and use it in GitHub Desktop.
Save krared/c033caee1bad307d124c9852ca49862a to your computer and use it in GitHub Desktop.
ubuntu 16.04 gtx1080 caffe
#ubuntu 16.04 gtx1080 caffe
sudo apt-get install build-essential
./cuda_8.0.27_linux.run -extract=~/Downloads/nvidia_installers;
sudo ./cuda-linux64-rel-8.0.27-20733550.run
sudo ./cuda-samples-linux-8.0.27-20733550.run
test if the drivers are working by going to your sample directory
cd /usr/local/cuda/samples
# sudo chown -R <username>:<usergroup> .
cd 1_Utilities/deviceQuery
make .
./deviceQuery
lsmod | grep nv
export PATH=/usr/local/cuda-8.0/bin:$PATH
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install libatlas-base-dev
cp cuda/include/cudnn.h /usr/local/cuda/include
cp -R cuda/lib64 /usr/local/cuda/lib64
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y build-essential cmake git pkg-config
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install -y libatlas-base-dev
sudo apt-get install -y --no-install-recommends libboost-all-dev
sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
# (Python general)
sudo apt-get install -y python-pip
# (Python 2.7 development files)
sudo apt-get install -y python-dev
sudo apt-get install -y python-numpy python-scipy
# (or, Python 3.5 development files)
#sudo apt-get install -y python3-dev
#sudo apt-get install -y python3-numpy python3-scipy
# (OpenCV 2.4)
#
#
find . -type f -exec sed -i -e 's^"hdf5.h"^"hdf5/serial/hdf5.h"^g' -e 's^"hdf5_hl.h"^"hdf5/serial/hdf5_hl.h"^g' '{}' \;
cd /usr/lib/x86_64-linux-gnu
sudo ln -s libhdf5_serial.so.10.1.0 libhdf5.so
sudo ln -s libhdf5_serial_hl.so.10.0.2 libhdf5_hl.so
sudo apt-get install autoconf automake libtool curl make g++ unzip
sudo apt install autoconf
git clone https://github.com/google/protobuf.git
export CAFFE_ROOT=/home/{username}/caffe
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
sudo ldconfig /usr/local/cuda/lib64
sudo apt-get install ipython-notebook
# http://guanghan.info/blog/en/my-works/building-our-personal-deep-learning-rig-gtx-1080-ubuntu-16-04-cuda-8-0rc-cudnn-7-tensorflowmxnetcaffedarknet/
# https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-Installation-Guide
# https://github.com/BVLC/caffe/wiki/GeForce-GTX-1080,---CUDA-8.0,---Ubuntu-16.04,---Caffe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment