Getting started with azure

Azure N-series(GPU) : install CUDA, cudnn, Tensorflow on UBUNTU 16.04 LTS

After spending more than 5 hours, i found this easy solution:

-To verify that the system has a CUDA-capable GPU, run the following command:

lspci | grep -i NVIDIA

You will see output similar to the following example (showing an NVIDIA Tesla K80/M60 card):

enter image description here

-Disabling the nouveau driver:

sudo -i
rmmod nouveau

-After a reboot: sudo reboot, verify the driver is installed properly by issuing:

lsmod | grep -i nvidia

-Next, download the CUDA package from Nvidia, …


-… make it known to apt-get and install the CUDA Toolkit:

sudo dpkg -i cuda-repo-ubuntu1604-8-0-local_8.0.44-1_amd64-deb
sudo apt-get update
sudo apt-get install -y cuda

-Now we can check the status of the GPU(s) by running:


Next, we download cuDNN


-… unzip, copy the lib64 and include folders:

tar -zxf cudnn-8.0-linux-x64-v5.1.tgz
sudo cp cuda/lib64/* /usr/local/cuda/lib64/
sudo cp cuda/include/* /usr/local/cuda/include/
sudo rm -R cuda

-Time to do some clean up and remove the downloaded archives:

rm cuda-repo-ubuntu1604-8-0-local_8.0.44-1_amd64-deb
rm cudnn-8.0-linux-x64-v5.1.tgz

To install Tensorflow with CPU/GPU , go here :


1. 2.