Professional Documents
Culture Documents
Install Nvidia Drivers and Cuda
Install Nvidia Drivers and Cuda
Jinha yoon
18th June 2022
Nvidia Driver Install
○ Update Ubuntu
○ Install NVIDIA Drivers
a. Check GPU version and Drivers
b. Install Drivers
○ Check
1. Update Ubuntu
sudo apt update && sudo apt upgrade -y
In this output, my model [GeForce GTX 1660 SUPER], and the recommended driver (latest
driver) is nvidia-driver-515. So, now I will install nvidia-driver-515 packages
Install Drivers
1
3. Check installed driver
$ nvidia-smi
2
Tensorflow
○ Python version check (or install)
○ Install Require Python Libraries and Virtual Environment
a. PIP install , dev
b. Virtual Environment
○ Install Tensorflow
a. Install
b. Check
Python is already installed in Ubuntu 22.04, just check the version. If there is no python, please
install python.
$ python3 -V
Cuda is Compute Unified Device Architecture (CUDA), it enables GPUs to parallel computing.
$ sudo apt-get -y install nvidia-cuda-toolkit
3
CUDA Deep Neural Network library (DNN), cuDNN library .
$ sudo apt-get -y install nvidia-cudnn
$ mkdir tensorflow
$ cd tensorflow
I just choose tensorflow as folder name, and tensorvenv as virtual environment, so please
customize as your own.
$ python3 -m venv tensorvenv
4
** upgrade
$ pip install --upgrade pip
$ pip install --upgrade tensorflow
3. Check
$ python3 -c 'import tensorflow as tf;print(tf.version.VERSION)'
Or
exit();
And
$ deactivate
jinhaslab@gmail.com