I’ve had a good experience with Hetzner’s GTX 1080 enabled EX51-SSD-GPU dedicated server. Using Debian 9.5, and having made no additional changes to the instance’s baseline configuration, this post details how to get the instance configured for running kernels on the attached GPU.
$ apt update
$ apt install lshw gcc build-essential linux-headers-`uname -r\`
$ lshw -C display
- Use the output to fill out the NVIDIA Drivers Download form. In this case: “GeForce”, “GeForce 10 Series”, “GeForce GTX 1080”, “Linux 64-bit”
- Download the generated link; in this case:
$ wget http://us.download.nvidia.com/XFree86/Linux-x86_64/410.73/NVIDIA-Linux-x86_64-410.73.run
$ chmod +x NVIDIA*.run
- You can ignore warnings about the absence of X and the installer’s inability to install 32 bit compatibility drivers.
- Hit “No” when asked to update X configuration file.
$ wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux
$ chmod +x cuda*linux
- Hit “No” when asked to install the NVIDIA driver; this is either the same or an older version of the driver installed above.
- Hit “Yes” to install both the toolkit and code samples in their default locations along with symlink.
$ vi .bashrc
- Log out and in again, confirm values of
$ cd ~/NVIDIA*Samples/
$ make -j4
$ cd bin/x86_64/linux/release
- Run enough of the binaries to convince yourself that all is working properly.