You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* Some debian package manager tweaks By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages . By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install. This results in smaller downloads and installation of packages . Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends) . |
6 years ago | |
|---|---|---|
| .. | ||
| README.md | 6 years ago | |
| docker-compose.cuda.yml | 6 years ago | |
| install.sh | 6 years ago | |
README.md
NVIDIA CUDA Toolkit
Requirements
- NVIDIA GPU with a compute capability [3.0 - 7.2]
- Latest GPU driver
Installation
Install the latest driver for your graphics card
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-cache search nvidia-* # find latest nvidia driver
sudo apt-get --no-install-recommends install nvidia-* # install the nvidia driver
sudo apt-get --no-install-recommends install mesa-common-dev
sudo apt-get --no-install-recommends install freeglut3-dev
sudo apt-get --no-install-recommends install nvidia-modprobe
Reboot your PC and verify installation by nvidia-smi command.
Install Nvidia-Docker
Please be sure that installation was successful.
docker info | grep 'Runtimes' # output should contains 'nvidia'
Build docker image
# From project root directory
docker-compose -f docker-compose.yml -f components/cuda/docker-compose.cuda.yml build
Run docker container
# From project root directory
docker-compose -f docker-compose.yml -f components/cuda/docker-compose.cuda.yml up -d