Check if it works
nvidia-smi
# and/or
grep -i "x driver" /var/log/Xorg.0.log
Install
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt upgrade
ubuntu-drivers devices
Look for 'recommanded'
sudo ubuntu-drivers autoinstall
# or (change number if needed)
sudo apt install nvidia-415
Old - Archive
Drivers
sudo apt-get install nvidia-opencl-icd-378 python-pyopencl python3-pyopencl
Nvidia GTX 1050 Ti - Avril 2017 :
- FAIL with : 375, 381
- OK with : 378
PPA
Should work... doesn't. (December 2016)
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-375
Works! (Feb 2017)
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-378
Nvidia Installer
- Download
NVIDIA-Linux-x86_64-375.10.run
(search yours here: http://www.nvidia.com/Download/index.aspx) sudo apt-get purge nvidia-* && sudo apt-get autoremove
- Reboot Ubuntu, in Recovery Mode
'Activate Network' (to mount the hardrive in read-write mode), then 'Root'
- Run
NVIDIA-Linux-x86_64-375.10.run
- Accept License
- Accept the warning, it's a fake Warning... really
- No 32-bit compatibility (because it didn't work for me)
- Yes, update X configuration
- Ok!
- Reboot
- Install pyOpenCL, it should work