Created
November 1, 2016 12:03
-
-
Save aranajhonny/62cb2bb190abeba72020fb7d830b9da5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pre-requisitos | |
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 | |
sudo apt-get install -y python-pip | |
sudo apt-get install -y python-dev | |
sudo apt-get install -y python-numpy python-scipy | |
sudo apt-get install -y libopencv-dev | |
// cuda | |
sudo dpkg -i cuda-repo-ubuntu1604-8-0-rc_8.0.27-1_amd64.deb | |
sudo apt-get update | |
sudo apt-get install cuda | |
sudo apt-get install cuda-drivers | |
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc | |
#restart terminal | |
cd /usr/local/cuda-8.0/samples/ | |
#open with software install 'cuda-misc-headers-8-0_8.0.27.1-1_amd64.deb' (Patch 1 from cuda toolkit page) | |
sudo make all -j8 | |
//cudnn | |
mkdir ~/code | |
cd ~/code | |
tar -xzvf cudnn-8.0-linux-x64-v5.1.tgz | |
cd cuda/lib64/ | |
sudo cp lib* /usr/local/cuda-8.0/lib64/ | |
cd cuda/include/ | |
sudo cp cudnn.h /usr/local/cuda-8.0/include/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment