Skip to content

Instantly share code, notes, and snippets.

@kmhofmann
kmhofmann / installing_nvidia_driver_cuda_cudnn_linux.md
Last active January 10, 2025 22:30
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

@meetnick
meetnick / gist:c21af45d9f131c6c54c517d0b9d48583
Created April 24, 2020 19:06
install-cuda-10-1-cudnn-ubuntu-2004-nvidia-driver-440-yolo-tensorflow-gpu
################ NVIDIA DRIVER 440 INSTALLATION
# Install NVIDIA driver
# Ubuntu 20.04 LTS already has nvidia driver version 440
################ NVIDIA CUDA 10.0 INSTALLATION
sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-1-local-10.1.243-418.87.00/7fa2af80.pub
sudo apt-get update
# Here we shouldn't install neither cuda-10-0, cuda-runtime-10-0 nor cuda
@Mahedi-61
Mahedi-61 / cuda_11.8_installation_on_Ubuntu_22.04
Last active September 28, 2025 01:57
Instructions for CUDA v11.8 and cuDNN 8.9.7 installation on Ubuntu 22.04 for PyTorch 2.1.2
#!/bin/bash
### steps ####
# Verify the system has a cuda-capable gpu
# Download and install the nvidia cuda toolkit and cudnn
# Setup environmental variables
# Verify the installation
###
### to verify your gpu is cuda enable check