My customer accountSales contactWebmailOVHcloud Blog

Welcome to OVHcloud.

Log in to order, manage your products and services, and track your orders

Log in
OVH Guides

How to install CUDA on a dedicated GPU server

Last updated 2018/01/16


It is possible to install Compute Unified Device Architecture (CUDA) on a GPU server, but it requires a series of actions that we will explain to you in this guide.


  • Owning a GPU server
  • Be connected using SSH on your server


Once you have reinstalled the operating system, follow the instructions below.

Updating the kernel

sudo dpkg -i ./linux-*

Modifying the grup.cfg file

You need to edit the following file and comment the OVH Kernel part:

##BEGIN /etc/grub.d/06_OVHkernel###
#menuentry "GNU/Linux with OVH Kernel, OVH kernel 4.9.58-xxxx-std-ipv6-64" {

#insmod part_gpt

#insmod part_gpt

#insmod diskfilter

# insmod mdraid09

#insmod ext2

#set root='mduuid/cabadcc1a60ca488a4d2adc226fd5302'

#if [ x$feature_platform_search_hint = xy ]; then

#search --no-floppy --fs-uuid --set=root --hint='mduuid/cabadcc1a60ca488a4d2adc226fd5302' b43e4008-da62-482e-a5c8-8384c40b69db


#search --no-floppy --fs-uuid --set=root b43e4008-da62-482e-a5c8-8384c40b69db


#linux /boot/bzImage-4.9.58-xxxx-std-ipv6-64 root=/dev/md2 ro rootdelay=10 noquiet nosplash net.ifnames=0 biosdevname=0
###END /etc/grub.d/06_OVHkernel###

You must now restart the server. It should have been carried out on a new kernel.

To check, you can type the following commands:

uname -a
Linux ns3065593 4.10.17-041017-generic #201705201051 SMP Sat May 20 14:53:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Then install a library and stop lightdm :

/etc/init.d/lightdm stop
apt-get install ncurses-base
apt-get install nvidia-384-dev
ln -sf /usr/lib/x86_64-linux-gnu/ /usr/lib/

How to install CUDA

All you need to do now is install CUDA by following the procedure below:

cd /root
mkdir cuda
cd cuda
mv cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64.deb
dpkg -i cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64.deb
apt-key add /var/cuda-repo-9-0-local/
apt-get update
apt-get install nvidia-384-dev
nano /etc/environment
#Once nano is open edit the PATH variable to include /usr/local/cuda-8.0/bin folder. After editing the file screen would look like this.
source /etc/environment
export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
nvcc --version

The nvidia-smiwill now function correctly:

Wed Nov 1 09:14:38 2017
| NVIDIA-SMI 384.90 Driver Version: 384.90
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| 0 GeForce GTX 106... Off | 00000000:02:00.0 Off | N/A |
| 0% 27C P0 27W / 120W | 0MiB / 6072MiB | 0% Default |
| 1 GeForce GTX 106... Off | 00000000:03:00.0 Off | N/A |
| 0% 29C P0 24W / 120W | 0MiB / 6072MiB | 2% Default |
| Processes: PHP Memory:
| GPU PID Type Process name Usage |
| No running processes found |

Go further

Join our user community on

These guides might also interest you...