Created
November 8, 2016 19:30
-
-
Save spicavigo/630bfb8f225360b024ac746e103670e2 to your computer and use it in GitHub Desktop.
Commands to install deps for CNN
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install -y build-essential cmake git unzip pkg-config libopenblas-dev liblapack-dev linux-image-generic linux-image-extra-virtual linux-source linux-headers-generic | |
sudo apt-get install | |
sudo apt-get install | |
sudo apt-get install | |
sudo nano /etc/modprobe.d/blacklist-nouveau.conf | |
blacklist nouveau | |
blacklist lbm-nouveau | |
options nouveau modeset=0 | |
alias nouveau off | |
alias lbm-nouveau off | |
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf | |
sudo update-initramfs -u | |
sudo reboot | |
wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run | |
chmod +x cuda_7.5.18_linux.run | |
mkdir installers | |
sudo ./cuda_7.5.18_linux.run -extract=`pwd`/installers | |
cd installers | |
sudo ./NVIDIA-Linux-x86_64-352.39.run | |
modprobe nvidia | |
sudo ./cuda-linux64-rel-7.5.18-19867135.run | |
sudo ./cuda-samples-linux-7.5.18-19867135.run | |
vi ~/.bashrc | |
# CUDA Toolkit | |
export CUDA_HOME=/usr/local/cuda-7.5 | |
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH | |
export PATH=${CUDA_HOME}/bin:${PATH} | |
source ~/.bashrc | |
scp -i ~/Downloads/yousufsdc.pem ~/Downloads/cudnn-7.5-linux-x64-v5.1.tgz [email protected]:~/ | |
cd ~ | |
tar -zxf cudnn-7.5-linux-x64-v5.0-ga.tgz | |
cd cuda | |
sudo cp lib64/* /usr/local/cuda/lib64/ | |
sudo cp include/* /usr/local/cuda/include/ | |
cd ~ | |
rm -rf cuda installers | |
rm -f cuda_7.5.18_linux.run cudnn-7.5-linux-x64-v5.0-ga.tgz | |
sudo apt-get install -y build-essential cmake git pkg-config python-dev python-numpy python-scipy libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libatlas-base-dev gfortran | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py | |
cd ~ | |
git clone https://github.com/Itseez/opencv.git | |
cd opencv | |
git checkout 3.0.0 | |
cd ~ | |
git clone https://github.com/Itseez/opencv_contrib.git | |
cd opencv_contrib | |
git checkout 3.0.0 | |
cd ~/opencv | |
mkdir build | |
cd build | |
cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D INSTALL_C_EXAMPLES=ON \ | |
-D INSTALL_PYTHON_EXAMPLES=ON \ | |
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ | |
-D BUILD_EXAMPLES=ON .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment