Cuda 10.0 & Cudnn7 Installation — Where AI evolves from crawling to running

sudo apt — fix-broken installsudo dpkg — configure -asudo apt-get cleandpkg -l | grep cuda- | awk ‘{print $2}’ | xargs -n1 sudo dpkg — purgesudo apt-get purge nvidia*sudo apt-get -f installsudo apt autoremovesudo apt — purge remove “cublas*” “cuda*”sudo apt — purge remove “nvidia*”
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.debsudo apt-key adv — fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && sudo apt updatesudo dpkg -i cuda-repo-ubuntu1804_10.0.130–1_amd64.deb
sudo apt update
sudo apt install -y cuda-10-0
wget https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.debsudo dpkg -i nvidia-machine-learning-repo-ubuntu1804_1.0.0–1_amd64.deb
sudo apt update
sudo apt install -y libcudnn7 libcudnn7-dev libnccl2 libc-ares-dev
sudo apt autoremove
sudo apt upgrade
sudo mkdir -p /usr/local/cuda-10.0/nccl/libsudo ln -s /usr/lib/x86_64-linux-gnu/libnccl.so.2 /usr/local/cuda-10.0/nccl/lib/sudo ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.7 /usr/local/cuda-10.0/lib64/
pip3 install tensorflow-gpu==1.15.2
pythonimport tensorflow as tftf.Session()

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

April LeetCoding Challenge 2021 — Day 6: Minimum Operations to Make Array Equal

Simple TFLite Running on Android Phone

EOSIO Provider Implemented For OASIS API

How to throttle that queue?

Do You Need to Break Up With Your Tech Vendor?

CSS Box Model

Quick SQL revision for interviews

Microsoft Azure Interview Questions And Answers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alex Yeo

Alex Yeo

More from Medium

Using Webots as a Learning Platform of Robotics Simulation

Deploy Seeker search augmented conversational AI on Kubernetes in 5 minutes

Arabic Dialect Identification

Text Representation Techniques in NLP — Machine Learning