How to setup CUDA on Debian 12 Bookworm in less than one Minute

Published at Oct 6, 2023

#debian#administration#quantum chemistry#simulations#software#gpu

TL;DR

Sometimes we just need a GPU. So how do we use CUDA on plain Debian? This article walks you through the setup in lesqs than a minute.

Debian Logo

To our etc/apt/sources.list we need to add to our entries


contrib non-free

Then we run


sudo apt update
sudo apt install -y  nvidia-cuda-toolkit nvidia-cuda-dev

Test

nvidia-smi

That’s it.

Let me know if you find that article useful. ⛵️

Helpful Resources

Debian 12 and CUDA Debian 12 and nvidia-smi