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
# move to the lib64 directory | |
cd /usr/local | |
cd cuda | |
cd lib64 | |
# check if there are any symlinks | |
ls -lha libcudnn* | |
sudo rm libcudnn.so | |
sudo rm libcudnn.so.7 |
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
#Fetch cuDNN | |
CUDNN_TAR_FILE="cudnn-10.0-linux-x64-v7.6.5.32.tgz" | |
wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/7.6.5.32/Production/10.0_20191031/cudnn-10.0-linux-x64-v7.6.5.32.tgz | |
sudo tar -xzvf ${CUDNN_TAR_FILE} | |
#copy the files in cuda toolkit directory | |
sudo cp cuda/include/cudnn.h /usr/local/cuda/include | |
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 | |
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* |
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
#Get PPA repo drivers and Install CUDA 10.0 | |
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_10.0.130-1_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1604_10.0.130-1_amd64.deb | |
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub | |
sudo apt-get update | |
sudo apt-get install cuda-10-0 cuda-drivers -y | |
#Set the environment for cuda 10.0 | |
nano ~/.bashrc | |
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}$ |
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
#install pip ipython | |
sudo apt-get -y install python3-pip | |
sudo pip3 install --upgrade pip | |
sudo apt-get -y install ipython | |
#install numpy matplotlob | |
sudo pip3 install numpy scipy matplotlib ipython jupyter pandas sympy nose | |
#install tensorflow | |
sudo pip install tensorflow-gpu |
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
#Get PPA repo drivers and Install CUDA 10.0 | |
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_10.0.130-1_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1604_10.0.130-1_amd64.deb | |
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub | |
sudo apt-get update | |
sudo apt-get install cuda-10-0 cuda-drivers -y | |
#Install cuda-compatibility 10.0 | |
sudo nvidia-smi -pm 1 | |
sudo apt-get install cuda-compat-10.0 |
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
!apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install -y git make cmake python3-pip | |
!git clone https://github.com/drowe67/codec2.git | |
!cd codec2 && \ | |
mkdir build_linux && \ | |
cd build_linux && \ | |
cmake .. && \ | |
make && \ |