- Install the Ubuntu OS
- After booting, disable Wayland
sudo vim /etc/gdm3/custom.conf
- uncomment the according line
- Activate the NVIDIA drivers
- Software & Updates
- Additional drivers
- Most recent Nvidia driver
- Apply
- Reboot
- Double check that the graphics card is activated
- Nvidia Settings
- PRIME settings
- Install CUDA
- Download the CUDA Toolkit 8.0 v6 from the NVIDIA website
chmod ug+x cuda_8.0*.run
./cuda_8.0*.run- Do NOT install NVIDIA driver, CUDA toolkit ONLY
- Install cuDNN 8.0 v5
- Download it from the NVIDIA website
- extract it
sudo cp -P cuda/include/cudnn.h /usr/local/cuda-8.0/include/
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-8.0/lib64
sudo chmod a+r /usr/local/cuda-8.0/include/cudnn.h
- Set the environment variables
vim ~/.bashrc
- add the following lines:
export CUDA_HOME=/usr/local/cuda-8.0
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$CUDA_HOME/extras/CUPTI/lib64:$LD_LIBRARY_PATH
- Install TensorFlow
sudo apt-get install python3-pip python3-dev libcupti-dev
sudo pip3 install tensorflow-gpu