Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (50 sloc) 1.77 KB
-- Get Ubuntu 16.04 ready
sudo apt-get update
sudo apt-get upgrade
-- Necessary packages for Coding
sudo apt-get install vim csh flex gfortran libgfortran3 g++ \
cmake xorg-dev patch zlib1g-dev libbz2-dev \
libboost-all-dev openssh-server libcairo2 \
libcairo2-dev libeigen3-dev lsb-core \
lsb-base net-tools network-manager \
git-core git-gui git-doc xclip gdebi-core
--Install Nvidia Drivers
sudo apt-get purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-390
--CUDA installation:
chmod +x cuda_9.0.176_384.81_linux.run
sudo ./cuda_9.0.176_384.81_linux.run
--Check CUDA installation:
nvcc -V
--should output the version of CUDA version
--Map the CUDA patch:
echo 'export PATH=/usr/local/cuda/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH'
source ~/.bashrc
--CUDA patch installation:
chmod +x cuda_9.0.176.1_linux.run
sudo ./cuda_9.0.176.1_linux.run
chmod +x cuda_9.0.176.2_linux.run
sudo ./cuda_9.0.176.2_linux.run
chmod +x cuda_9.0.176.3_linux.run
sudo ./cuda_9.0.176.3_linux.run
chmod +x cuda_9.0.176.4_linux.run
sudo ./cuda_9.0.176.4_linux.run
--Download Cudnn
--Unpack
tar xvf cudnn-9.0-linux-x64-v7.3.1.20.tgz
--Copy and paste them in the correct directory
cd cuda
sudo cp */*.h /usr/local/cuda/include/
sudo cp */libcudnn* /usr/local/cuda/lib64/
sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
--Download Anaconda Python
wget -O ~/Downloads/Anaconda3-5.2.0-Linux-x86_64.sh https://repo.continuum.io/archive/Anaconda3-5.2.0-Linux-x86_64.sh
--Install Anaconda
sh ~/Downloads/Anaconda3-5.2.0-Linux-x86_64.sh
-- Finalize anaconda and update
source ~/.bashrc
conda update --all
python