$ lspci | grep -e VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
$ inxi -Fxxxz
System:
Kernel: 6.1.0-21-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
Desktop: GNOME v: 43.9 tk: GTK v: 3.24.38 wm: gnome-shell dm: GDM3 v: 43.0
Distro: Debian GNU/Linux 12 (bookworm)
CPU:
Info: quad core model: Intel Core i5-6400 bits: 64 type: MCP
smt: <unsupported> arch: Skylake-S rev: 3 cache: L1: 256 KiB L2: 1024 KiB
L3: 6 MiB
Speed (MHz): avg: 2175 high: 2944 min/max: 800/3300 cores: 1: 2535 2: 2944
3: 2423 4: 800 bogomips: 21599
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1080] driver: nouveau v: kernel
arch: Pascal pcie: speed: 2.5 GT/s lanes: 16 ports: active: DP-1,HDMI-A-1
empty: DP-2,DP-3,DVI-D-1 bus-ID: 01:00.0 chip-ID: 10de:1b80 class-ID: 0300
temp: 43.0 C
$ sudo cat /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main
deb-src http://security.debian.org/debian-security bookworm-security main
Installation Steps
$ wget http://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb
$ sudo apt install /tmp/nvidia/cuda-keyring_1.1-1_all.deb
$ sudo apt install cuda-toolkit-12-3
$ sudo apt isntall nvidia-driver firmware-misc-nonfree
Adding CUDA to path
$ sudo nano /etc/profile.d/cuda-12.3.sh
export CUDA_VERSION="12.3"
export CUDA_HOME="/usr/local/cuda-${CUDA_VERSION}"
export PATH="${CUDA_HOME}/bin${PATH:+:${PATH}}"