# Install cuda and cudnn on Ubuntu

Created at 2017-07-03 Updated at 2018-01-22 Category CUDA Tag CUDA

### CUDA installation

• install it follow instructions given by NVIDIA: use the default value given by the runfile
• add the following to ~/.bashrc

### CUDNN installation

Download the cudnn from NVIDIA, it is a library which can boost computation speed of neural network. Untar the file and follow the following instructions

Copy cudnn.h in include to cuda/include

Note that you don’t need to copy the link files

### Check Installation

After installation, you should check whether you have successfully installed CUDA. To check that, compile the samples in CUDA home

After compiling, run deviceQuery in bin/x86_64/linux/release

If you see all the informations on GPU, it means that you have successfully installed CUDA+CUDNN

## Table of Content

Site by GoingMyWay using Hexo & Random

I am a ML and RL research student

Hide